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
Test hang on Python connection tests on OS X #3954
Comments
Just looked into this out of curiosity, and it looks like the server is waiting while part-way through writing a large response to the client (~400KB). There may be a bug in Tornado's |
It happens even in the original connection.py, tho. I doubt it's a problem with Tornado. |
Ah, then, the problem is probably the server. Looking into it now. |
It's looking like |
@gchpaco was also looking into this on the client side. But that's interesting. Maybe I broke it with switching the OS X build to kqueue. |
At a suggestion from @danielmewes I tested using the older |
The hangup appears to be on this query: reference = t1.filter(r.row['geo'].intersects(query_circle))\
.coerce_to("ARRAY").run(c) at least most of the time. With 3110841139272090394 as a seed it got as far as the cursor iteration. |
Or maybe not, it's nondeterministic to be sure. |
When I instrumented it it got further, but still hangs on a read halfway through chunking. If I had to guess, we're not using kqueue properly for sending large chunks. |
To be clearer, it hangs in |
Oh man I had made a stupid bug in the kqueue implementation that would stop it from listening for out/write events if someone was already listening for in/read events on the socket. Putting the patch up soon. |
Up in CR 2747 by @gchpaco |
This came up during work on #2622.
I am experiencing unusual hangs in the testing framework on
next
around connection.py. Specifically:Here I'm using 2.7.9, but I've seen it in 2.6 as well.
The text was updated successfully, but these errors were encountered: