-
Notifications
You must be signed in to change notification settings - Fork 246
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
Some fix of netref + a better implementation of the ThreadPoolServer #42
Conversation
…eady while its internal state is not yet fine
… This server performs better than the ThreadedServer as it does not have to allocate a new thread for each request
Conflicts: rpyc/utils/server.py
…ss. Do not throw an exception, as this would trigger an exit from the server, but close the socket so that the client gets a connection refused error and log the situation
…ing 'NoneType has no attribute async_request' errors under load
The first implementation was dispatching connections relying on the fact that they were disappearing. In case there were persistent and more numerous than the number of threads, some connections were never served. On top, the server was exiting when overloaded. The new version dispatches requests (in bulk for efficiency) and allows thus any type and any number of connections.
d4b26b9: i see you're using select.poll, so this code won't run on windows. 57fe482: i'd guess d4b26b9 overrides this commit? |
don't worry about testing on windows too much -- testing it on linux is enough for me. i just want the code to be able to run on all platforms. by the way -- you could write a "mock poll" object that relies on
that way you can keep your code in tact and still be cross-platform. |
@sponce, any news on that? |
…s where it's not supported
@sponce: i integrated your could you write an automated test for it? thanks for your help, |
Note that only 2 commits are to be pulled out of the 7, I do not quite get why github insists in listing the 7, and in particular the merge. Anyway :