Prevent upgrade to websocket connection #344
Unanswered
matthewpflueger
asked this question in
Q&A
Replies: 1 comment
-
The process could crash because of this thing: #345 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to prevent the upgrade request from succeeding if there isn't a valid authorization header on the request when handling the upgrade event. Unfortunately, there doesn't seem to be an obvious way to do this. Maybe I am taking the wrong approach? Here is what I have now:
This works fine initially but after some time, the entire server is killed due to a timeout:
Any suggestions would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions