-
-
Notifications
You must be signed in to change notification settings - Fork 513
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
Make MAX_LINE configurable #1471
Comments
Yea I'm facing the same issue. The cookie line is longer than MAX_LINE. |
The best answer I have right now is still this one: #1243 (comment) |
I just made a change that gives you a slightly better error message in that case:
|
I'm going to make it configurable via an environment variable. |
Fixed in bbb3161. Please be aware that, if you are currently monkey-patching |
We currently have a cookie line header of 8718 characters, which is larger than MAX_LINE setting of 8192. Can this either be bumped up to 16K, or better yet be configurable in the ENV? Also it would be nice if a proper error message was returned, we are currently getting
Which isn't very helpful.
https://github.com/python-websockets/websockets/blame/01195322d2620a44039b716cb93c108c2ca9b6b9/src/websockets/legacy/http.py#L14
The text was updated successfully, but these errors were encountered: