Skip to content
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

Dont generate a 404 for unknown paths #22

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

rjp44
Copy link
Contributor

@rjp44 rjp44 commented Nov 22, 2024

The WS upgrade handler can't coexist with other WS servers on the same httpServer as it sets a 404 response header on any path it isn't intrested in.
If it just silently ignores and falls through then other handlers can process the upgrade if they wish to.
See also PR #5 which was somewhat related (same problem, different 404)

as these could be being processed by other handlers
@rjp44
Copy link
Contributor Author

rjp44 commented Nov 22, 2024

Ignore this PR for a bit. It "fixes" my issue, but it introduces a new one when none of the handlers want to upgrade the socket and it times out rather than immediately failing. Will do some more investigation.

@davehorton
Copy link
Contributor

@rjp44 is this ready for review at this point?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants