Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-6788

Avoid stack overflow when handling streaming responses in API handlers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • None
    • None

    Description

      Right now both the `connect()` helper in src/slave/http.cpp and `transform()` helper in src/common/recordio.hpp use recursion to read data from one pipe and write to another.

      The way these helpers are written could cause stack overflow. Ideally we should be able to leverage the new `process::loop` abstraction for that.

      Attachments

        Activity

          People

            benjaminhindman Benjamin Hindman
            vinodkone Vinod Kone
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: