-
Notifications
You must be signed in to change notification settings - Fork 269
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
Daphne 3.0 problem with request-response when working with Channels #345
Comments
Hi @Ivo-Donchev — thanks for the report — sample project, top marks 🥇 😀 I'll need to have a play, but first thing to note it that you're not using your |
Hmmm. 🤔 Downloading your project, creating a fresh venv, and setting up the same, I'm not seeing the issue — I'm getting the two curl sessions operating as expected. |
Hi @carltongibson I've deleted all my |
OK, super. Once you have it isolated, do come back. Thanks |
@carltongibson I found the problem. It's not Daphne The problem was: So to solve this I just put both P.S: That could actually be a fix for the other issue mentioned above - #344 🤔 |
Hey @Ivo-Donchev. Thanks for the confirmation.
Yes, I couldn't find a good way to add that in the time I had available. Ultimately it's a major change all throughout, so it wasn't exactly clear what to put where to let people know they'd missed updating. Not providing the |
@carltongibson I actually jumped in channels' the code a little bit to checkout for a good place to put such warning and it turned out there's one - https://github.com/django/channels/blob/master/channels/routing.py#L63 👍 . However it wasn't shown in the server logs - neither Thinking out loud: I think it's Django job to make sure the |
Hi,
I'm facing a strange issue with Daphne 3 + Channels 3.0.2 and handling multiple request.
I setup a really simple project so we have a base for discussion :)
So, I'm running the project on
OS Ubuntu 18.04
withpython 3.7
.My requirements are:
My setup
channels
in installed apps and pointed to this routing:The issue
So I opened 2 shells and ran these in parralel:
curl http://localhost:8000/1/
andcurl http://localhost:8000/2/
So what I noticed is that the first finished response arrives to the last requesting client and the other request just hangs until it times out.
Here's what I mean:
P.S.: I think this issue is extending the existing one but it's not the exactly the same.
Best regards,
Ivo
The text was updated successfully, but these errors were encountered: