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)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: standard8, Assigned: rhubscher)

References

Details

(Whiteboard: [qa?])

Attachments

(1 file)

56 bytes, text/x-github-pull-request
alexis+bugs
: review+
tarek
: feedback+
standard8
: feedback+
Details | Review
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.
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?
I assume the three timeout defined above are sufficient to handle this case.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Blocks: 1067591
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 → ---
> 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.
(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.
Attachment #8490786 - Flags: ui-review?(standard8)
Attachment #8490786 - Flags: review?(alexis+bugs)
Attachment #8490786 - Flags: feedback?(tarek)
Assignee: nobody → rhubscher
Status: REOPENED → ASSIGNED
Whiteboard: [qa?]
Attachment #8490786 - Flags: feedback?(tarek) → feedback+
Waiting on Standard8 feedback before closing but we're good to go IMO.
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+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
This went out with 0.12.2.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: