-
Notifications
You must be signed in to change notification settings - Fork 257
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
socket not accessible by Daphne server on Windows (due to Twisted, not Circus) #1058
Comments
I don't see anything wrong with your config, so maybe it's linked to Windows yes. Do you have any way to try it with Linux (a Docker container should be fine)? |
Thanks for the answer! I can't test on linux at work (Windows only, no admin rights...!). I've tried to see if I could test circus with sockets in a simpler case (with another server), but I can't find another server accepting --fd and working on Windows... I'll try to see if I can test this on linux at home. |
I finally managed to test it on Linux. It does work there (with same python distribution (3.6) and same version of everything else). NB: last circus release (0.15) didn't help. |
Yes sorry, the Windows support is not very active :/ . I managed to have a running version a few years back, but not to test it in CI. Since then there was some feedback & fixes, but not enough to guaranty that everything works as expected. |
Thanks for the answer. Any hope of action towards that goal? |
Not by me, but it's an Open Source project :) . |
I've digged a bit more and found out that the problem lies with Twisted, on which the Daphne server is based. Twisted doesn't handle properly the opening of the socket from the inherited file descriptor on Windows. I could actually make it work by hacking Twisted a bit, even with the last stable release of Circus (i.e. without pull request #1065). Bug reported to Twisted team: https://twistedmatrix.com/trac/ticket/9508 |
Hi,
I'm trying to run Daphne (Django channels asgi server: https://github.com/django/daphne) with the following config file:
With the socket defined above, Daphne returns an error message:
which looks to me as if the socket object is "None". I've got the same message if I just run at the command line:
where the file descriptor has no meaning (i.e. not associated with anything).
Remarks:
Any help welcome here!
The text was updated successfully, but these errors were encountered: