I had this problem exactly once, back around 0.6.4. Of course I thought I had forgotten the res.end() but no. Thought it was a firewall problem. No. Finally rebuilt from source, problem gone. Tried to reproduce with original binary tarball. Nope. Mysterious.
Since the problem seems to be reproducible for you, ie you are stuck, you may be in a position to help everyone. You could try something I wish I had thought of...if you are comfortable with wireshark (and your local IT policy allows it) you could capture the traffic on the loopback interface for clues. If node just isn't responding that's one thing. But it could also be Windows firewall refusing to resolve the port or maybe node is responding before your browser is even ready to process a response. Also if instead of using your browser, you could try curl (not sure if windows has curl) or just telnet localhost 8000 and manually "speak" http to the node server. This would let you test things like...are you getting a connection at all...what does HEAD (as opposed to GET) produce, etc. This is all grasping at straws but since the devs cannot reproduce it, even a small clue might help. On Feb 18, 2012 8:56 AM, "Bert Belder" <[email protected]> wrote: > On Feb 18, 4:03 pm, SARFRAZ AHMED <[email protected]> wrote: > > So I download Windows binaries from node's site and installed on my > > Windows 7 machine which is installed fine, when I do: > > > > node --version > > > > It correctly displays its version: v0.6.7 > > > > Here is the hello world program: > > > > // app.js > > var http = require('http'); > > > > http.createServer(function (req, res) { > > res.writeHead(200, {'Content-Type': 'text/plain'}); > > res.end('Hello World\n'); > > > > }).listen(8000, "127.0.0.1"); > > > > console.log('Server running athttp://127.0.0.1:8000/'); > > > > And when I do: > > > > node app.js > > > > I get the response fine: > > > > Server running athttp://127.0.0.1:8000/ > > > > However, when I browser the URLhttp://127.0.0.1:8000, the page keeps > > on running (on status bar it says waiting for 127.0.0.1...). > > > > Can anybody help me how to make it to output Hello World ? > > You should check your firewall and antivirus settings. > > If that doesn't help, I am afraid that you might be hitting a bug that > a handful of windows users run into. Unfortunately neither me or Igor > have been able to reproduce this problem, or get access to a machine > where it happens. So we don't know when we will be able to solve this. > > - Bert > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
