Abrupt Websocket disconnect
Categories
(Core :: Networking: WebSockets, defect, P2)
Tracking
()
People
(Reporter: samofoz, Unassigned)
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file, 1 obsolete file)
|
313.70 KB,
application/x-zip-compressed
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36
Steps to reproduce:
Firefox 73.0.1 (64-bit)
Simply connect a websocket from javascript to a websocket server. The websocket server sends a buffer of size 16500 bytes or more upon connect or later.
Actual results:
Following is printed on the javascript console:
The connection to wss://localhost:80/ was interrupted while the page was loading
Websocket error (callback) with code:undefined reason:undefined
Websocket closed (callback) with code:1006 reason:
Expected results:
Connection should not have been interrupted.
Comment 1•6 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 2•6 years ago
|
||
Michal, can you take a look? Is this something we already know about, it sounds familiar or we have fixed a similar issue?
Adjust priority as you see fit.
Comment 3•6 years ago
|
||
Could you please provide a log? See https://developer.mozilla.org/en-US/docs/Mozilla/Debugging/HTTP_logging and please add nsWebSocket:5 to the list of logged modules.
Logs with websockets attached.
Comment 7•6 years ago
|
||
Could you please test whether you see the problem if you don't use WS over HTTP/2? Also could you please provide a test case so I can test it locally?
Updated•6 years ago
|
Updated•6 years ago
|
Message fragmentation seems to have solved the problem:
https://tools.ietf.org/html/rfc6455#section-5.4
Updated•4 years ago
|
Description
•