Closed Bug 1619520 Opened 6 years ago Closed 4 years ago

Abrupt Websocket disconnect

Categories

(Core :: Networking: WebSockets, defect, P2)

73 Branch
defect

Tracking

()

RESOLVED INVALID

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.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Networking: WebSockets
Product: Firefox → Core

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.

Flags: needinfo?(michal.novotny)
Priority: -- → P2
Whiteboard: [necko-triaged]

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.

Flags: needinfo?(michal.novotny)
Attached file log.txt-main.12504.zip (obsolete) —

Logs attached

Logs with websockets attached.

Attachment #9131674 - Attachment is obsolete: true

Hi team, are you guys looking into this?Thanks.

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?

Flags: needinfo?(samofoz)
Flags: needinfo?(nhnguyen)
Flags: needinfo?(nhnguyen)

Message fragmentation seems to have solved the problem:
https://tools.ietf.org/html/rfc6455#section-5.4

Flags: needinfo?(samofoz)
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: