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: Justin, luryson, mwake, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: Unspecified   
OS: Unspecified   

Description Alex Christensen 2021-09-29 09:37:35 PDT
Go to https://libwebsockets.org/testserver/
Click "Send junk"

Chrome and Firefox don't terminate, Safari does.
Comment 1 Alexey Proskuryakov 2021-10-01 15:04:36 PDT
rdar://82529327
Comment 2 Alex Christensen 2021-10-01 16:59:34 PDT
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.
Comment 3 luryson 2022-01-20 03:13:04 PST
want to knows what happens from server side. can't reproduced