Bug 70112

Summary: REGRESSION (r94242): EventSource should not try to reconnect if connection establishment fails
Product: WebKit Reporter: Per-Erik Brodin <per-erik.brodin>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: adam.bergkvist, ap, ian
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 61862    
Bug Blocks:    

Description Per-Erik Brodin 2011-10-14 09:33:42 PDT
According to the specification, EventSource should not try to reconnect if it fails to establish the connection in the first place.
"any network error that prevents the HTTP connection from being established in the first place (e.g. DNS errors), must cause the user agent to fail the connection"
Comment 1 Ian 'Hixie' Hickson 2011-10-14 12:15:57 PDT
(The idea being to avoid hammering an already suffering network.)
Comment 2 Per-Erik Brodin 2011-10-17 12:24:22 PDT
More easily tested with CORS support.
Comment 3 Per-Erik Brodin 2012-12-18 14:04:32 PST
Since the spec changed, this regression is now compliant!
Comment 4 Alexey Proskuryakov 2012-12-18 14:24:43 PST
I'm confused. Is it now OK to keep hitting the server indefinitely, wasting bandwidth? This seems like horrible behavior if so.