Is there something like
remote_client.close()
or
request.close()
for closing the http.createClient connection?
It seems like in some occasions, the socket connection is still hanging there after the “response” event is emitted and properly handled.
Upgrade to the latest version of node.js (0.4.8).
The syntax for creating clients has changed. You now have
http.requestWhich returns a
ClientRequestwhich you can.endand it gives you aClientResponsein the callback.The
ClientReponseis just aReadable Streamand you can.destroya stream