You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get endless warning logs from my server if I use ThreadPoolServer on Ubuntu 11.10 amd64 as soon as I connect with a single client. To reproduce:
Server side:
importrpycfromrpyc.utils.serverimportThreadPoolServerimportlogginglogging.basicConfig()
classMyService(rpyc.Service):
defon_connect(self):
# code that runs when a connection is created# (to init the serivce, if needed)passdefon_disconnect(self):
# code that runs when the connection has already closed# (to finalize the service, if needed)passdefexposed_get_answer(self): # this is an exposed methodreturn42defget_question(self): # while this method is not exposedreturn"what is the airspeed velocity of an unladen swallow?"t=ThreadPoolServer(MyService, port=18867)
t.start()
Once the connection is established the server will start spamming the following log message:
WARNING:MY/18867:failed to poll clients, caught exception : 'int' object is not iterable
My setup:
uname -a
Linux WS3232 3.0.0-17-generic #30-Ubuntu SMP Thu Mar 8 20:45:39 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
python --version
Python 2.7.2+
rpyc==3.2.1
The text was updated successfully, but these errors were encountered:
ThreadPoolServer expects poll() to return a list of tuples, which it does if SelectingPoll is used, but if PollingPoll is used we only get a list of integers. I managed to make ThreadPoolServer stop complaining by hacking the following into compat.py, line 119:
I get endless warning logs from my server if I use ThreadPoolServer on Ubuntu 11.10 amd64 as soon as I connect with a single client. To reproduce:
Server side:
Client side:
Once the connection is established the server will start spamming the following log message:
WARNING:MY/18867:failed to poll clients, caught exception : 'int' object is not iterable
My setup:
uname -a
Linux WS3232 3.0.0-17-generic #30-Ubuntu SMP Thu Mar 8 20:45:39 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
python --version
Python 2.7.2+
rpyc==3.2.1
The text was updated successfully, but these errors were encountered: