Comments (8)
Daphne doesn't implement this: https://asgi.readthedocs.io/en/latest/extensions.html#websocket-denial-response.
I'm not sure what this is supposed to mean. The description sounds like it works and I've tested the change in the linked PR and it works
from daphne.
Daphne doesn't implement this: https://asgi.readthedocs.io/en/latest/extensions.html#websocket-denial-response.
from daphne.
OK, thanks for looking at it @Kludex.
@daveisfera I'm not sure what the problem here really is, or why/how the PR resolves it. Also there's no tests.
I think to progress it would help to step back and explain what the issue is. Then we can think about the appropriate response.
(Sorry if that seems a pain, but I'm slow sometimes, and I like to understand an issue before just merging a proposal. Thanks.)
from daphne.
The OP wants to send a different status code if the connection is rejected. It can only be done with the WebSocket Denial Response extension.
from daphne.
Ok, so I can have a read.
@daveisfera fancy doing a fuller job here?
from daphne.
If reference is needed, both Uvicorn and Hypercorn implement the extension.
from daphne.
Honestly, I've moved onto a different approach, so if you're not interested in resolving this issue, then you can just close this
from daphne.
Ok, thanks for the input. I'll have a read about the extension anyhow.
from daphne.
Related Issues (20)
- 3.0.2 Failing Safety Check - No Stable Upgrade Available HOT 3
- Django running behind multiple Daphne instances opens too many database connections HOT 11
- Error setting up SSL - CRITICAL Listen failure: Couldn't listen on any:8000: [Errno 98] Address already in use. HOT 1
- Response 400 when submit a 3-Images Form by POST HOT 2
- Missing support for --nostatic and --insecure options in Daphne's runserver command HOT 2
- how to set websocket send buffersize in daphne
- issuse when i using daphe in my django app with streaminghttpresponse HOT 7
- Can daphne run WSGI apps? HOT 6
- Does daphne have a file for initialization?
- Requests with Transfer-Encoding: chunked have no content HOT 14
- StreamHttpResponse with sync operations break in Daphne HOT 5
- Memory usage: Daphne loading all the file in memory (POST request) HOT 7
- Text streaming buffered issue
- [feature request] trailing headers HOT 1
- Add support for Python 3.12
- DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13 HOT 1
- Daphne with self signed ssl HOT 2
- Daphne allows invalid characters within header names HOT 7
- Unix File Socket Argument HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from daphne.