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

Overridden close() not called under windows #178

Closed
nicklasb opened this issue Nov 13, 2015 · 1 comment
Closed

Overridden close() not called under windows #178

nicklasb opened this issue Nov 13, 2015 · 1 comment

Comments

@nicklasb
Copy link

Hi,
I have encountered a difference between Windows and Linux.

In Linux, if I close the connection from the server, the close()-function is called, and reason and other stuff are nicely presented to the client.

In Windows, only the closed(self, code, reason=None)-function is called, and not the close()-function.
I rather get the "ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host".

The above error may be because the first close doesn't happen property and it is because the server is shutting down. But if so, the same thing would happen under Linux. It is kind of hard to say, as it is multiprocessing and so forth, so the order of logs differ depending on how quickly stuff happens on each platform.

It is completely possible that I am missing something, of course, but still..

@nicklasb
Copy link
Author

So this sort of sorted itself out. Suddenly it sort of happened less and less, I am suspecting that this was since the performance(process initialization) was worse under windows.
Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant