Bug 230962
| Summary: | WebSocket connection terminated when server sends junk | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Alex Christensen <achristensen> |
| Component: | WebKit Misc. | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | dreiraeder.baum_0x, Justin, luryson, mwake, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 15 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Alex Christensen
Go to https://libwebsockets.org/testserver/
Click "Send junk"
Chrome and Firefox don't terminate, Safari does.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
rdar://82529327
Alex Christensen
When clicking the "Send junk" button it sends a text frame like 'aaaaaaaaaaaaaaaaa...' and in SocketStreamHandleImpl::readStreamCallback I get kCFStreamEventEndEncountered. The NSURLSession WebSocket implementation also terminates.
luryson
want to knows what happens from server side. can't reproduced
Lukas
I can easily reproduce the behavior reported by Alex Christensen. Just go to https://libwebsockets.org/testserver/ and click "Send junk". This also has a real world implication as described here:
https://apple.stackexchange.com/questions/430252/azure-devops-tfs-in-safari-keeps-asking-password