We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I wrote a simple script, which connect to a local cherrypy website with persistent session.
#!/usr/bin/python from time import sleep import restkit uri = 'http://127.0.0.1:8000/' method = 'GET' ret = restkit.request(uri, method=method) print ret.body_string() sleep(1)
But some requests ends with unexpected traceback:
python test.py Exception in thread Thread-1 (most likely raised during interpreter shutdown): Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner File "/usr/lib/python2.7/dist-packages/socketpool/backend_thread.py", line 51, in run File "/usr/lib/python2.7/dist-packages/socketpool/pool.py", line 88, in murder_connections File "/usr/lib/python2.7/dist-packages/socketpool/backend_thread.py", line 30, in __next__ <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'Empty'
If a add "ret.should_close = True" before call to 'body_string', there is no more error.
ubuntu: Ubuntu 14.04.2 LTS ubuntu package python-restkit: 4.2.2-1 ubuntu package python-socketpool: 0.5.3-1
Regards,
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I wrote a simple script, which connect to a local cherrypy website with persistent session.
But some requests ends with unexpected traceback:
If a add "ret.should_close = True" before call to 'body_string', there is no more error.
ubuntu: Ubuntu 14.04.2 LTS
ubuntu package python-restkit: 4.2.2-1
ubuntu package python-socketpool: 0.5.3-1
Regards,
The text was updated successfully, but these errors were encountered: