W3C home > Mailing lists > Public > ietf-http-wg@w3.org > July to September 2010

Protocol switch before, or after the 101 response?

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sat, 11 Sep 2010 23:20:43 +0200
To: ietf-http-wg@w3.org
Message-ID: <uqqn86996b84mvp2hp48p1rb2aqnhbuocd@hive.bjoern.hoehrmann.de>
Hi,

  In http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-11 on
the Upgrade header, "The capabilities and nature of the application-
layer communication after the protocol change is entirely dependent
upon the new protocol chosen, although the first action after changing
the protocol MUST be a response to the initial HTTP request containing
the Upgrade header field."

In http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-11 in
definition of the 101 status code this seems to be contradicted, "The
server will switch protocols to those defined by the response's Upgrade
header field immediately after the empty line which terminates the 101
response."

One says you switch and then send the 101, the other says you send the
101 and then switch. (There is also a singular/plural mismatch, but
that is probably no problem here).

(I noticed this when wondering what happens to pipelined requests that
succeed a request to switch protocols if the server decides to switch.)

regards,
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Saturday, 11 September 2010 21:21:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 06:51:25 GMT