Data gets buffered and not sent on a wss WebSocket connection

RESOLVED INCOMPLETE

Status

()

--
critical
RESOLVED INCOMPLETE
7 years ago
3 years ago

People

(Reporter: vkchawla, Unassigned)

Tracking

12 Branch
x86_64
Windows 7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 years ago
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.17 Safari/536.11

Steps to reproduce:

1. Create a wss:// WebSocket connection with your WebSocket server.
2. Once handshake is complete Firefox will invoke onopen event for Websocket connection.
3. In onopen event try to send some packet to Server. (No data has been sent from Server till this time apart from WebSocket Handshake)


Actual results:

Packet was not delivered. If i put a timeout and check myWebSocket.bufferedAmount it still shows me that data is buffered and not sent.

Issue is not always reproducible but I can reproduce the issue at least 3 times out of 10 times.

Note:
1. In this timeOut if i send one more packet to server both the packets are delivered at that time.
2. It works fine on a ws:// connection.
3. It works fine on other browsers Chrome, Safari.


Expected results:

Packet should not get buffered and must be delivered instantly.
(Reporter)

Updated

7 years ago
Severity: normal → blocker
Priority: -- → P1
Component: Untriaged → Networking: WebSockets
Priority: P1 → --
Product: Firefox → Core
QA Contact: untriaged → networking.websockets

Comment 1

7 years ago
Vineet,

Do you have a server/page that I can use to test this, in case there's an issue with the specific JS and/or server you're using?   A reduced test case and/or URI would be great.
(In reply to Jason Duell (:jduell) from comment #1)
> Vineet,
> 
> Do you have a server/page that I can use to test this, in case there's an
> issue with the specific JS and/or server you're using?   A reduced test case
> and/or URI would be great.
Severity: blocker → critical
Flags: needinfo?(vkchawla)
Keywords: testcase-wanted
Whiteboard: [closeme 2014-01-15]

Comment 3

5 years ago
Resolved per whiteboard
Status: UNCONFIRMED → RESOLVED
Last Resolved: 5 years ago
Flags: needinfo?(vkchawla)
Resolution: --- → INCOMPLETE
Whiteboard: [closeme 2014-01-15]
Keywords: testcase-wanted
You need to log in before you can comment on or make changes to this bug.