Closed
Bug 1065974
Opened 11 years ago
Closed 11 years ago
Loop server doesn't inform the other party when a websocket is closed during connection
Categories
(Hello (Loop) :: Server, defect)
Hello (Loop)
Server
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: standard8, Assigned: rhubscher)
References
Details
(Whiteboard: [qa?])
Attachments
(1 file)
According to the original document on the websocket architecture:
====
https://wiki.mozilla.org/Loop/Architecture/MVP#WebSockets_Connection_for_Call_Progress
If the server sees the client close the connection, it assumes that the client has failed, and informs the other party of such call failure.
====
As far as I can tell, this isn't happening at the moment.
| Assignee | ||
Comment 1•11 years ago
|
||
During call setup there is three way that will raise a connection close:
- supervisory timer
- ringing timer
- connection timer
Before closing the connection, an error will be sent also if the connection is closed one of this timer should send a terminate:timeout
Could you tell me the step to reproduce this please?
| Assignee | ||
Comment 2•11 years ago
|
||
I assume the three timeout defined above are sufficient to handle this case.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
| Reporter | ||
Comment 3•11 years ago
|
||
Bug 1067591 is a perfect example of why we need this. Especially during the call ringing stage, but really during all stages - not notifying the clients, means that they could end up with multiple calls ongoing.
Additionally, if a caller's browser closed the tab (or crashed, etc) during the ringing phase, the callee could still try to answer and wonder why it didn't work.
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
| Assignee | ||
Comment 4•11 years ago
|
||
> Additionally, if a caller's browser closed the tab (or crashed, etc) during the ringing phase, the callee could still try to answer and wonder why it didn't work.
Then he will get the connectionTimeout.
Well let's try to add a on("close") event and see if it works.
| Reporter | ||
Comment 5•11 years ago
|
||
(In reply to Rémy Hubscher (:natim) from comment #4)
> > Additionally, if a caller's browser closed the tab (or crashed, etc) during the ringing phase, the callee could still try to answer and wonder why it didn't work.
>
> Then he will get the connectionTimeout.
It could also be in the ringingTimer phase, which means it could be on the display for the best part of 30 seconds, plenty of time for another window to open as well (or get an incorrect "busy" signal).
(In reply to Rémy Hubscher (:natim) from comment #4)
> Well let's try to add a on("close") event and see if it works.
Ok, great.
| Assignee | ||
Comment 6•11 years ago
|
||
Attachment #8490786 -
Flags: ui-review?(standard8)
Attachment #8490786 -
Flags: review?(alexis+bugs)
Attachment #8490786 -
Flags: feedback?(tarek)
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → rhubscher
Status: REOPENED → ASSIGNED
Updated•11 years ago
|
Whiteboard: [qa?]
Updated•11 years ago
|
Attachment #8490786 -
Flags: feedback?(tarek) → feedback+
Comment 7•11 years ago
|
||
Comment on attachment 8490786 [details] [review]
Link to Github PR — #210
https://github.com/mozilla-services/loop-server/commit/aa50ebf4be89813a7f4aedceac0688b1ffe987b7
Attachment #8490786 -
Flags: review?(alexis+bugs) → review+
Comment 8•11 years ago
|
||
Waiting on Standard8 feedback before closing but we're good to go IMO.
| Reporter | ||
Comment 9•11 years ago
|
||
Comment on attachment 8490786 [details] [review]
Link to Github PR — #210
Yes, this looks fine. Thanks. I think the "close" probably needs adding to the documentation.
Attachment #8490786 -
Flags: ui-review?(standard8) → feedback+
| Assignee | ||
Comment 10•11 years ago
|
||
Documentation updated here: https://github.com/mozilla-services/docs/commit/18f76b64e98807312fc45328dc4521b4d1e5cedd
| Assignee | ||
Comment 11•11 years ago
|
||
Updated•11 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•