-
-
Notifications
You must be signed in to change notification settings - Fork 274
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
not working with memcached #34
Comments
Like I said earlier, with an unmodified version of HTTPretty, it hangs in the
After disabling cached sessions in my django settings, I received this trace from the HTTPretty debug method when trying to access memcached while HTTPretty is enabled. memcache.py is http://pypi.python.org/pypi/python-memcached/
|
I'm seeing the same behaviour with pymongo. In my case it's blocking on ipdb> print self.truesock.gettimeout()
None A workaround is to set a timeout on self.truesock. ipdb> self.truesock.settimeout(1)
ipdb> self.truesock.recv(16)
*** timeout: timed out Or globally in your tests: import socket
socket.setdefaulttimeout(1) |
HTTPretty causes requests to memcached to hang indefinitely when using Django.
Implementing the change here: https://github.com/nicolas-DH/HTTPretty/commit/dc622c8027a778ea4a385bf08af9ee751a189765 fixes the hanging problem, but then interaction with memcached is broken. Requests to insert keys do not succeed. I assume this is due to how _true_sendall works, but I am not sure.
Let me know how I can debug further.
The text was updated successfully, but these errors were encountered: