- Dec 15, 2012
-
-
isaacs authored
-
isaacs authored
-
isaacs authored
Because of some of the peculiarities of http, this has a bit of special magic to handle cases where the IncomingMessage would wait forever in a paused state. In the server, if you do not begin consuming the request body by the time the response emits 'finish', then it will be flushed out. In the client, if you do not add a 'response' handler onto the request, then the response stream will be flushed out.
-
isaacs authored
Unnecessary in streams2
-
isaacs authored
-
isaacs authored
-
isaacs authored
-
isaacs authored
This is a combination of 6 commits. * XXX net fixup lcase stream * net: Refactor to use streams2 Use 'socket.resume()' in many tests to trigger old-mode behavior. * net: Call destroy() if shutdown() is not provided This is important for TTY wrap streams * net: Call .end() in socket.destroySoon if necessary This makes the http 1.0 keepAlive test pass, also. * net wtf-ish stuff kinda busted * net fixup -
isaacs authored
-
isaacs authored
-
isaacs authored
-
isaacs authored
-
isaacs authored
Necessary for proper stdin functioning
-
isaacs authored
-
isaacs authored
Otherwise (especially with stdin) you sometimes end up in cases where the high water mark is zero, and the current buffer is at 0, and it doesn't need a readable event, so it never calls _read().
-
isaacs authored
-
isaacs authored
-
isaacs authored
Otherwise resume() will cause data to be emitted before it can be handled.
-
isaacs authored
-
isaacs authored
This fixes the CONNECT/Upgrade HTTP functionality, which was not getting sliced properly, because readable wasn't emitted on this tick. Conflicts: test/simple/test-http-connect.js
-
isaacs authored
-
isaacs authored
-
isaacs authored
-
isaacs authored
-
isaacs authored
-
isaacs authored
-
isaacs authored
-
isaacs authored
-
isaacs authored
-
isaacs authored
-
isaacs authored
-
isaacs authored
-
- Dec 14, 2012