EventSource (Server Sent Event) doesn't retry after OS suspend/resume
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
People
(Reporter: duanyao.ustc, Unassigned)
References
Details
Attachments
(2 files)
Updated•10 years ago
|
Comment 4•8 years ago
|
||
Updated•8 years ago
|
Comment 6•8 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
Comment 8•6 years ago
|
||
I can confirm/reproduce this bug on Firefox 75.0 Linux and Windows 10.
Basically, when the machine wakes-up, Firefox closes all the EventSource connections.
It behaves as if EventSource.close() was called by the page
while it is not event present in the code.
This issue doesn't occur with Chrome 81, the serve never receive the close directive on wake-up.
This bug makes Firefox unsuitable for the use of EventSource.
Comment 9•6 years ago
|
||
Dragana, how are necko request supposed to work in suspend/resume case?
Like what kinds of error might we get?
https://searchfox.org/mozilla-central/rev/2cd2d511c0d94a34fb7fa3b746f54170ee759e35/dom/base/EventSource.cpp#735,756,765
Comment 10•6 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #9)
Dragana, how are necko request supposed to work in suspend/resume case?
Like what kinds of error might we get?
https://searchfox.org/mozilla-central/rev/2cd2d511c0d94a34fb7fa3b746f54170ee759e35/dom/base/EventSource.cpp#735,756,765
It is NS_ERROR_ABORT. (not very descriptive)
Updated•3 years ago
|
Description
•