Skip to content

end passing through with no delay #3

@mark-hahn

Description

@mark-hahn

If there is no data, then BufferedStream is passing the end event through immediately, before any end event has been registered to listen for it. The defeats the purpose of holding off the stream until after an async call. It should hold off even an empty stream.

            req.pipe (req.body = new BufferedStream 1e6)

        ... snipped an async call ...

            proxyReq = http.request options, (resProx) ->
                res.writeHeader resProx.statusCode, resProx.headers
                resProx.pipe res

            req.body.pipe proxyReq

I'll write my own version again until this is resolved. I get the feeling I am the only one using this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions