Open Bug 1808511 Opened 2 years ago Updated 4 months ago

EventSource: Investigate possible network errors that prevents re-connection to the server.

Categories

(Core :: DOM: Networking, task, P3)

All
Unspecified
task

Tracking

()

People

(Reporter: smayya, Unassigned)

References

Details

(Whiteboard: [necko-triaged])

The network error checks in the EventSourceImpl::OnStopRequest might not be exhaustive.
We need to investigate if there are additional network errors which need to be added in the
EventSourceImpl::OnStopRequest.

See Also: → 1706003
Priority: -- → P3
Severity: -- → N/A
Whiteboard: [necko-triaged]
See Also: → 1809332

Our current approach is we attempt to reconnect only if the errors match a set of errors.
As per the spec we need to re-establish connections for any errors except when the user has aborted the request or the user agent knows that the network request attempt is going to be futile. Therefore, we need to make an attempt to re-connect to the server in all cases except for user initiated abort or permanent network failures. This must be our approach for a long-lasting solution.

See Also: → 1872413

We need to also add tests to verify 1809332, 1706003 when we implement this refactoring.

You need to log in before you can comment on or make changes to this bug.