joyent/node — Issue #2048: "Socket Hang up" error
Author: lordnimrod
Created: 2011-11-08 14:34:45+00:00
State: open

I tried to make a request to ejobs.ro, and i receive : "Got error: socket hang up" . I also tested google.com, yahoo.com ... and they work.

node version : v0.6.0

The code used to reproduce the error:

var http=require('http')
var options = {
host: 'www.ejobs.ro',
port: 80,
path: '/',
method: 'GET',
headers: {
"Connection":"keep-alive"
}
};
http.get(options, function(res) {
console.log("Got response: " + res.statusCode);
}).on('error', function(e) {
console.log("Got error: " + e.message);
});