Closed Bug 761061 Opened 12 years ago Closed 10 years ago

Data gets buffered and not sent on a wss WebSocket connection

Categories

(Core :: Networking: WebSockets, defect)

12 Branch
x86_64
Windows 7
defect
Not set
critical

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: vkchawla, Unassigned)

Details

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.
Severity: normal → blocker
Priority: -- → P1
Component: Untriaged → Networking: WebSockets
Priority: P1 → --
Product: Firefox → Core
QA Contact: untriaged → networking.websockets
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]
Resolved per whiteboard
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Flags: needinfo?(vkchawla)
Resolution: --- → INCOMPLETE
Whiteboard: [closeme 2014-01-15]
You need to log in before you can comment on or make changes to this bug.