-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
Comments
@JacksonTian |
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. |
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? |
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. |
When I deploy the hello world program on Windows server, and access it with Windows, it always lead 200+ms delay.
I search the issue, it seems a typical issue to Windows.
The text was updated successfully, but these errors were encountered: