You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
varhttp=require('http');http.createServer(function(req,res){res.writeHead(200,{'Content-Type': 'text/plain'});res.end('Hello World\n');}).listen(2000);varix=0;setInterval(function(){http.get('http://localhost:2000/',function(r){console.log({ix: ix++,status: r.statusCode});// the next line will resolve this problem:// r._dump();});},200);
I found the strange behavior when I use http.get(url, cb) simply.
I verified this on Windows 7 / 8.1, CentOS 6.5 with official binary.
node v0.11.9 looks good.
I think this condition is insufficient:
https://github.com/joyent/node/blob/v0.10.32/lib/http.js#L1694-L1698
Test code is below:
Output with NODE_DEBUG=http