joyent/node — Issue #2812: Unexpected socket hang up triggered by http.ClientRequest
Author: c4milo
Created: 2012-02-23 03:53:44+00:00
State: open

I've been bending HTTP a bit to implement a bidirectional communication that works within the scope of RFC2616 without using websockets nor the known polling techniques. While doing that in node 0.6.11, I ran into an unexpected socket hang up, triggered by http.ClientRequest. I've been wondering whether it's something that has to be fixed in http.ClientRequest or I definitely would have to use the net module to write my own client.

I wrote some code that reproduces the issue in https://gist.github.com/1889610

FWIW, I had it working before in nodejs 0.4.12, with similar code, without any issues.

Any help is very much appreciated.