This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
Unexpected socket hang up triggered by http.ClientRequest #2812
Closed
Description
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.