-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Remote end closed connection without response on successive Session requests #4784
Comments
Hi @rvernica it sounds like this is a product of the Django server closing the connection. It sounds like it's either not configured to handle the number of requests you're sending without a pause, or there's some other race condition. Having an actual server between your service and client should be able to handle connection pooling and queuing. Since we can't do anything about this from Requests perspective, I'm going to close this out. |
Hi @nateprewitt, It is it indeed a Django issue, then why does it work without |
@rvernica, the |
So, are you saying the Then, could this be related to #4664 and so, not a Django problem? |
@rvernica without seeing what's the http message contents and probably the TCP traffic on the connection, it'll be hard to say for sure. Either way, the connection is being forcibly closed by Django while being run locally. If it's a problem with the |
@rvernica Any update on this? I'm running into this right now. I'm curious how you got around the issue. Did you open any tickets with django? |
@kingbuzzman I reported the issue to Django here but there seem to be some issues with reproducing it. Maybe you can help confirm it. |
I've posted a way to reproduce the error in the Django ticket mentioned by @rvernica, the question remains who's at fault here? |
Seems that @jaap3 found django/django@934acf1 to be the commit that fixes this in master. |
I'm issuing successive
GET
requests to a Django server and I getRemote end closed connection without response
on the second request. If I pause for one second it works fine.Expected Result
Works as expected without
Session
:Actual Result
System Information
It might be related to #4664.
The text was updated successfully, but these errors were encountered: