Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 200ms delay issue. #254

Closed
JacksonTian opened this issue Jan 8, 2015 · 4 comments
Closed

Windows 200ms delay issue. #254

JacksonTian opened this issue Jan 8, 2015 · 4 comments
Labels
windows Issues and PRs related to the Windows platform.

Comments

@JacksonTian
Copy link
Contributor

When I deploy the hello world program on Windows server, and access it with Windows, it always lead 200+ms delay.

var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World\n');
}).listen(1337);
console.log('Server running at http://127.0.0.1:1337/');

I search the issue, it seems a typical issue to Windows.

@piscisaureus
Copy link
Contributor

@JacksonTian
I can't replicate this. If you want us to fix this issue you need to be much more specific than this. Tell me about windows and node versions, your test setup, and how you're measuring this 200ms delay.

@kvanbere
Copy link

We have an issue like this with node too and our websockets. We ended up dropping node and just using Java because we couldn't figure it out.

The delay only happened when the host was Windows 7. It went away with Windows 8.

@piscisaureus
Copy link
Contributor

The fact that you explicitly say "200ms" makes me think that you are seeing the effects of the 200ms delayed ACK timer (aka Nagle's algorithm) in windows. Have you tried disabling it with Socket#setNoDelay?

@clintwood
Copy link

I'm not sure if this is related but I had a similar issue (although it was longer than 200ms) on the initial/ first request when the server is started (Win7 or 8) and especially when accessing via a client on the same machine (server/desktop). For me the issue was due to antivirus interference - in my case specifically Avg's Identity & Web protection features which I have now turned off. Before discovering the antivirus interference issue I tried to tweak Windows Nagle's algo settings etc but that didn't help.

@Fishrock123 Fishrock123 added the windows Issues and PRs related to the Windows platform. label Jan 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
windows Issues and PRs related to the Windows platform.
Projects
None yet
Development

No branches or pull requests

5 participants