[html5] r5833 - [giow] (1) Make EventSource not reconnect for 2xx codes.

whatwg at whatwg.org whatwg at whatwg.org
Thu Feb 3 15:48:56 PST 2011


Author: ianh
Date: 2011-02-03 15:48:55 -0800 (Thu, 03 Feb 2011)
New Revision: 5833

Modified:
   complete.html
   source
Log:
[giow] (1) Make EventSource not reconnect for 2xx codes.

Modified: complete.html
===================================================================
--- complete.html	2011-02-03 23:41:51 UTC (rev 5832)
+++ complete.html	2011-02-03 23:48:55 UTC (rev 5833)
@@ -73514,20 +73514,12 @@
   doesn't apply for the error conditions listed below.</p>
 
   <p>HTTP 200 OK responses that have a <a href=#content-type>Content-Type</a> other
-  than <code><a href=#text/event-stream>text/event-stream</a></code> (or some other supported type)
-  must cause the user agent to <a href=#fail-the-connection>fail the connection</a>.</p>
+  than <code><a href=#text/event-stream>text/event-stream</a></code> (or some other supported type),
+  or that have no <a href=#content-type>Content-Type</a> at all, must cause the
+  user agent to <a href=#fail-the-connection>fail the connection</a>.</p> <!-- about:blank
+  is defined as having no MIME type; javascript: as having the type
+  text/html -->
 
-  <p>HTTP 204 No Content, and 205 Reset Content responses are
-  equivalent to 200 OK responses with the right <a href=#mime-type>MIME type</a>
-  but no content, and thus must <a href=#reestablish-the-connection>reestablish the
-  connection</a>.</p>
-
-  <p>Other HTTP response codes in the 2xx range <!--201 Created, 202
-  Accepted, 203 Non-Authoritative Information, and 206 Partial
-  Content-->must similarly <a href=#reestablish-the-connection>reestablish the connection</a>. They
-  are, however, likely to indicate an error has occurred somewhere and
-  may cause the user agent to emit a warning.</p>
-
   <p>HTTP 305 Use Proxy, HTTP 401 Unauthorized, and 407 Proxy
   Authentication Required should be treated transparently as for any
   other subresource.</p>
@@ -73542,16 +73534,19 @@
   <p>Any other HTTP response code not listed here, and 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
-  <a href=#fail-the-connection>fail the connection</a>.</p> <!-- including: HTTP 300
-  Multiple Choices, HTTP 304 Not Modified, HTTP 400 Bad Request, 403
-  Forbidden, 404 Not Found, 405 Method Not Allowed, 406 Not
-  Acceptable, 408 Request Timeout, 409 Conflict, 410 Gone, 411 Length
-  Required, 412 Precondition Failed, 413 Request Entity Too Large, 414
-  Request-URI Too Long, 415 Unsupported Media Type, 416 Requested
-  Range Not Satisfiable, 417 Expectation Failed, 500 Internal Server
-  Error, 501 Not Implemented, 502 Bad Gateway, 503 Service
-  Unavailable, 504 Gateway Timeout, and 505 HTTP Version Not Supported
-  responses -->
+  <a href=#fail-the-connection>fail the connection</a>.</p> <!-- including: HTTP 201
+  Created, HTTP 202 Accepted, HTTP 203 Non-Authoritative Information,
+  HTTP 204 No Content, HTTP 205 Reset Content, HTTP 206 Partial
+  Content, HTTP 300 Multiple Choices, HTTP 304 Not Modified, HTTP 400
+  Bad Request, 403 Forbidden, 404 Not Found, 405 Method Not Allowed,
+  406 Not Acceptable, 408 Request Timeout, 409 Conflict, 410 Gone, 411
+  Length Required, 412 Precondition Failed, 413 Request Entity Too
+  Large, 414 Request-URI Too Long, 415 Unsupported Media Type, 416
+  Requested Range Not Satisfiable, 417 Expectation Failed, 500
+  Internal Server Error, 501 Not Implemented, 502 Bad Gateway, 503
+  Service Unavailable, 504 Gateway Timeout, and 505 HTTP Version Not
+  Supported responses --> <!-- mailto: is defined as equivalent to
+  HTTP 204 -->
 
   <p>For non-HTTP protocols, UAs should act in equivalent ways.</p>
 

Modified: source
===================================================================
--- source	2011-02-03 23:41:51 UTC (rev 5832)
+++ source	2011-02-03 23:48:55 UTC (rev 5833)
@@ -83167,20 +83167,12 @@
   doesn't apply for the error conditions listed below.</p>
 
   <p>HTTP 200 OK responses that have a <span>Content-Type</span> other
-  than <code>text/event-stream</code> (or some other supported type)
-  must cause the user agent to <span>fail the connection</span>.</p>
+  than <code>text/event-stream</code> (or some other supported type),
+  or that have no <span>Content-Type</span> at all, must cause the
+  user agent to <span>fail the connection</span>.</p> <!-- about:blank
+  is defined as having no MIME type; javascript: as having the type
+  text/html -->
 
-  <p>HTTP 204 No Content, and 205 Reset Content responses are
-  equivalent to 200 OK responses with the right <span>MIME type</span>
-  but no content, and thus must <span>reestablish the
-  connection</span>.</p>
-
-  <p>Other HTTP response codes in the 2xx range <!--201 Created, 202
-  Accepted, 203 Non-Authoritative Information, and 206 Partial
-  Content-->must similarly <span>reestablish the connection</span>. They
-  are, however, likely to indicate an error has occurred somewhere and
-  may cause the user agent to emit a warning.</p>
-
   <p>HTTP 305 Use Proxy, HTTP 401 Unauthorized, and 407 Proxy
   Authentication Required should be treated transparently as for any
   other subresource.</p>
@@ -83196,16 +83188,19 @@
   <p>Any other HTTP response code not listed here, and 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
-  <span>fail the connection</span>.</p> <!-- including: HTTP 300
-  Multiple Choices, HTTP 304 Not Modified, HTTP 400 Bad Request, 403
-  Forbidden, 404 Not Found, 405 Method Not Allowed, 406 Not
-  Acceptable, 408 Request Timeout, 409 Conflict, 410 Gone, 411 Length
-  Required, 412 Precondition Failed, 413 Request Entity Too Large, 414
-  Request-URI Too Long, 415 Unsupported Media Type, 416 Requested
-  Range Not Satisfiable, 417 Expectation Failed, 500 Internal Server
-  Error, 501 Not Implemented, 502 Bad Gateway, 503 Service
-  Unavailable, 504 Gateway Timeout, and 505 HTTP Version Not Supported
-  responses -->
+  <span>fail the connection</span>.</p> <!-- including: HTTP 201
+  Created, HTTP 202 Accepted, HTTP 203 Non-Authoritative Information,
+  HTTP 204 No Content, HTTP 205 Reset Content, HTTP 206 Partial
+  Content, HTTP 300 Multiple Choices, HTTP 304 Not Modified, HTTP 400
+  Bad Request, 403 Forbidden, 404 Not Found, 405 Method Not Allowed,
+  406 Not Acceptable, 408 Request Timeout, 409 Conflict, 410 Gone, 411
+  Length Required, 412 Precondition Failed, 413 Request Entity Too
+  Large, 414 Request-URI Too Long, 415 Unsupported Media Type, 416
+  Requested Range Not Satisfiable, 417 Expectation Failed, 500
+  Internal Server Error, 501 Not Implemented, 502 Bad Gateway, 503
+  Service Unavailable, 504 Gateway Timeout, and 505 HTTP Version Not
+  Supported responses --> <!-- mailto: is defined as equivalent to
+  HTTP 204 -->
 
   <p>For non-HTTP protocols, UAs should act in equivalent ways.</p>
 




More information about the Commit-Watchers mailing list