
From ietf-http-wg-request@listhub.w3.org  Sat Nov  3 06:59:05 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2B22321F999B for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat,  3 Nov 2012 06:59:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TrZ8wXFvMkVj for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat,  3 Nov 2012 06:59:04 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 75AEA21F9995 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat,  3 Nov 2012 06:59:04 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TUeCc-0001SR-IT for ietf-http-wg-dist@listhub.w3.org; Sat, 03 Nov 2012 13:55:58 +0000
Resent-Date: Sat, 03 Nov 2012 13:55:58 +0000
Resent-Message-Id: <E1TUeCc-0001SR-IT@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TUeCW-0001Rh-CP for ietf-http-wg@listhub.w3.org; Sat, 03 Nov 2012 13:55:52 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TUeCR-0004g9-At for ietf-http-wg@w3.org; Sat, 03 Nov 2012 13:55:52 +0000
Received: from dhcp-4449.meeting.ietf.org (unknown [130.129.68.73]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 30D0050A64; Sat,  3 Nov 2012 09:55:24 -0400 (EDT)
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <6C71876BDCCD01488E70A2399529D5E522F2AE@ADELE.crf.canon.fr>
Date: Sat, 3 Nov 2012 09:55:24 -0400
Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <B895532E-A06C-4B5A-A4BD-D34F2029E6C8@mnot.net>
References: <6C71876BDCCD01488E70A2399529D5E522F2AE@ADELE.crf.canon.fr>
To: RUELLAN Herve <Herve.Ruellan@crf.canon.fr>
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-1.9
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TUeCR-0004g9-At 9f5a76954ff793e21e81b277a1abf7c5
X-Original-To: ietf-http-wg@w3.org
Subject: Re: HTTP Header Compaction Results
Archived-At: <http://www.w3.org/mid/B895532E-A06C-4B5A-A4BD-D34F2029E6C8@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15562
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

OK, I've put a few up at:
  https://github.com/http2/http_samples

Contributions welcome. I've punted on the TLS interception, so those =
sites that require it aren't represented, for the time being.

Next step, I think, is to get some infrastructure going that turns the =
HAR files into input streams for various compression algorithm =
implementations, both under optimistic (e.g., combining many =
connections) and pessimistic (e.g., no connection combination) =
conditions.

Cheers,


On 22/10/2012, at 12:26 PM, RUELLAN Herve <Herve.Ruellan@crf.canon.fr> =
wrote:

> Hi all,
>=20
> We are currently studying the compaction results for different header =
encoding formats, including various SPDY versions and an internally =
developed format (we plan to publish its description as soon as =
possible).
>=20
> We are wondering whether anyone is aware of a test corpus for HTTP =
exchanges that would be available, or could be made available. This =
would help us obtaining fair and realistic results.
>=20
> Currently we are using web pages obtained from Alexa's top ranked =
sites. While computing our results, we are taking into account several =
parameters: separate study of requests and responses, using deflate or =
not (when relevant), variable number of exchanged messages =
(corresponding to loading from 1 to 10 web pages). Any advice on these =
measurements would be appreciated.
>=20
> Last, we would like to share our results to help the WG discussions on =
this topic. As we're rather new to the IETF, we're not sure of the best =
way to do this. I plan to attend the IEFT 85 meeting in Atlanta, so I =
could use this occasion to share these results.
>=20
> Regards,
>=20
> Herv=E9
>=20

--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Sat Nov  3 07:41:38 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4A1FA21F9974 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat,  3 Nov 2012 07:41:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.648
X-Spam-Level: 
X-Spam-Status: No, score=-4.648 tagged_above=-999 required=5 tests=[AWL=3.538, BAYES_40=-0.185, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KQHjtPDuGWkM for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat,  3 Nov 2012 07:41:36 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id B11B521F8967 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat,  3 Nov 2012 07:41:36 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TUet9-0001nB-6Y for ietf-http-wg-dist@listhub.w3.org; Sat, 03 Nov 2012 14:39:55 +0000
Resent-Date: Sat, 03 Nov 2012 14:39:55 +0000
Resent-Message-Id: <E1TUet9-0001nB-6Y@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <julian.reschke@gmx.de>) id 1TUet4-0001mS-29 for ietf-http-wg@listhub.w3.org; Sat, 03 Nov 2012 14:39:50 +0000
Received: from mailout-de.gmx.net ([213.165.64.22]) by maggie.w3.org with smtp (Exim 4.72) (envelope-from <julian.reschke@gmx.de>) id 1TUet1-0005t5-LU for ietf-http-wg@w3.org; Sat, 03 Nov 2012 14:39:49 +0000
Received: (qmail invoked by alias); 03 Nov 2012 14:39:17 -0000
Received: from p54BB3489.dip.t-dialin.net (EHLO [192.168.178.36]) [84.187.52.137] by mail.gmx.net (mp070) with SMTP; 03 Nov 2012 15:39:17 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1/7nXg1OBn7cbaSS1WixHIbN8Xr2XTvJpR1x8aduQ rsE1pCZ7YU1Qw1
Message-ID: <50952C8E.3050303@gmx.de>
Date: Sat, 03 Nov 2012 15:39:10 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: Dan Winship <dan.winship@gmail.com>
CC: HTTP Working Group <ietf-http-wg@w3.org>
References: <508FB6BE.1070401@gmail.com>
In-Reply-To: <508FB6BE.1070401@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
Received-SPF: pass client-ip=213.165.64.22; envelope-from=julian.reschke@gmx.de; helo=mailout-de.gmx.net
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-2.500, BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TUet1-0005t5-LU 64f2349a7407961c56fbf0c371ba84b0
X-Original-To: ietf-http-wg@w3.org
Subject: Re: WGLC review of p1-messaging (editorial stuff)
Archived-At: <http://www.w3.org/mid/50952C8E.3050303@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15563
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Hi Dan,

first of all: Thanks a lot for your review; this is very, very helpful.

I'll try to fix the obvious stuff right away, have a few questions, and 
will open tickets for everything else. When commenting about something 
that got a ticket number *please* start a new thread and put the ticket 
number into the subject line.

See more comments in-line.

On 2012-10-30 12:15, Dan Winship wrote:
>> 1. Introduction
>
>>     The Hypertext Transfer Protocol (HTTP) is an application-level
>>     request/response protocol that uses extensible semantics and
>>     MIME-like message payloads for flexible interaction with
>>     network-based hypertext information systems.
>
> Removing the word "hypertext" from the last line would make this a
> more accurate description of present-day HTTP. Likewise a bit later
> on:
>
>>     HTTP proxies and gateways can provide access to alternative
>>     information services by translating their diverse protocols into
>>     a hypertext format that can be viewed and manipulated by clients
>>     in the same way as HTTP services.

The "H" in HTTP stands for "Hypertext". As such I'd prefer to keep this, 
but defer this to Roy.

>> 2.2. Implementation Diversity
>
>>     Likewise, requirements that an automated action be confirmed by
>>     the user before proceeding can me met via advance configuration
>
> typo: "can *be* met"

Indeed; fixed earlier on.

Note that we have the latest edits on line (see 
<http://greenbytes.de/tech/webdav/#wg-httpbis> and 
<http://trac.tools.ietf.org/wg/httpbis/trac/browser/draft-ietf-httpbis/latest>; 
diffs of the text versions are can be found at 
<http://greenbytes.de/tech/webdav/#wg-httpbis> as well, for instance 
<http://greenbytes.de/tech/webdav/draft-ietf-httpbis-p1-messaging-latest-from-previous.diff.html> 
for this part.

>> 2.3. Intermediaries
>
>>     Many implementations depend on HTTP's stateless design in order
>>     to reuse proxied connections or dynamically load balance requests
>>     across multiple servers.
>
> "load-balance" should have a hyphen (otherwise it's easy to misparse
> as being about loading "balance requests")

Done.

>> 2.4. Caches
>
>>     There are a wide variety of architectures and configurations of
>>     caches and proxies deployed across the World Wide Web and inside
>>     large organizations. These systems include national hierarchies
>>     of proxy caches to save transoceanic bandwidth, systems that
>>     broadcast or multicast cache entries, organizations that
>>     distribute subsets of cached data via optical media, and so on.
>
> Since this section is entitled "Caches" and all of the examples are
> about caches, it might make sense to remove the words "and proxies" in
> the first sentence.

<http://trac.tools.ietf.org/wg/httpbis/trac/ticket/389>

>> 2.6. Protocol Versioning
>
>>     However, the minor version was not incremented for the changes
>>     introduced between [RFC2068] and [RFC2616], and this revision is
>>     specifically avoiding any such changes to the protocol.
>
> Change tense? ("has specifically avoided")

Done.

>> 2.7.1. http URI scheme
>
>>     If the host identifier is provided as an IP literal or IPv4
>>     address,
>
> We don't import the "IP-literal" and "IPv4address" rules from 3986, so
> this would make more sense as just "provided as an IP address".

<http://trac.tools.ietf.org/wg/httpbis/trac/ticket/390>

>>     received with an empty host, then it MUST be rejected as invalid.
>>     If the port subcomponent is empty or not given, then TCP port 80 is
>>     assumed (the default reserved port for WWW services).
>
> should "WWW" be "HTTP"?

Dunno. Roy?

>>     Senders MUST NOT include a userinfo subcomponent (and its "@"
>>     delimiter) when transmitting an "http" URI in a message.
>
> would read better if the "and" was "or" IMHO

"and" sounds right to me.

> Also, taken literally, this rule prohibits even transmitting an HTML
> page containing a link with a userinfo subcomponent. Maybe:
>
>     Senders MUST NOT include a userinfo subcomponent (or its "@"
>     delimiter) when transmitting an "http" URI in the request-line or
>     header section of a message.
>
> [Mark just commented on this in his review too but suggested "in a
> request-target". Not sure if the restriction was meant to include
> headers as well...]

<http://trac.tools.ietf.org/wg/httpbis/trac/ticket/391>

>>     the deprecated subcomponent is being used to obscure the authority
>>     for the sake of phishing attacks.
>
> Should "phishing" be defined/cited?

Do we have something we could cite?

>> 2.7.2. https URI scheme
>
>>     distinct origin servers. However, an extension to HTTP that is
>>     defined to apply to entire host domains, such as the Cookie
>>     protocol [RFC6265], can allow information set by one service to
>>     impact communication with other services within a matching group
>>     of host domains.
>
> "can allow" sounds like permission. I'd say "might allow" (and maybe
> even explicitly state that it really SHOULD NOT?).

"might" works for me. What do others think?

>> 2.7.3. http and https URI Normalization and Comparison
>
>>     Likewise, an empty path component is equivalent to an absolute
>>     path of "/", so the normal form is to provide a path of "/"
>>     instead.
>
> Except that an empty path is not equivalent to a path of "/" in an
> OPTIONS request sent to a proxy...

That's the "authority-form", right? That's not an HTTP(s) URI anyway.

>> 3.1. Start Line
>
>>     In theory, a client could receive requests and a server could
>>     receive responses, distinguishing them by their different
>>     start-line formats, but in practice servers are implemented to
>>     only expect a request (a response is interpreted as an unknown or
>>     invalid request method) and clients are implemented to only
>>     expect a response.
>
> This is new text, and given that there will not be an HTTP/1.2, is
> there really any reason to add it?

I think it's useful information.

>> 3.2. Header Fields
>
>>        Note: The "Set-Cookie" header field as implemented in practice
>>        can occur multiple times, but does not use the list syntax,
>>        and thus cannot be combined into a single line ([RFC6265]).
>>        (See Appendix A.2.3 of [Kri2001] for details.) Also note that
>>        the Set-Cookie2 header field specified in [RFC2965] does not
>>        share this problem.
>
> The Kri2001 citation doesn't add anything now that we have a canonical
> Set-Cookie spec in RFC 6265. Likewise, there's no point in citing RFC
> 2965 since it's now obsolete.

[Kri2001] provides useful historical background that unfortunately is 
not in RFC 6265; as such I'd like to keep the reference.

I have removed the statement about Set-Cookie2, though.

>> 3.2.1. Whitespace
>
>>       OWS            = *( SP / HTAB )
>>                      ; "optional" whitespace
>>       RWS            = 1*( SP / HTAB )
>>                      ; "required" whitespace
>>       BWS            = OWS
>>                      ; "bad" whitespace
>
> The quotes around "optional" and "required" don't serve any purpose.
> (The ones around "bad" can either go or stay, depending on whether you
> think BWS is bad or just "bad".)

Done.

>> 3.2.2. Field Parsing
>
>>     A field value MAY be preceded by optional whitespace (OWS); a
>>     single SP is preferred.
>
> "MAY" and "optional" are redundant. "A field value is preceded by
> optional whitespace..."

Indeed. OWS can be empty anyway, so all we need is a statement of fact. 
Done.

>> 3.2.4. Field value components
>
>>       qdtext         = OWS / %x21 / %x23-5B / %x5D-7E / obs-text
>>       ctext          = OWS / %x21-27 / %x2A-5B / %x5D-7E / obs-text
>
> It seems weird to use "OWS" here rather than "HTAB / SP".

Done. (I wonder what made me put it there)


>> 3.3.3. Message Body Length
>
>>         If this is a response message received by a user-agent, it
>>         MUST be treated as an error by discarding the message and
>>         closing the connection.
>
> "user agent" does not have a hyphen.

We now use "user agent" throughout.

>>     5.  If a valid Content-Length header field is present without
>>         Transfer-Encoding, its decimal value defines the message body
>>         length in octets. If the actual number of octets sent in the
>>         message is less than the indicated Content-Length, the
>>         recipient MUST consider the message to be incomplete and
>>         treat the connection as no longer usable.
>
> The only way the sender could have sent fewer than the indicated
> number of octets would be if it closed the connection early, in which
> case telling the receiver to "treat the connection as no longer
> usuable" is hardly necessary. Maybe:
>
>       If the sender closes the connection or the recipient times out
>       before the indicated number of octets are received, then the
>       recipient MUST consider the message to be incomplete and treat
>       the connection as no longer usable.
>
>>         If the actual number of octets sent in the message is more
>>         than the indicated Content-Length
>
> This is impossible by definition; any octets after the indicated
> Content-Length are not part of the message.
>
>>         the recipient MUST only process the message body up to the
>>         field value's number of octets; the remainder of the message
>>         MUST either be discarded or treated as the next message in a
>>         pipeline. For the sake of robustness, a user-agent MAY
>>         attempt to detect and correct such an error in message
>>         framing if it is parsing the response to the last request on
>>         a connection and the connection has been closed by the
>>         server.
>
> As above, "user agent" shouldn't have a hyphen, but it should be
> "client" here anyway, shouldn't it?
>
> Maybe replace the whole paragraph with:
>
>      For the sake of robustness, a client MAY assume that any
>      additional octets after the indicated Content-Length in the
>      response to the last request on a connection were intended to be
>      part of the message body.

<http://trac.tools.ietf.org/wg/httpbis/trac/ticket/392>

>> 5.3. Request Target
>
> We explicitly say not to include userinfo when using origin-form:
>
>>     A Host header field is also sent, as defined in
>>     Section 5.4, containing the target URI's authority component
>>     (excluding any userinfo).
>
> or authority-form:
>
>>     When making a CONNECT request to establish a tunnel through one
>>     or more proxies, a client MUST send only the target URI's
>>     authority component (excluding any userinfo) as the
>>     request-target.
>
> but we don't say anything about userinfo when using absolute-form.
> I guess 2.7.1 already forbids sending a userinfo there but it still
> seems inconsistent to not say it here. (Alternatively, if 2.7.1's
> restriction is only supposed to apply to request-target, then we could
> remove it there and specify it in each case here.)

<http://trac.tools.ietf.org/wg/httpbis/trac/ticket/393>

>> 5.4. Host
>
>>     If the authority component is missing or undefined for the target
>>     URI, then the Host header field MUST be sent with an empty
>>     field-value.
>
> 5.1 defines "target URI" as being an absolute URI, and http URIs
> always have an authority component, so this requirement seems
> meaningless.

<http://trac.tools.ietf.org/wg/httpbis/trac/ticket/394>

>> 5.7. Via
>
>>       received-protocol = [ protocol-name "/" ] protocol-version
>
> protocol-name and protocol-version aren't defined yet. Forward ref?

I added a forward as ABNF comment for now.

>> 6.1. Connection
>
>>     When a header field is used to supply control information for or
>>     about the current connection, the sender SHOULD list the
>>     corresponding field-name within the "Connection" header field.
>
> Isn't that a MUST?
>
>>       Connection: close
>>
>>     in either the request or the response header fields indicates that
>>     the connection SHOULD be closed after the current request/response
>>     is complete (Section 6.2.5).
>
> Likewise. (6.2.5 seems to agree)

<http://trac.tools.ietf.org/wg/httpbis/trac/ticket/395>

>> 6.2. Persistent Connections
>
> I'd mentioned this before on the list, but all the intro text here
> except for the final "HTTP implementations SHOULD implement persistent
> connections" is really only of historical interest and could just go
> away. The "SHOULD implement" requirement could be moved into "6.2.2
> Reuse", and then each of the subsections of 6.2 could be promoted up
> to become a direct child of section 6. So you'd get:
>
>    6.  Connection Management
>    6.1.  Connection
>    6.2.  Establishment
>    6.3.  Reuse
>    6.3.1.  Pipelining
>    6.3.2.  Retrying Requests
>    6.4.  Concurrency
>    6.5.  Failures and Time-outs
>    6.6.  Tear-down
>    6.7.  Upgrade
>
>
>
>> 6.2.2. Reuse
>
>>     A server MAY assume that an HTTP/1.1 client intends to maintain a
>>     persistent connection until a close connection option is received
>>     in a request.
>
> SHOULD?

<http://trac.tools.ietf.org/wg/httpbis/trac/ticket/396>

>> 6.2.2.2. Retrying Requests
>
>>     Confirmation by user-agent software with semantic understanding of
>>     the application MAY substitute for user confirmation.  The
>>     automatic
>
> "user agent" shouldn't have a hyphen. (This one is inherited from
> 2616; 2068 was consistent, but the hyphenated form started creeping in
> in 2616.)

Done.

>> 6.2.5. Tear-down
>
>>     A server that receives a close connection option MUST initiate a
>>     lingering close of the connection after it sends the final
>>     response
>
> This could use a "(see below)" since "lingering close" hasn't been
> defined yet.

Done.

>> 7.6. Upgrade Token Registry
>
>>     The HTTP Upgrade Token Registry defines the name space for
>>     protocol-name tokens used to identify protocols in the Upgrade
>>     header field.
>
> They're used in the Via header field too... (Should the registry be
> renamed to "Protocol-name Token Registry"?)

Is it worth the trouble? (The registry is already there, after all).


>> 8.4. DNS-related Attacks
>
>>     Clients need to be cautious in assuming the validity of an IP
>>     number/DNS name association unless the response is protected by
>>     DNSSec
>
> "DNSSEC", not "DNSSec"

Done.

>> A.1.3. Introduction of Transfer-Encoding
>
>>     Proxies/gateways MUST remove any transfer-coding
>>     prior to forwarding a message via a MIME-compliant protocol.
>
> This seems like it would fit better in p2's "Appendix A. Differences
> between HTTP and MIME".

We already have 
<http://greenbytes.de/tech/webdav/draft-ietf-httpbis-p2-semantics-21.html#rfc.section.A.5>

>> A.2. Changes from RFC 2616
>
> We probably want to double-check these sections against the issue
> tracker before final publication, but one particular thing that stuck
> out to me as missing is the addition of the CONNECT rule and removal

You mean the inclusion of CONNECT? We already mention that in P2. Should 
we mention here as well?

> of the multipart/byteranges rule from Section 3.3.3.

Added.

Best regards, Julian



From ietf-http-wg-request@listhub.w3.org  Sat Nov  3 15:57:29 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7E99521F9B9D for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat,  3 Nov 2012 15:57:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.598
X-Spam-Level: 
X-Spam-Status: No, score=-10.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, WEIRD_PORT=0.001]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XTMO3qXX2uen for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat,  3 Nov 2012 15:57:28 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 6F0AF21F9ADA for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat,  3 Nov 2012 15:57:27 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TUmcQ-0003Ym-CQ for ietf-http-wg-dist@listhub.w3.org; Sat, 03 Nov 2012 22:55:10 +0000
Resent-Date: Sat, 03 Nov 2012 22:55:10 +0000
Resent-Message-Id: <E1TUmcQ-0003Ym-CQ@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <dan.winship@gmail.com>) id 1TUmcL-0003Y2-2s for ietf-http-wg@listhub.w3.org; Sat, 03 Nov 2012 22:55:05 +0000
Received: from mail-pa0-f43.google.com ([209.85.220.43]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <dan.winship@gmail.com>) id 1TUmcJ-0001ZE-Vj for ietf-http-wg@w3.org; Sat, 03 Nov 2012 22:55:05 +0000
Received: by mail-pa0-f43.google.com with SMTP id fb1so3041944pad.2 for <ietf-http-wg@w3.org>; Sat, 03 Nov 2012 15:54:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=HyDM+wEMFVgbJujIja34LiqxFv9wrR5K08PNG52l3po=; b=YuqnC/3oJvq2l2Vw0XfQt/nRXbTrtrl0vXeLEInrtTLj4WhW32porxJ9pU5cNjqbnp npD+iAd07iO2dn2dezVijpFMp3gcYz9tOCakdaK61aoG3dI1v9bYNh2ZFvzKziQHs/vL +WDvjFDXYmYHyQhKJkED6W+rtKYjQfb+HO+l7GvaBzjulRpfaVBikATf1Gv+5K68WmCl 7mX2KefUVjrmMm0y9qke/Jdah+oEET8kvHfoW72gBC4G9sFpiUszL0V5ehZEghdnj/Lk IJARIgAnLdlRVtfw0HF19NXHOT8tlEVEEUjD08/epjgjmmgsBuDGAxX6z5ZEPIuCRKdq 3efw==
Received: by 10.66.80.166 with SMTP id s6mr16987304pax.21.1351983277498; Sat, 03 Nov 2012 15:54:37 -0700 (PDT)
Received: from laptop.home.mysterion.org (c-71-226-33-16.hsd1.az.comcast.net. [71.226.33.16]) by mx.google.com with ESMTPS id qi2sm7980382pbc.22.2012.11.03.15.54.35 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 03 Nov 2012 15:54:36 -0700 (PDT)
Message-ID: <5095A060.2020902@gmail.com>
Date: Sat, 03 Nov 2012 18:53:20 -0400
From: Dan Winship <dan.winship@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1
MIME-Version: 1.0
To: Julian Reschke <julian.reschke@gmx.de>
CC: HTTP Working Group <ietf-http-wg@w3.org>
References: <508FB6BE.1070401@gmail.com> <50952C8E.3050303@gmx.de>
In-Reply-To: <50952C8E.3050303@gmx.de>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=209.85.220.43; envelope-from=dan.winship@gmail.com; helo=mail-pa0-f43.google.com
X-W3C-Hub-Spam-Status: No, score=-2.7
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, WEIRD_PORT=0.001
X-W3C-Scan-Sig: maggie.w3.org 1TUmcJ-0001ZE-Vj a959df0076479808e94d1187455ffe76
X-Original-To: ietf-http-wg@w3.org
Subject: Re: WGLC review of p1-messaging (editorial stuff)
Archived-At: <http://www.w3.org/mid/5095A060.2020902@gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15564
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 11/03/2012 10:39 AM, Julian Reschke wrote:
>> Removing the word "hypertext" from the last line would make this a
>> more accurate description of present-day HTTP.

> The "H" in HTTP stands for "Hypertext". As such I'd prefer to keep this,

Sure, but "it's not just for hypertext any more".

>>> 2.7.3. http and https URI Normalization and Comparison
>>
>>>     Likewise, an empty path component is equivalent to an absolute
>>>     path of "/", so the normal form is to provide a path of "/"
>>>     instead.
>>
>> Except that an empty path is not equivalent to a path of "/" in an
>> OPTIONS request sent to a proxy...
> 
> That's the "authority-form", right? That's not an HTTP(s) URI anyway.

No, not authority-form. 5.3 says:

>    For example, the request
> 
>      OPTIONS http://www.example.org:8001 HTTP/1.1
> 
>    would be forwarded by the final proxy as
> 
>      OPTIONS * HTTP/1.1
>      Host: www.example.org:8001

but "OPTIONS http://www.example.org:8001/ HTTP/1.1" would be forwarded
as "OPTIONS / HTTP/1.1". So the empty-path and "/"-path forms are not
equivalent in this one case.

(although now that you mention it, using authority-form here instead of
absolute-form-minus-"/" would have made a lot more sense...)

>>> A.2. Changes from RFC 2616
>>
>> We probably want to double-check these sections against the issue
>> tracker before final publication, but one particular thing that stuck
>> out to me as missing is the addition of the CONNECT rule and removal
> 
> You mean the inclusion of CONNECT? We already mention that in P2. Should
> we mention here as well?
> 
>> of the multipart/byteranges rule from Section 3.3.3.

Sorry, both parts of that sentence were referring to Section 3.3.3; the
rule about CONNECT responses in 3.3.3 is new since 2616.

-- Dan



From ietf-http-wg-request@listhub.w3.org  Sun Nov  4 07:31:22 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B0D7121F86D2 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun,  4 Nov 2012 07:31:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.155
X-Spam-Level: 
X-Spam-Status: No, score=-7.155 tagged_above=-999 required=5 tests=[AWL=3.443, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, WEIRD_PORT=0.001]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 835RQwvWsNch for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun,  4 Nov 2012 07:31:21 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 156D421F8716 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun,  4 Nov 2012 07:31:20 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TV27s-0002Ec-Dn for ietf-http-wg-dist@listhub.w3.org; Sun, 04 Nov 2012 15:28:40 +0000
Resent-Date: Sun, 04 Nov 2012 15:28:40 +0000
Resent-Message-Id: <E1TV27s-0002Ec-Dn@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <julian.reschke@gmx.de>) id 1TV27m-0002Dt-9q for ietf-http-wg@listhub.w3.org; Sun, 04 Nov 2012 15:28:34 +0000
Received: from mailout-de.gmx.net ([213.165.64.23]) by maggie.w3.org with smtp (Exim 4.72) (envelope-from <julian.reschke@gmx.de>) id 1TV27l-000061-6q for ietf-http-wg@w3.org; Sun, 04 Nov 2012 15:28:34 +0000
Received: (qmail invoked by alias); 04 Nov 2012 15:28:06 -0000
Received: from p5DD949B4.dip.t-dialin.net (EHLO [192.168.1.100]) [93.217.73.180] by mail.gmx.net (mp019) with SMTP; 04 Nov 2012 16:28:06 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1/fhDwancvfVAT0fAuTTQsR0vBQ0TOZodv+9+sSf9 73KPAgoxGdsJQ2
Message-ID: <50968986.4040507@gmx.de>
Date: Sun, 04 Nov 2012 16:28:06 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: Dan Winship <dan.winship@gmail.com>
CC: HTTP Working Group <ietf-http-wg@w3.org>
References: <508FB6BE.1070401@gmail.com> <50952C8E.3050303@gmx.de> <5095A060.2020902@gmail.com>
In-Reply-To: <5095A060.2020902@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
Received-SPF: pass client-ip=213.165.64.23; envelope-from=julian.reschke@gmx.de; helo=mailout-de.gmx.net
X-W3C-Hub-Spam-Status: No, score=-4.3
X-W3C-Hub-Spam-Report: AWL=-2.426, BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, WEIRD_PORT=0.001
X-W3C-Scan-Sig: maggie.w3.org 1TV27l-000061-6q 14c0ff2895ceee170a2cceccffa93be3
X-Original-To: ietf-http-wg@w3.org
Subject: Re: WGLC review of p1-messaging (editorial stuff)
Archived-At: <http://www.w3.org/mid/50968986.4040507@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15565
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 2012-11-03 23:53, Dan Winship wrote:
> On 11/03/2012 10:39 AM, Julian Reschke wrote:
>>> Removing the word "hypertext" from the last line would make this a
>>> more accurate description of present-day HTTP.
>
>> The "H" in HTTP stands for "Hypertext". As such I'd prefer to keep this,
>
> Sure, but "it's not just for hypertext any more".
>
>>>> 2.7.3. http and https URI Normalization and Comparison
>>>
>>>>      Likewise, an empty path component is equivalent to an absolute
>>>>      path of "/", so the normal form is to provide a path of "/"
>>>>      instead.
>>>
>>> Except that an empty path is not equivalent to a path of "/" in an
>>> OPTIONS request sent to a proxy...
>>
>> That's the "authority-form", right? That's not an HTTP(s) URI anyway.
>
> No, not authority-form. 5.3 says:
>
>>     For example, the request
>>
>>       OPTIONS http://www.example.org:8001 HTTP/1.1
>>
>>     would be forwarded by the final proxy as
>>
>>       OPTIONS * HTTP/1.1
>>       Host: www.example.org:8001
>
> but "OPTIONS http://www.example.org:8001/ HTTP/1.1" would be forwarded
> as "OPTIONS / HTTP/1.1". So the empty-path and "/"-path forms are not
> equivalent in this one case.
>
> (although now that you mention it, using authority-form here instead of
> absolute-form-minus-"/" would have made a lot more sense...)

OK; added as <http://trac.tools.ietf.org/wg/httpbis/trac/ticket/397>.

>>>> A.2. Changes from RFC 2616
>>>
>>> We probably want to double-check these sections against the issue
>>> tracker before final publication, but one particular thing that stuck
>>> out to me as missing is the addition of the CONNECT rule and removal
>>
>> You mean the inclusion of CONNECT? We already mention that in P2. Should
>> we mention here as well?
>>
>>> of the multipart/byteranges rule from Section 3.3.3.
>
> Sorry, both parts of that sentence were referring to Section 3.3.3; the
> rule about CONNECT responses in 3.3.3 is new since 2616.

I see. Fixed with 
<http://trac.tools.ietf.org/wg/httpbis/trac/changeset/1973>.

Best regards, Julian



From ietf-http-wg-request@listhub.w3.org  Mon Nov  5 00:28:15 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6AA3A21F8456 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon,  5 Nov 2012 00:28:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.538
X-Spam-Level: 
X-Spam-Status: No, score=-7.538 tagged_above=-999 required=5 tests=[AWL=3.061, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qzTNWaFisE+V for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon,  5 Nov 2012 00:28:14 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id C669B21F8453 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon,  5 Nov 2012 00:28:14 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TVHzl-0005ms-T5 for ietf-http-wg-dist@listhub.w3.org; Mon, 05 Nov 2012 08:25:21 +0000
Resent-Date: Mon, 05 Nov 2012 08:25:21 +0000
Resent-Message-Id: <E1TVHzl-0005ms-T5@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <julian.reschke@gmx.de>) id 1TVHzg-0005m8-JZ for ietf-http-wg@listhub.w3.org; Mon, 05 Nov 2012 08:25:16 +0000
Received: from mailout-de.gmx.net ([213.165.64.23]) by maggie.w3.org with smtp (Exim 4.72) (envelope-from <julian.reschke@gmx.de>) id 1TVHzf-0002Wj-7j for ietf-http-wg@w3.org; Mon, 05 Nov 2012 08:25:16 +0000
Received: (qmail invoked by alias); 05 Nov 2012 08:23:32 -0000
Received: from p5DD958E6.dip.t-dialin.net (EHLO [192.168.2.117]) [93.217.88.230] by mail.gmx.net (mp017) with SMTP; 05 Nov 2012 09:23:32 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX19UpQUwM5hUOVBTXYGbhlUYkH5/Mx6KFIUzBiWNo6 1SB+cOCostNj6L
Message-ID: <5097777B.900@gmx.de>
Date: Mon, 05 Nov 2012 09:23:23 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
Received-SPF: pass client-ip=213.165.64.23; envelope-from=julian.reschke@gmx.de; helo=mailout-de.gmx.net
X-W3C-Hub-Spam-Status: No, score=-4.3
X-W3C-Hub-Spam-Report: AWL=-2.429, BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TVHzf-0002Wj-7j 22da0ebc698b5c4063e5bc309120722d
X-Original-To: ietf-http-wg@w3.org
Subject: First HTTPbis Working Group Session in Atlanta today, 1pm eastern  time
Archived-At: <http://www.w3.org/mid/5097777B.900@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15566
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Reminder:

the HTTPbis Working Group meets today, see 
<http://tools.ietf.org/agenda/85/#2012-11-06_1300>.

Audio Stream: <http://ietf85streaming.dnsalias.net/ietf/ietf857.m3u>
Text Chat: <xmpp:httpbis@jabber.ietf.org?join>

Best regards, Julian


From ietf-http-wg-request@listhub.w3.org  Mon Nov  5 21:09:58 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A56B611E80D5 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon,  5 Nov 2012 21:09:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.376
X-Spam-Level: 
X-Spam-Status: No, score=-9.376 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, J_CHICKENPOX_33=0.6, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t7ayHGndicBD for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon,  5 Nov 2012 21:09:57 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 7846721F848D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon,  5 Nov 2012 21:09:57 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TVbMt-0002BD-IU for ietf-http-wg-dist@listhub.w3.org; Tue, 06 Nov 2012 05:06:31 +0000
Resent-Date: Tue, 06 Nov 2012 05:06:31 +0000
Resent-Message-Id: <E1TVbMt-0002BD-IU@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <nygren@gmail.com>) id 1TVbMm-00029U-Oc for ietf-http-wg@listhub.w3.org; Tue, 06 Nov 2012 05:06:24 +0000
Received: from mail-vc0-f171.google.com ([209.85.220.171]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <nygren@gmail.com>) id 1TVbMl-0008AL-Du for ietf-http-wg@w3.org; Tue, 06 Nov 2012 05:06:24 +0000
Received: by mail-vc0-f171.google.com with SMTP id m18so48754vcm.2 for <ietf-http-wg@w3.org>; Mon, 05 Nov 2012 21:05:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=2fn1eniANsb05AriuYtwy0y/epNL4Lpx56daMAf5oJA=; b=E7Hzko8xLMfeA2FGUHaD+Rynq3qHQf/zXpmvwTLwRk0zNs66gITr63QBMjJcjOqfM/ H2DGLggJUex6S8HGEfBGrde3e7zFR6HhQTepp29jVeI1kun0wBNeOmEbG+fSj7iNoXNj 28ucJImNoukisO5MZ6OpATNYoepbYgWCUN+z210hSdE+GsqToIQqayeG4VaoqHp3LQhc lvBeMA4fnbAJoB5BPy8kDUC+AeU00cjAf4qyXISbcI9a4Vi0QOra5v5JLL74u5q1a253 vLFGuoCet0I/pPvWGdqnRHK/RwWJRAjZwPFBh1bSYdBEVe9AywUvaqWDDolvtEGmuZ5D V8Tw==
MIME-Version: 1.0
Received: by 10.52.90.99 with SMTP id bv3mr10039044vdb.125.1352178357823; Mon, 05 Nov 2012 21:05:57 -0800 (PST)
Sender: nygren@gmail.com
Received: by 10.220.197.131 with HTTP; Mon, 5 Nov 2012 21:05:57 -0800 (PST)
In-Reply-To: <CAKC-DJiZeOZLTMyS4GDpOHnW2AJdE_1nu9vHgJAGE3DC=i6QNg@mail.gmail.com>
References: <emcc9604a4-b61e-4704-b0ae-c80c3d8430de@bombed> <508B783C.4040904@ericsson.com> <CAKC-DJiZeOZLTMyS4GDpOHnW2AJdE_1nu9vHgJAGE3DC=i6QNg@mail.gmail.com>
Date: Tue, 6 Nov 2012 00:05:57 -0500
X-Google-Sender-Auth: MTVQ2QVADeTm6tWna1NHwkqJTv4
Message-ID: <CAKC-DJjsD5-0ggb3+ALHPR5LVE=VZ4xj6XQMqNRfH1uZvjqieg@mail.gmail.com>
From: Erik Nygren <erik@nygren.org>
To: ietf-http-wg@w3.org
Content-Type: multipart/alternative; boundary=20cf307f3bccb0e7cc04cdcc8e2b
Received-SPF: pass client-ip=209.85.220.171; envelope-from=nygren@gmail.com; helo=mail-vc0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-2.6
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TVbMl-0008AL-Du a825d131a1a32369874650ffc6ba8103
X-Original-To: ietf-http-wg@w3.org
Subject: Re: #385: HTTP2 Upgrade / Negotiation
Archived-At: <http://www.w3.org/mid/CAKC-DJjsD5-0ggb3+ALHPR5LVE=VZ4xj6XQMqNRfH1uZvjqieg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15567
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--20cf307f3bccb0e7cc04cdcc8e2b
Content-Type: text/plain; charset=ISO-8859-1

Some thoughts after having read through this thread on the flight over...
(Note that some of these are skewed from the perspective of having
spent too much time staring at one particular CDN / Acceleration Gateway
over the years, but I think some are generally applicable.)


* Any multi-port negotiation and caching (ie, for an
  Alternate-Protocol) may make sense to consider in conjunction with
  "Alt-Server" (see draft-nygren-httpbis-connection-redirect which I need
to post
  an updated version of soon) as they have quite a bit of similarity.
  One consideration in this area is that the Alternate-Protocol hint could
additionally convey the
  urgency of making the switch (e.g., as an option along with the hint
  indicating whether the switch should be synchronous or
  asynchronous).  In many cases it might be reasonable for the client
  to continue using the HTTP/1.1 connection in-parallel with
  establishing and migrating to the HTTP/2.0 connection.


* One reason Alternate-Protocol is potentially attractive as an
  option: when using it to switch to http2-over-tls (with cert
  validation), we could require that it only be used by clients which
  MUST support TLS-SNI.  This addresses at least one issue with TLS.
  (One BIG problem with manditory TLS-with-cert-validation in my view
  is that there isn't enough IPv4 space left to sanely manage the
  limitation of a Host-per-IP-address resulting from the slow rate of
  TLS-SNI adoption.  Providing a way to upgrade to TLS for individual
  connections and only for clients that support TLS-SNI can help
  here.)


* SRV records aren't too bad from a RTT perspective for sites already
  using CNAMEs as part of their setup (such as is common with some
  CDNs).  This is only one use-case as a counter-point to some of the
  other use-cases discussed here.  For example, if lookups for A and
  SRV records are made in parallel for this set of hostnames, the same
  number of round trips is involved:

     www.example.com CNAME www.example.com.example-cdn.net
     www.example.com.example-cdn.net A 10.2.3.4
     www.example.com.example-cdn.net A 10.2.3.5
     www.example.com.example-cdn.net AAAA  2001::abcd

     _http2._tcp.www.example.com SRV 0 10 80 _
http2.www.example.com.example-cdn.net
     _http2.www.example.com.example-cdn.net A 10.2.3.4
     _http2.www.example.com.example-cdn.net A 10.2.3.5
     _http2.www.example.com.example-cdn.net AAAA  2001::abcd

  Note that it would not be surprising if some
  integrations sometimes resulted in names further down the chain like
  _http2.www.example.com.example-cdn.net sometimes returning NXDOMAINs.

  It is annoying that the SRV record ends up needing to be under the
  domain of control of initial authority rather than of the actual
  server operators.  One approach here might be for the domain
  authority to CNAME the SRV record name over to a server operator
  (eg, CDN) which could address this concern (but won't help for names
  that can't be CNAMEs):

     _http2._tcp.www.example.com CNAME _http2._
tcp.www.example.com.example-cdn.net
     _http2._tcp.www.example.com.example-cdn.net SRV 0 10 80 _http2._
tcp.www.example.com.example-cdn.net
     _http2._tcp.www.example.com.example-cdn.net A 10.2.3.4
     _http2._tcp.www.example.com.example-cdn.net A 10.2.3.5
     _http2._tcp.www.example.com.example-cdn.net AAAA  2001::abcd

  As a side-note, having SRV records work sanely for HTTP would
  help in the unfortunate cases of names like "example.com"
  where a CNAME isn't allowed or supported by DNS.


* A downside of using a finer-grained prototocol version in SRV
  records (eg, "_http2_draft1") is that they are hard to get
  third-parties to deploy frequently (eg, for customer sites of a
  CDN).  As such, it may make sense to leave this as just "_http2" and
  make sure that the initial HTTP/2 draft wire versions can signal
  protocol versions and trigger a downgrade if needed.


* One complication for client authors to consider here is the matrix
  of HTTP/2 -> HTTP/1.1 fall-back behavior mixed with IPv6 -> IPv4 fall-back
  behavior.  There are perhaps some lessons to be learned from the
  IPv6 "happy eyeballs" work here as well (although the behaviors
  implemented there tend to involve much earlier fall-back from a failure
  to establish the TCP connection fast enough, while the protocol-level
  fallback is presumably higher in the stack).


* +1 to: Having a new scheme (ie, http2://) as an option seems
  potentially useful, but it shouldn't be manditory, and shouldn't be
  a primary way to operate.


One proposal might be:

1) Use HTTP/2 if the http2 scheme is specified.

2) Perform SRV record lookups in-parallel with A/AAAA lookups.

3) For HTTPS, use TPS+NPN even if the SRV record lookup failed.

4) For non-TLS, accept Alternate-Protocol hint which triggers a new
connection
    establishment  (perhaps asynchronously, as that also helps if an
alternate
    port is unavailable?)

5) An open question is whether we also want a synchronous "Upgrade"
     option as well on the same port.  (The transparent/interception proxy
issue
     seems to be the biggest risk here...)

--20cf307f3bccb0e7cc04cdcc8e2b
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Some thoughts after having read through this thread on the flight over...<b=
r>(Note that some of these are skewed from the perspective of having <br>sp=
ent too much time staring at one particular CDN / Acceleration Gateway <br>

over the years, but I think some are generally applicable.)<br><br><br>* An=
y multi-port negotiation and caching (ie, for an<br>=A0 Alternate-Protocol)=
 may make sense to consider in conjunction with<br>=A0 &quot;Alt-Server&quo=
t; (see draft-nygren-httpbis-connection-redirect which I need to post<br>
<div id=3D":299">
=A0 an updated version of soon) as they have quite a bit of similarity. <br=
>=A0 One consideration in this area is that the Alternate-Protocol hint cou=
ld additionally convey the<br>=A0 urgency of making the switch (e.g., as an=
 option along with the hint<br>

=A0 indicating whether the switch should be synchronous or<br>=A0 asynchron=
ous).=A0 In many cases it might be reasonable for the client<br>=A0 to cont=
inue using the HTTP/1.1 connection in-parallel with<br>=A0 establishing and=
 migrating to the HTTP/2.0 connection.<br>

<br><br>* One reason Alternate-Protocol is potentially attractive as an<br>=
=A0 option: when using it to switch to http2-over-tls (with cert<br>=A0 val=
idation), we could require that it only be used by clients which<br>=A0 MUS=
T support TLS-SNI.=A0 This addresses at least one issue with TLS.<br>

=A0 (One BIG problem with manditory TLS-with-cert-validation in my view<br>=
=A0 is that there isn&#39;t enough IPv4 space left to sanely manage the<br>=
=A0 limitation of a Host-per-IP-address resulting from the slow rate of<br>=
=A0 TLS-SNI adoption.=A0 Providing a way to upgrade to TLS for individual<b=
r>

=A0 connections and only for clients that support TLS-SNI can help<br>=A0 h=
ere.)<br><br><br>* SRV records aren&#39;t too bad from a RTT perspective fo=
r sites already<br>=A0 using CNAMEs as part of their setup (such as is comm=
on with some<br>

=A0 CDNs).=A0 This is only one use-case as a counter-point to some of the<b=
r>=A0 other use-cases discussed here.=A0 For example, if lookups for A and<=
br>=A0 SRV records are made in parallel for this set of hostnames, the same=
<br>=A0 number of round trips is involved:<br>

<br>=A0=A0=A0=A0 <a href=3D"http://www.example.com" target=3D"_blank">www.e=
xample.com</a> CNAME <a href=3D"http://www.example.com.example-cdn.net" tar=
get=3D"_blank">www.example.com.example-cdn.net</a><br>=A0=A0=A0=A0 <a href=
=3D"http://www.example.com.example-cdn.net" target=3D"_blank">www.example.c=
om.example-cdn.net</a> A 10.2.3.4<br>

=A0=A0=A0=A0 <a href=3D"http://www.example.com.example-cdn.net" target=3D"_=
blank">www.example.com.example-cdn.net</a> A 10.2.3.5<br>=A0=A0=A0=A0 <a hr=
ef=3D"http://www.example.com.example-cdn.net" target=3D"_blank">www.example=
.com.example-cdn.net</a> AAAA=A0 2001::abcd<br>
<br>=A0=A0=A0=A0 _http2._<a href=3D"http://tcp.www.example.com" target=3D"_=
blank">tcp.www.example.com</a> SRV 0 10 80 _<a href=3D"http://http2.www.exa=
mple.com.example-cdn.net" target=3D"_blank">http2.www.example.com.example-c=
dn.net</a><br>

=A0=A0=A0=A0 _<a href=3D"http://http2.www.example.com.example-cdn.net" targ=
et=3D"_blank">http2.www.example.com.example-cdn.net</a> A 10.2.3.4<br>=A0=
=A0=A0=A0 _<a href=3D"http://http2.www.example.com.example-cdn.net" target=
=3D"_blank">http2.www.example.com.example-cdn.net</a> A 10.2.3.5<br>

=A0=A0=A0=A0 _<a href=3D"http://http2.www.example.com.example-cdn.net" targ=
et=3D"_blank">http2.www.example.com.example-cdn.net</a> AAAA=A0 2001::abcd<=
br><br>=A0 Note that it would not be surprising if some<br>=A0 integrations=
 sometimes resulted in names further down the chain like<br>

=A0 _<a href=3D"http://http2.www.example.com.example-cdn.net" target=3D"_bl=
ank">http2.www.example.com.example-cdn.net</a> sometimes returning NXDOMAIN=
s.<br><br>=A0 It is annoying that the SRV record ends up needing to be unde=
r the<br>
=A0 domain of control of initial authority rather than of the actual<br>
=A0 server operators.=A0 One approach here might be for the domain<br>=A0 a=
uthority to CNAME the SRV record name over to a server operator<br>=A0 (eg,=
 CDN) which could address this concern (but won&#39;t help for names<br>=A0=
 that can&#39;t be CNAMEs):<br>

<br>=A0=A0=A0=A0 _http2._<a href=3D"http://tcp.www.example.com" target=3D"_=
blank">tcp.www.example.com</a> CNAME _http2._<a href=3D"http://tcp.www.exam=
ple.com.example-cdn.net" target=3D"_blank">tcp.www.example.com.example-cdn.=
net</a><br>
=A0=A0=A0=A0 _http2._<a href=3D"http://tcp.www.example.com.example-cdn.net"=
 target=3D"_blank">tcp.www.example.com.example-cdn.net</a> SRV 0 10 80 _htt=
p2._<a href=3D"http://tcp.www.example.com.example-cdn.net" target=3D"_blank=
">tcp.www.example.com.example-cdn.net</a><br>

=A0=A0=A0=A0 _http2._<a href=3D"http://tcp.www.example.com.example-cdn.net"=
 target=3D"_blank">tcp.www.example.com.example-cdn.net</a> A 10.2.3.4<br>=
=A0=A0=A0=A0 _http2._<a href=3D"http://tcp.www.example.com.example-cdn.net"=
 target=3D"_blank">tcp.www.example.com.example-cdn.net</a> A 10.2.3.5<br>

=A0=A0=A0=A0 _http2._<a href=3D"http://tcp.www.example.com.example-cdn.net"=
 target=3D"_blank">tcp.www.example.com.example-cdn.net</a> AAAA=A0 2001::ab=
cd<br><br>=A0 As a side-note, having SRV records work sanely for HTTP would=
<br>=A0 help in the unfortunate cases of names like &quot;<a href=3D"http:/=
/example.com" target=3D"_blank">example.com</a>&quot;<br>

=A0 where a CNAME isn&#39;t allowed or supported by DNS.<br><br><br>* A dow=
nside of using a finer-grained prototocol version in SRV<br>=A0 records (eg=
, &quot;_http2_draft1&quot;) is that they are hard to get<br>=A0 third-part=
ies to deploy frequently (eg, for customer sites of a<br>

=A0 CDN).=A0 As such, it may make sense to leave this as just &quot;_http2&=
quot; and<br>=A0 make sure that the initial HTTP/2 draft wire versions can =
signal<br>=A0 protocol versions and trigger a downgrade if needed.<br><br><=
br>
* One complication for client authors to consider here is the matrix<br>
=A0 of HTTP/2 -&gt; HTTP/1.1 fall-back behavior mixed with IPv6 -&gt; IPv4 =
fall-back<br>=A0 behavior.=A0 There are perhaps some lessons to be learned =
from the <br>=A0 IPv6 &quot;happy eyeballs&quot; work here as well (althoug=
h the behaviors<br>

=A0 implemented there tend to involve much earlier fall-back from a failure=
<br>=A0 to establish the TCP connection fast enough, while the protocol-lev=
el<br>=A0 fallback is presumably higher in the stack).<br><br><br>* +1 to: =
Having a new scheme (ie, http2://) as an option seems<br>

=A0 potentially useful, but it shouldn&#39;t be manditory, and shouldn&#39;=
t be<br>=A0 a primary way to operate.<br><br><br>One proposal might be:<br>=
<br>1) Use HTTP/2 if the http2 scheme is specified.<br><br>2) Perform SRV r=
ecord lookups in-parallel with A/AAAA lookups.<br>

<br>3) For HTTPS, use TPS+NPN even if the SRV record lookup failed.<br><br>=
4) For non-TLS, accept Alternate-Protocol hint which triggers a new connect=
ion<br>=A0 =A0 establishment=A0 (perhaps asynchronously, as that also helps=
 if an alternate<br>

=A0=A0=A0 port is unavailable?)<br><br>5) An open question is whether we al=
so want a synchronous &quot;Upgrade&quot; <br>=A0=A0=A0=A0 option as well o=
n the same port.=A0 (The transparent/interception proxy issue<br>=A0=A0=A0=
=A0 seems to be the biggest risk here...)</div>
<br><br>

--20cf307f3bccb0e7cc04cdcc8e2b--


From ietf-http-wg-request@listhub.w3.org  Tue Nov  6 04:49:26 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1153521F88E0 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue,  6 Nov 2012 04:49:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hvoDPj1aU7fU for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue,  6 Nov 2012 04:49:25 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 6EE1721F88E3 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue,  6 Nov 2012 04:49:25 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TViYg-0005vG-72 for ietf-http-wg-dist@listhub.w3.org; Tue, 06 Nov 2012 12:47:10 +0000
Resent-Date: Tue, 06 Nov 2012 12:47:10 +0000
Resent-Message-Id: <E1TViYg-0005vG-72@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <julian.reschke@gmx.de>) id 1TViYb-0005uS-6h for ietf-http-wg@listhub.w3.org; Tue, 06 Nov 2012 12:47:05 +0000
Received: from mailout-de.gmx.net ([213.165.64.22]) by maggie.w3.org with smtp (Exim 4.72) (envelope-from <julian.reschke@gmx.de>) id 1TViYZ-00064a-E8 for ietf-http-wg@w3.org; Tue, 06 Nov 2012 12:47:05 +0000
Received: (qmail invoked by alias); 06 Nov 2012 12:46:36 -0000
Received: from mail.greenbytes.de (EHLO [192.168.1.140]) [217.91.35.233] by mail.gmx.net (mp012) with SMTP; 06 Nov 2012 13:46:36 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX18Y7oVjey8YRgYbIDz6/cXI3tQ/YDyOVfBkWANGrK 2v+fAOGOeIrdfs
Message-ID: <509906AC.4090801@gmx.de>
Date: Tue, 06 Nov 2012 13:46:36 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
Received-SPF: pass client-ip=213.165.64.22; envelope-from=julian.reschke@gmx.de; helo=mailout-de.gmx.net
X-W3C-Hub-Spam-Status: No, score=-3.3
X-W3C-Hub-Spam-Report: AWL=-3.335, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TViYZ-00064a-E8 7fb509a9a87e01589a97e44096d29fe4
X-Original-To: ietf-http-wg@w3.org
Subject: Second HTTPbis Working Group Session in Atlanta today, 9am eastern  time
Archived-At: <http://www.w3.org/mid/509906AC.4090801@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15568
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Reminder:

the HTTPbis Working Group meets today, see 
<http://tools.ietf.org/agenda/85/#2012-11-08_0900>.

Audio Stream: <http://ietf85streaming.dnsalias.net/ietf/ietf858.m3u>
Text Chat: <xmpp:httpbis@jabber.ietf.org?join>

Best regards, Julian



From ietf-http-wg-request@listhub.w3.org  Wed Nov  7 10:07:32 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EB2D821F8C39 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed,  7 Nov 2012 10:07:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.729
X-Spam-Level: 
X-Spam-Status: No, score=-9.729 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, SARE_MLH_Stock1=0.87]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F6gPlOHR92rc for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed,  7 Nov 2012 10:07:32 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 4DAF321F8B54 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed,  7 Nov 2012 10:07:32 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TW9zu-0008AZ-EP for ietf-http-wg-dist@listhub.w3.org; Wed, 07 Nov 2012 18:05:06 +0000
Resent-Date: Wed, 07 Nov 2012 18:05:06 +0000
Resent-Message-Id: <E1TW9zu-0008AZ-EP@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <tiffanyb@opera.com>) id 1TW9zo-0006s3-F2 for ietf-http-wg@listhub.w3.org; Wed, 07 Nov 2012 18:05:00 +0000
Received: from smtp.opera.com ([213.236.208.81]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <tiffanyb@opera.com>) id 1TW9zm-00088Q-9v for ietf-http-wg@w3.org; Wed, 07 Nov 2012 18:05:00 +0000
Received: from tiffanyopera.local (cpe-76-93-94-77.socal.res.rr.com [76.93.94.77]) (authenticated bits=0) by smtp.opera.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id qA7I4Smd023179 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for <ietf-http-wg@w3.org>; Wed, 7 Nov 2012 18:04:30 GMT
Message-ID: <509AA2AB.9050509@opera.com>
Date: Wed, 07 Nov 2012 10:04:27 -0800
From: "Tiffany B. Brown" <tiffanyb@opera.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: ietf-http-wg@w3.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=213.236.208.81; envelope-from=tiffanyb@opera.com; helo=smtp.opera.com
X-W3C-Hub-Spam-Status: No, score=-2.7
X-W3C-Hub-Spam-Report: RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.37, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TW9zm-00088Q-9v f2886db9c69976e13f6bc2cd3054d71d
X-Original-To: ietf-http-wg@w3.org
Subject: RFC: draft-brown-device-stock-ua-00.txt
Archived-At: <http://www.w3.org/mid/509AA2AB.9050509@opera.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15569
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Hello all,

I've recently submitted an RFC for a new HTTP header: Device-Stock-UA. 
Feedback is welcome.

http://www.ietf.org/staging/draft-brown-device-stock-ua-00.txt

Abstract

    This document standardizes an HTTP extension header field that allows
    third-party HTTP clients and embeddable HTTP client components to
    include the user agent string of the HTTP-client that is bundled with
    the device operating system.

Thanks so much,

- Tiffany

-- 
Tiffany Brown, Developer Relations & Tools
Opera Software ASA (www.opera.com)
Twitter / AIM: webinista * Skype: tiffanybbrown


From ietf-http-wg-request@listhub.w3.org  Wed Nov  7 10:19:48 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DACBF21F8BBF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed,  7 Nov 2012 10:19:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.107
X-Spam-Level: 
X-Spam-Status: No, score=-9.107 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_HI=-8, SARE_MLH_Stock1=0.87]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RJ1Fgh1a1m01 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed,  7 Nov 2012 10:19:48 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 1806D21F8BA0 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed,  7 Nov 2012 10:19:48 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TWACv-0007E5-Dz for ietf-http-wg-dist@listhub.w3.org; Wed, 07 Nov 2012 18:18:33 +0000
Resent-Date: Wed, 07 Nov 2012 18:18:33 +0000
Resent-Message-Id: <E1TWACv-0007E5-Dz@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <lists@eitanadler.com>) id 1TWACq-0007DQ-O8 for ietf-http-wg@listhub.w3.org; Wed, 07 Nov 2012 18:18:28 +0000
Received: from mail-lb0-f171.google.com ([209.85.217.171]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <lists@eitanadler.com>) id 1TWACp-0000VB-8d for ietf-http-wg@w3.org; Wed, 07 Nov 2012 18:18:28 +0000
Received: by mail-lb0-f171.google.com with SMTP id m4so1583672lbo.2 for <ietf-http-wg@w3.org>; Wed, 07 Nov 2012 10:18:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=hcUeNdPFm32BIjsIumHK5rQmI6uU7e3QxICQkJQj41c=; b=l1Bb8dT9327apHpH/cdEi0xtbpW1g5zymO2F2/1BY2HDKcsebEKBwkjYr+fYoXQxtO kq/oZA2IZAHo/Gc+h0NCurOg+SCdGTjZlQKCWgAKpf8/38a9gNti48M3HbVvxe/RLRfg y/cV1U+7OuafydWPJrFWaCBwWYi9sxbrhcwxA=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=hcUeNdPFm32BIjsIumHK5rQmI6uU7e3QxICQkJQj41c=; b=g215FOEDM3N5NI7GkyxRHj+EvvhD9jHxaX+WVaqluXQL0yxbs/TLh4qiORrZPIJmuB tC/f750DrHMZ+9DyeJrJnkOzDCqAu5z8UmyW+lJLFSzAgdvaqsY8iuxYZW/Ky35e3VIE kaTi8YW0n+677u9UcfyLr6HCrCFIZfxsyT4yJh15B8Hn7Dr8sHFP0tj6q6yRAcbciAHb yLXpet675kaW1fl3p4/hTFfp8qfodBq4mL2ptyrCYfl3Rg3vKShmFjcgoyjQp4zQ2QIa xingMUi3N9PxrnRTGKSIP9hT6bc098pTszfPh+zSQE5k8ni+s4J5RHYKqSf7dD44lPAp Idbg==
Received: by 10.152.131.200 with SMTP id oo8mr5024142lab.34.1352312280297; Wed, 07 Nov 2012 10:18:00 -0800 (PST)
MIME-Version: 1.0
Received: by 10.112.25.166 with HTTP; Wed, 7 Nov 2012 10:17:30 -0800 (PST)
In-Reply-To: <509AA2AB.9050509@opera.com>
References: <509AA2AB.9050509@opera.com>
From: Eitan Adler <lists@eitanadler.com>
Date: Wed, 7 Nov 2012 13:17:30 -0500
Message-ID: <CAF6rxgmq2CyMdTuqvUU0T7QhLScpDsYafG=WriHskG=ZybvCBQ@mail.gmail.com>
To: "Tiffany B. Brown" <tiffanyb@opera.com>
Cc: ietf-http-wg@w3.org
Content-Type: text/plain; charset=UTF-8
X-Gm-Message-State: ALoCoQnFS05683WI9i6gPpR/cGgYwLoqXgDj/5LPQKG1ccODMPTRxr+mKiqNiZNHIoOlVh8m38/1
Received-SPF: pass client-ip=209.85.217.171; envelope-from=lists@eitanadler.com; helo=mail-lb0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-0.8
X-W3C-Hub-Spam-Report: DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TWACp-0000VB-8d 9fe4e7583bc0a5aa89542c79af7154ab
X-Original-To: ietf-http-wg@w3.org
Subject: Re: RFC: draft-brown-device-stock-ua-00.txt
Archived-At: <http://www.w3.org/mid/CAF6rxgmq2CyMdTuqvUU0T7QhLScpDsYafG=WriHskG=ZybvCBQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15570
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 7 November 2012 13:04, Tiffany B. Brown <tiffanyb@opera.com> wrote:
> Hello all,
>
> I've recently submitted an RFC for a new HTTP header: Device-Stock-UA.
> Feedback is welcome.
>
> http://www.ietf.org/staging/draft-brown-device-stock-ua-00.txt

It isn't at all clear to me that this solves the problem:

- the stock services may have been changed. just because a browser
comes with a device by default doesn't mean it wasn't removed.
- the capabilities of the third party browser may differ from the
capabilities of the stock browser
- user agent shouldn't be use for capability detection in the first place
- what does the (stock) user agent string have to do with "other
software that may be running in addition to the user agent"?


-- 
Eitan Adler


From ietf-http-wg-request@listhub.w3.org  Wed Nov  7 11:28:50 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2FFBE21F880C for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed,  7 Nov 2012 11:28:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.729
X-Spam-Level: 
X-Spam-Status: No, score=-9.729 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, SARE_MLH_Stock1=0.87]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XEAg0oZ9P0Y5 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed,  7 Nov 2012 11:28:49 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 72C6821F8620 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed,  7 Nov 2012 11:28:49 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TWBH9-0006p1-GG for ietf-http-wg-dist@listhub.w3.org; Wed, 07 Nov 2012 19:26:59 +0000
Resent-Date: Wed, 07 Nov 2012 19:26:59 +0000
Resent-Message-Id: <E1TWBH9-0006p1-GG@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <tiffanyb@opera.com>) id 1TWBH4-0006oI-TG for ietf-http-wg@listhub.w3.org; Wed, 07 Nov 2012 19:26:54 +0000
Received: from smtp.opera.com ([213.236.208.81]) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <tiffanyb@opera.com>) id 1TWBH3-0007D4-Ga for ietf-http-wg@w3.org; Wed, 07 Nov 2012 19:26:54 +0000
Received: from tiffanyopera.local (cpe-76-93-94-77.socal.res.rr.com [76.93.94.77]) (authenticated bits=0) by smtp.opera.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id qA7JQNB0001183 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for <ietf-http-wg@w3.org>; Wed, 7 Nov 2012 19:26:25 GMT
Message-ID: <509AB5DE.4070401@opera.com>
Date: Wed, 07 Nov 2012 11:26:22 -0800
From: "Tiffany B. Brown" <tiffanyb@opera.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
CC: ietf-http-wg@w3.org
References: <509AA2AB.9050509@opera.com> <CAF6rxgmq2CyMdTuqvUU0T7QhLScpDsYafG=WriHskG=ZybvCBQ@mail.gmail.com>
In-Reply-To: <CAF6rxgmq2CyMdTuqvUU0T7QhLScpDsYafG=WriHskG=ZybvCBQ@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=213.236.208.81; envelope-from=tiffanyb@opera.com; helo=smtp.opera.com
X-W3C-Hub-Spam-Status: No, score=-2.1
X-W3C-Hub-Spam-Report: AWL=-0.604, MISSING_HEADERS=1.207, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.37, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TWBH3-0007D4-Ga 0bff92335b0c897280e46668dfd22df1
X-Original-To: ietf-http-wg@w3.org
Subject: Re: RFC: draft-brown-device-stock-ua-00.txt
Archived-At: <http://www.w3.org/mid/509AB5DE.4070401@opera.com>
To: ietf-http-wg@w3.org
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15571
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 11/7/12 10:17 AM, Eitan Adler wrote:
> On 7 November 2012 13:04, Tiffany B. Brown <tiffanyb@opera.com> wrote:
>> Hello all,
>>
>> I've recently submitted an RFC for a new HTTP header: Device-Stock-UA.
>> Feedback is welcome.
>>
>> http://www.ietf.org/staging/draft-brown-device-stock-ua-00.txt

Brief aside: I've been informed that I should have called this an 
Internet Draft (because it is). For the sake of following the 
discussion, I am keeping the original subject line.


> It isn't at all clear to me that this solves the problem:
>
> - the stock services may have been changed. just because a browser
> comes with a device by default doesn't mean it wasn't removed.
> - the capabilities of the third party browser may differ from the
> capabilities of the stock browser

This header should be used in conjunction with feature detection if used 
at all. Perhaps that's worth mentioning in an implementation notes or 
similar?

> - user agent shouldn't be use for capability detection in the first place

Agreed. However, this is precisely how the user agent string is being 
used. This is particularly true for sites and applications that support 
hand-held devices (mobile phones, tablets, etc). Developers are relying 
on the user agent string to determine which image and CSS files to serve.

> - what does the (stock) user agent string have to do with "other
> software that may be running in addition to the user agent"?
>

Developers are also using the user agent string to infer things such as 
the presence of audio and video codecs, plugin availability, and whether 
the OS permits file system access.

- Tiffany

-- 
Tiffany Brown, Developer Relations & Tools
Opera Software ASA (www.opera.com)
Twitter / AIM: webinista * Skype: tiffanybbrown


From ietf-http-wg-request@listhub.w3.org  Wed Nov  7 14:52:54 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 49D6D21F8737 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed,  7 Nov 2012 14:52:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.164
X-Spam-Level: 
X-Spam-Status: No, score=-10.164 tagged_above=-999 required=5 tests=[AWL=-0.435, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, SARE_MLH_Stock1=0.87]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AhlaFJWHjrZi for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed,  7 Nov 2012 14:52:52 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 1C82021F873F for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed,  7 Nov 2012 14:52:51 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TWESU-0000AH-6w for ietf-http-wg-dist@listhub.w3.org; Wed, 07 Nov 2012 22:50:54 +0000
Resent-Date: Wed, 07 Nov 2012 22:50:54 +0000
Resent-Message-Id: <E1TWESU-0000AH-6w@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1TWESL-000087-Ht for ietf-http-wg@listhub.w3.org; Wed, 07 Nov 2012 22:50:45 +0000
Received: from ip-58-28-153-233.static-xdsl.xnet.co.nz ([58.28.153.233] helo=treenet.co.nz) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1TWESH-0005nM-DA for ietf-http-wg@w3.org; Wed, 07 Nov 2012 22:50:45 +0000
Received: by treenet.co.nz (Postfix, from userid 33) id F2359E72DC; Thu,  8 Nov 2012 11:50:14 +1300 (NZDT)
To: <ietf-http-wg@w3.org>
X-PHP-Originating-Script: 0:main.inc
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Date: Thu, 08 Nov 2012 11:50:14 +1300
From: Amos Jeffries <squid3@treenet.co.nz>
In-Reply-To: <CAF6rxgmq2CyMdTuqvUU0T7QhLScpDsYafG=WriHskG=ZybvCBQ@mail.gmail.com>
References: <509AA2AB.9050509@opera.com> <CAF6rxgmq2CyMdTuqvUU0T7QhLScpDsYafG=WriHskG=ZybvCBQ@mail.gmail.com>
Message-ID: <84639e8ccf4c673957e6e11043dfda3d@treenet.co.nz>
X-Sender: squid3@treenet.co.nz
User-Agent: Roundcube Webmail/0.7.2
Received-SPF: pass client-ip=58.28.153.233; envelope-from=squid3@treenet.co.nz; helo=treenet.co.nz
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-3.449, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TWESH-0005nM-DA 78b39484838aef6bf7e1b4971cfe650f
X-Original-To: ietf-http-wg@w3.org
Subject: Re: RFC: draft-brown-device-stock-ua-00.txt
Archived-At: <http://www.w3.org/mid/84639e8ccf4c673957e6e11043dfda3d@treenet.co.nz>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15572
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 08.11.2012 07:17, Eitan Adler wrote:
> On 7 November 2012 13:04, Tiffany B. Brown wrote:
>> Hello all,
>>
>> I've recently submitted an RFC for a new HTTP header: 
>> Device-Stock-UA.
>> Feedback is welcome.
>>
>> http://www.ietf.org/staging/draft-brown-device-stock-ua-00.txt
>
> It isn't at all clear to me that this solves the problem:
>
> - the stock services may have been changed. just because a browser
> comes with a device by default doesn't mean it wasn't removed.
> - the capabilities of the third party browser may differ from the
> capabilities of the stock browser
> - user agent shouldn't be use for capability detection in the first 
> place
> - what does the (stock) user agent string have to do with "other
> software that may be running in addition to the user agent"?

... and why must a new header be added with identical usage, syntax and 
handling as User-Agent be created to perform User-Agent operations?

In section 4 the example does not match the BNF.

Following the format:
    Device-Stock-UA = "Device-Stock-UA" ":" (User-Agent)
    User-Agent = <Defined in RFC2616 Section 14.43>

We get:
        Device-Stock-UA: User-Agent: CERN-LineMode/2.15 libwww/2.17b3


Correcting that mistake the uselessness of creating this header becomes 
completely obvious:

{{
   Device-Stock-UA = "Device-Stock-UA" ":" 1*( product | comment )
   User-Agent      = "User-Agent"      ":" 1*( product | comment )
}}


You might as well define this as a listing of ALL software, Java class, 
active component, and hardware chip serial number installed on the 
device. Just in case some marketer or website wigit *might* want to 
know. Do you see the problem? If not have a look at IE6 UA string after 
a few hundred KB patches have been applied - utter mess useful only to 
help malicious attackers target specific missing patches.


The operating UA is already free to embed the device stock UA into its 
own UA string using the same format. If it is making use of that UA 
capabilities to generate the request that is reasonable.

I for one see zero benefit from creating this header.

Amos



From ietf-http-wg-request@listhub.w3.org  Wed Nov  7 15:08:43 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9DA5B21F84BF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed,  7 Nov 2012 15:08:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.055
X-Spam-Level: 
X-Spam-Status: No, score=-10.055 tagged_above=-999 required=5 tests=[AWL=-0.326, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, SARE_MLH_Stock1=0.87]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xdQOjOvUSdjt for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed,  7 Nov 2012 15:08:39 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id B1C7021F847B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed,  7 Nov 2012 15:08:39 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TWEiT-00086C-10 for ietf-http-wg-dist@listhub.w3.org; Wed, 07 Nov 2012 23:07:25 +0000
Resent-Date: Wed, 07 Nov 2012 23:07:25 +0000
Resent-Message-Id: <E1TWEiT-00086C-10@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1TWEiL-00083d-T1 for ietf-http-wg@listhub.w3.org; Wed, 07 Nov 2012 23:07:17 +0000
Received: from ip-58-28-153-233.static-xdsl.xnet.co.nz ([58.28.153.233] helo=treenet.co.nz) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1TWEgh-0006UO-AS for ietf-http-wg@w3.org; Wed, 07 Nov 2012 23:06:20 +0000
Received: by treenet.co.nz (Postfix, from userid 33) id B63EEE72DC; Thu,  8 Nov 2012 12:05:12 +1300 (NZDT)
To: <ietf-http-wg@w3.org>
X-PHP-Originating-Script: 0:main.inc
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Date: Thu, 08 Nov 2012 12:05:12 +1300
From: Amos Jeffries <squid3@treenet.co.nz>
In-Reply-To: <509AB5DE.4070401@opera.com>
References: <509AA2AB.9050509@opera.com> <CAF6rxgmq2CyMdTuqvUU0T7QhLScpDsYafG=WriHskG=ZybvCBQ@mail.gmail.com> <509AB5DE.4070401@opera.com>
Message-ID: <8e43690245c081f0cb28f564eaef7fd9@treenet.co.nz>
X-Sender: squid3@treenet.co.nz
User-Agent: Roundcube Webmail/0.7.2
Received-SPF: pass client-ip=58.28.153.233; envelope-from=squid3@treenet.co.nz; helo=treenet.co.nz
X-W3C-Hub-Spam-Status: No, score=-3.1
X-W3C-Hub-Spam-Report: AWL=-3.135, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TWEgh-0006UO-AS f7b66e7c53ab4fafb9eb3d72175ba45a
X-Original-To: ietf-http-wg@w3.org
Subject: Re: RFC: draft-brown-device-stock-ua-00.txt
Archived-At: <http://www.w3.org/mid/8e43690245c081f0cb28f564eaef7fd9@treenet.co.nz>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15573
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 08.11.2012 08:26, Tiffany B. Brown wrote:
> On 11/7/12 10:17 AM, Eitan Adler wrote:
>> On 7 November 2012 13:04, Tiffany B. Brown <tiffanyb@opera.com> 
>> wrote:
>>> Hello all,
>>>
>>> I've recently submitted an RFC for a new HTTP header: 
>>> Device-Stock-UA.
>>> Feedback is welcome.
>>>
>>> http://www.ietf.org/staging/draft-brown-device-stock-ua-00.txt
>
> Brief aside: I've been informed that I should have called this an
> Internet Draft (because it is). For the sake of following the
> discussion, I am keeping the original subject line.
>
>
>> It isn't at all clear to me that this solves the problem:
>>
>> - the stock services may have been changed. just because a browser
>> comes with a device by default doesn't mean it wasn't removed.
>> - the capabilities of the third party browser may differ from the
>> capabilities of the stock browser
>
> This header should be used in conjunction with feature detection if
> used at all. Perhaps that's worth mentioning in an implementation
> notes or similar?

Feature detection of *what* exactly? that is important. critical even. 
Being informed about a piece of software which is not related to the 
transaction underway is useless. And I say this with my experienced web 
developer hat on.

For example;
   when opening a Z format object in Browser 'X' do I need to know the 
image processing capabilities of browser 'Y', or the fact that Picassa 
versus Photoshop are installed?

  No. I need to know that the browser X has a Z interpreter and is using 
it to handle the processing of the response I about to send back.

If browser X requests an image object, I still don't need to know that 
browser Y was installed, or even that the imaging software is installed. 
Just that the browser has *an* image processing component *it is making 
use of*.

There is nothing more annoying to both developer and user than to have 
a browser send explicit mention of capability Z, only to display that Z 
format response using a text processor and dump raw binary out at the 
viewing user.


>
>> - user agent shouldn't be use for capability detection in the first 
>> place
>
> Agreed. However, this is precisely how the user agent string is being
> used. This is particularly true for sites and applications that
> support hand-held devices (mobile phones, tablets, etc). Developers
> are relying on the user agent string to determine which image and CSS
> files to serve.
>
>> - what does the (stock) user agent string have to do with "other
>> software that may be running in addition to the user agent"?
>>
>
> Developers are also using the user agent string to infer things such
> as the presence of audio and video codecs, plugin availability, and
> whether the OS permits file system access.

*This* is the problem. Your header is making zero progress on fixing 
it.

Those websites are ignoring the Accept* headers content where such 
codec and media type support is listed in annoyingly great detail. And 
instead depending on the browser agent name string.

Amos


From ietf-http-wg-request@listhub.w3.org  Thu Nov  8 10:38:59 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2E42B21F8825 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu,  8 Nov 2012 10:38:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.729
X-Spam-Level: 
X-Spam-Status: No, score=-9.729 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, SARE_MLH_Stock1=0.87]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ngycN1+lHE32 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu,  8 Nov 2012 10:38:58 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 5F72721F880F for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu,  8 Nov 2012 10:38:57 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TWWxy-0004GL-To for ietf-http-wg-dist@listhub.w3.org; Thu, 08 Nov 2012 18:36:38 +0000
Resent-Date: Thu, 08 Nov 2012 18:36:38 +0000
Resent-Message-Id: <E1TWWxy-0004GL-To@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TWWxs-0004FX-1W for ietf-http-wg@listhub.w3.org; Thu, 08 Nov 2012 18:36:32 +0000
Received: from mxout-07.mxes.net ([216.86.168.182]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TWWxq-0007TU-Ux for ietf-http-wg@w3.org; Thu, 08 Nov 2012 18:36:31 +0000
Received: from [192.168.111.233] (unknown [162.112.38.5]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id A6FC722E278; Thu,  8 Nov 2012 13:36:07 -0500 (EST)
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <509AA2AB.9050509@opera.com>
Date: Fri, 9 Nov 2012 05:36:04 +1100
Cc: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>, Ilya Grigorik <ilya@igvita.com>
Content-Transfer-Encoding: quoted-printable
Message-Id: <BF20D334-A8DE-4A74-B318-572D684E8E6F@mnot.net>
References: <509AA2AB.9050509@opera.com>
To: "Tiffany B. Brown" <tiffanyb@opera.com>
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.182; envelope-from=mnot@mnot.net; helo=mxout-07.mxes.net
X-W3C-Hub-Spam-Status: No, score=-3.1
X-W3C-Hub-Spam-Report: AWL=-3.117, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TWWxq-0007TU-Ux ca5a454e8c04e46248a065355e42b4ea
X-Original-To: ietf-http-wg@w3.org
Subject: Re: RFC: draft-brown-device-stock-ua-00.txt
Archived-At: <http://www.w3.org/mid/BF20D334-A8DE-4A74-B318-572D684E8E6F@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15574
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

For those who haven't seen it, Ilya (cc:ed) is working on something =
related that he's calling "client hints".

http://lists.w3.org/Archives/Public/public-web-perf/2012Oct/0053.html

Cheers,


On 08/11/2012, at 5:04 AM, Tiffany B. Brown <tiffanyb@opera.com> wrote:

> Hello all,
>=20
> I've recently submitted an RFC for a new HTTP header: Device-Stock-UA. =
Feedback is welcome.
>=20
> http://www.ietf.org/staging/draft-brown-device-stock-ua-00.txt
>=20
> Abstract
>=20
>   This document standardizes an HTTP extension header field that =
allows
>   third-party HTTP clients and embeddable HTTP client components to
>   include the user agent string of the HTTP-client that is bundled =
with
>   the device operating system.
>=20
> Thanks so much,
>=20
> - Tiffany
>=20
> --=20
> Tiffany Brown, Developer Relations & Tools
> Opera Software ASA (www.opera.com)
> Twitter / AIM: webinista * Skype: tiffanybbrown
>=20

--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Thu Nov  8 23:09:05 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3504E21F8A2F for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu,  8 Nov 2012 23:09:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.106
X-Spam-Level: 
X-Spam-Status: No, score=-9.106 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8, SARE_MLH_Stock1=0.87]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x-vzS00jnbtF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu,  8 Nov 2012 23:09:04 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 1C5BE21F89EE for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu,  8 Nov 2012 23:09:03 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TWifE-00073H-OV for ietf-http-wg-dist@listhub.w3.org; Fri, 09 Nov 2012 07:06:04 +0000
Resent-Date: Fri, 09 Nov 2012 07:06:04 +0000
Resent-Message-Id: <E1TWifE-00073H-OV@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <ilya@igvita.com>) id 1TWif8-000721-Tb for ietf-http-wg@listhub.w3.org; Fri, 09 Nov 2012 07:05:58 +0000
Received: from mail-ia0-f171.google.com ([209.85.210.171]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <ilya@igvita.com>) id 1TWif8-00039p-2S for ietf-http-wg@w3.org; Fri, 09 Nov 2012 07:05:58 +0000
Received: by mail-ia0-f171.google.com with SMTP id z13so253779iaz.2 for <ietf-http-wg@w3.org>; Thu, 08 Nov 2012 23:05:32 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=MrxluId4Bdz3DCIfchd+Z3hqi5XQscSlzyUiD8rnuWQ=; b=mQlFR5WCMDnZe/xEC4eAQuM5bnqY4fjm6uQCTVXjuc+9vTYNDpsOa7guXZrKEkOX+S ckyE+dXArWx6AhMuu2cvZifrc6QHU51uaGLQlbVeY/8AJ86Y+NxyNomBIv2GID1VRTv7 4SlrS8u03kzSaOmW7HyJqpsFodG3O2ukrKlFfR9Obb0n6geUA+yDxpZlbf7yFJLOZKU/ mSDRgeb6Am69ShS3PPt6GOUqNsv2mMMdUfPriWEQ3NEAIC7WprQxGhHeZGVaKVpcKwY7 484Xbjbjrnw1tCudQVHZSba33lhRdUprAJ7oqxoOCBOT8lqeVfk11/iAEAgMjA38K8K3 SdOg==
Received: by 10.50.213.73 with SMTP id nq9mr596308igc.27.1352444732056; Thu, 08 Nov 2012 23:05:32 -0800 (PST)
Received: from mail-ia0-f171.google.com (mail-ia0-f171.google.com [209.85.210.171]) by mx.google.com with ESMTPS id kp4sm813664igc.1.2012.11.08.23.05.31 (version=SSLv3 cipher=OTHER); Thu, 08 Nov 2012 23:05:31 -0800 (PST)
Received: by mail-ia0-f171.google.com with SMTP id z13so253769iaz.2 for <ietf-http-wg@w3.org>; Thu, 08 Nov 2012 23:05:31 -0800 (PST)
Received: by 10.50.184.229 with SMTP id ex5mr549475igc.72.1352444731248; Thu, 08 Nov 2012 23:05:31 -0800 (PST)
MIME-Version: 1.0
Received: by 10.64.8.196 with HTTP; Thu, 8 Nov 2012 23:04:50 -0800 (PST)
In-Reply-To: <BF20D334-A8DE-4A74-B318-572D684E8E6F@mnot.net>
References: <509AA2AB.9050509@opera.com> <BF20D334-A8DE-4A74-B318-572D684E8E6F@mnot.net>
From: Ilya Grigorik <ilya@igvita.com>
Date: Thu, 8 Nov 2012 23:04:50 -0800
Message-ID: <CAKRe7JFi4bDAEQ0jEaye=Uc6kpVrDjZmWAJgdeD8Mpi8ytV2kw@mail.gmail.com>
To: Mark Nottingham <mnot@mnot.net>
Cc: "Tiffany B. Brown" <tiffanyb@opera.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=14dae9340ddfc8cf8d04ce0a9389
X-Gm-Message-State: ALoCoQkNIzUeJ0MXs4H1Fjotf3Vg5LINi1nBtrmWSrskgJokm8CWSyCjXn1ZAByDT3vZdlFYFhTU
Received-SPF: pass client-ip=209.85.210.171; envelope-from=ilya@igvita.com; helo=mail-ia0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-2.6
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TWif8-00039p-2S 9031548acc1fb34898b6b4c9da2bfc02
X-Original-To: ietf-http-wg@w3.org
Subject: Re: RFC: draft-brown-device-stock-ua-00.txt
Archived-At: <http://www.w3.org/mid/CAKRe7JFi4bDAEQ0jEaye=Uc6kpVrDjZmWAJgdeD8Mpi8ytV2kw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15575
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--14dae9340ddfc8cf8d04ce0a9389
Content-Type: text/plain; charset=ISO-8859-1

On Thu, Nov 8, 2012 at 10:36 AM, Mark Nottingham <mnot@mnot.net> wrote:

> For those who haven't seen it, Ilya (cc:ed) is working on something
> related that he's calling "client hints".
>
> http://lists.w3.org/Archives/Public/public-web-perf/2012Oct/0053.html


Thanks Mark. We had a good discussion on the Clients Hints proposal earlier
today at the W3C perf workshop.. Will be updating the document with all the
feedback and suggestions shortly. If anyone has feedback on what's there
already, please let me know!

This might lack context without the audio, but a quick presentation on the
proposal for today's discussion:
https://docs.google.com/presentation/d/1y_A6VOZy9bD2i0VLHv9ZWr0W3hZJvlTNCDA0itjI0yM/present

Ilya


On 08/11/2012, at 5:04 AM, Tiffany B. Brown <tiffanyb@opera.com> wrote:
>
> > Hello all,
> >
> > I've recently submitted an RFC for a new HTTP header: Device-Stock-UA.
> Feedback is welcome.
> >
> > http://www.ietf.org/staging/draft-brown-device-stock-ua-00.txt
> >
> > Abstract
> >
> >   This document standardizes an HTTP extension header field that allows
> >   third-party HTTP clients and embeddable HTTP client components to
> >   include the user agent string of the HTTP-client that is bundled with
> >   the device operating system.
> >
> > Thanks so much,
> >
> > - Tiffany
> >
> > --
> > Tiffany Brown, Developer Relations & Tools
> > Opera Software ASA (www.opera.com)
> > Twitter / AIM: webinista * Skype: tiffanybbrown
> >
>
> --
> Mark Nottingham   http://www.mnot.net/
>
>
>
>

--14dae9340ddfc8cf8d04ce0a9389
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On Thu, Nov 8, 2012 at 10:36 AM, Mark Nottingham <span dir=3D"ltr">&lt;<a h=
ref=3D"mailto:mnot@mnot.net" target=3D"_blank">mnot@mnot.net</a>&gt;</span>=
 wrote:<br><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" sty=
le=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

For those who haven&#39;t seen it, Ilya (cc:ed) is working on something rel=
ated that he&#39;s calling &quot;client hints&quot;.<br>
<br>
<a href=3D"http://lists.w3.org/Archives/Public/public-web-perf/2012Oct/0053=
.html" target=3D"_blank">http://lists.w3.org/Archives/Public/public-web-per=
f/2012Oct/0053.html</a></blockquote><div><br></div><div>Thanks Mark. We had=
 a good discussion on the Clients Hints proposal earlier today at the W3C p=
erf workshop.. Will be updating the document with all the feedback and sugg=
estions shortly. If anyone has feedback on what&#39;s there already, please=
 let me know!</div>

<div><br></div><div>This might lack context without the audio, but a quick =
presentation on the proposal for today&#39;s discussion:=A0<a href=3D"https=
://docs.google.com/presentation/d/1y_A6VOZy9bD2i0VLHv9ZWr0W3hZJvlTNCDA0itjI=
0yM/present">https://docs.google.com/presentation/d/1y_A6VOZy9bD2i0VLHv9ZWr=
0W3hZJvlTNCDA0itjI0yM/present</a></div>

<div><br></div><div>Ilya</div><div>=A0</div><div><br></div><blockquote clas=
s=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pad=
ding-left:1ex"><div><div class=3D"h5">
On 08/11/2012, at 5:04 AM, Tiffany B. Brown &lt;<a href=3D"mailto:tiffanyb@=
opera.com">tiffanyb@opera.com</a>&gt; wrote:<br>
<br>
&gt; Hello all,<br>
&gt;<br>
&gt; I&#39;ve recently submitted an RFC for a new HTTP header: Device-Stock=
-UA. Feedback is welcome.<br>
&gt;<br>
&gt; <a href=3D"http://www.ietf.org/staging/draft-brown-device-stock-ua-00.=
txt" target=3D"_blank">http://www.ietf.org/staging/draft-brown-device-stock=
-ua-00.txt</a><br>
&gt;<br>
&gt; Abstract<br>
&gt;<br>
&gt; =A0 This document standardizes an HTTP extension header field that all=
ows<br>
&gt; =A0 third-party HTTP clients and embeddable HTTP client components to<=
br>
&gt; =A0 include the user agent string of the HTTP-client that is bundled w=
ith<br>
&gt; =A0 the device operating system.<br>
&gt;<br>
&gt; Thanks so much,<br>
&gt;<br>
&gt; - Tiffany<br>
&gt;<br>
&gt; --<br>
&gt; Tiffany Brown, Developer Relations &amp; Tools<br>
&gt; Opera Software ASA (<a href=3D"http://www.opera.com" target=3D"_blank"=
>www.opera.com</a>)<br>
&gt; Twitter / AIM: webinista * Skype: tiffanybbrown<br>
&gt;<br>
<br>
</div></div>--<br>
Mark Nottingham =A0 <a href=3D"http://www.mnot.net/" target=3D"_blank">http=
://www.mnot.net/</a><br>
<br>
<br>
<br>
</blockquote></div><br>

--14dae9340ddfc8cf8d04ce0a9389--


From ietf-http-wg-request@listhub.w3.org  Fri Nov  9 06:07:25 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8281621F86AB for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri,  9 Nov 2012 06:07:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.164
X-Spam-Level: 
X-Spam-Status: No, score=-10.164 tagged_above=-999 required=5 tests=[AWL=-0.435, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, SARE_MLH_Stock1=0.87]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LkoOMvaIWer5 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri,  9 Nov 2012 06:07:24 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 8404621F86AA for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri,  9 Nov 2012 06:07:24 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TWpCo-0004FW-Lu for ietf-http-wg-dist@listhub.w3.org; Fri, 09 Nov 2012 14:05:10 +0000
Resent-Date: Fri, 09 Nov 2012 14:05:10 +0000
Resent-Message-Id: <E1TWpCo-0004FW-Lu@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <nilsson@opera.com>) id 1TWpCX-0002xw-SN for ietf-http-wg@listhub.w3.org; Fri, 09 Nov 2012 14:04:53 +0000
Received: from smtp.opera.com ([213.236.208.81]) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <nilsson@opera.com>) id 1TWpCV-0004fp-Vc for ietf-http-wg@w3.org; Fri, 09 Nov 2012 14:04:53 +0000
Received: from riaa (oslo.jvpn.opera.com [213.236.208.46]) (authenticated bits=0) by smtp.opera.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id qA9E4NOP022883 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for <ietf-http-wg@w3.org>; Fri, 9 Nov 2012 14:04:24 GMT
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
To: ietf-http-wg@w3.org
References: <509AA2AB.9050509@opera.com> <BF20D334-A8DE-4A74-B318-572D684E8E6F@mnot.net>
Date: Fri, 09 Nov 2012 15:04:23 +0100
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: "Martin Nilsson" <nilsson@opera.com>
Organization: Opera Software ASA
Message-ID: <op.wnieplr8iw9drz@riaa>
In-Reply-To: <BF20D334-A8DE-4A74-B318-572D684E8E6F@mnot.net>
User-Agent: Opera Mail/12.10 (Linux)
Received-SPF: pass client-ip=213.236.208.81; envelope-from=nilsson@opera.com; helo=smtp.opera.com
X-W3C-Hub-Spam-Status: No, score=-5.4
X-W3C-Hub-Spam-Report: AWL=-0.833, BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.369, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TWpCV-0004fp-Vc 28c6bef1e6f6192f56e473e01fc18d44
X-Original-To: ietf-http-wg@w3.org
Subject: Re: RFC: draft-brown-device-stock-ua-00.txt
Archived-At: <http://www.w3.org/mid/op.wnieplr8iw9drz@riaa>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15576
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

One should also keep in mind that one common usage of the user agent  
header is to identify the physical device/firmware to select a compatible  
download (like j2me application), that have nothing to do with browser  
features.

/Martin Nilsson

On Thu, 08 Nov 2012 19:36:04 +0100, Mark Nottingham <mnot@mnot.net> wrote:

> For those who haven't seen it, Ilya (cc:ed) is working on something  
> related that he's calling "client hints".
>
> http://lists.w3.org/Archives/Public/public-web-perf/2012Oct/0053.html
>
> Cheers,
>
>
> On 08/11/2012, at 5:04 AM, Tiffany B. Brown <tiffanyb@opera.com> wrote:
>
>> Hello all,
>>
>> I've recently submitted an RFC for a new HTTP header: Device-Stock-UA.  
>> Feedback is welcome.
>>
>> http://www.ietf.org/staging/draft-brown-device-stock-ua-00.txt
>>
>> Abstract
>>
>>   This document standardizes an HTTP extension header field that allows
>>   third-party HTTP clients and embeddable HTTP client components to
>>   include the user agent string of the HTTP-client that is bundled with
>>   the device operating system.
>>
>> Thanks so much,
>>
>> - Tiffany
>>
>> --
>> Tiffany Brown, Developer Relations & Tools
>> Opera Software ASA (www.opera.com)
>> Twitter / AIM: webinista * Skype: tiffanybbrown
>>
>
> --
> Mark Nottingham   http://www.mnot.net/
>
>
>


-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/


From ietf-http-wg-request@listhub.w3.org  Fri Nov  9 06:15:42 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8404F21F8588 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri,  9 Nov 2012 06:15:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.019
X-Spam-Level: 
X-Spam-Status: No, score=-10.019 tagged_above=-999 required=5 tests=[AWL=-0.290, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, SARE_MLH_Stock1=0.87]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X7ltrY3ZdKuK for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri,  9 Nov 2012 06:15:41 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 1A7DD21F8583 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri,  9 Nov 2012 06:15:40 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TWpLy-0006Yi-4t for ietf-http-wg-dist@listhub.w3.org; Fri, 09 Nov 2012 14:14:38 +0000
Resent-Date: Fri, 09 Nov 2012 14:14:38 +0000
Resent-Message-Id: <E1TWpLy-0006Yi-4t@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <nilsson@opera.com>) id 1TWpLq-0006X5-7k for ietf-http-wg@listhub.w3.org; Fri, 09 Nov 2012 14:14:30 +0000
Received: from smtp.opera.com ([213.236.208.81]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <nilsson@opera.com>) id 1TWpLi-0007fr-95 for ietf-http-wg@w3.org; Fri, 09 Nov 2012 14:14:30 +0000
Received: from riaa (oslo.jvpn.opera.com [213.236.208.46]) (authenticated bits=0) by smtp.opera.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id qA9EDpCd026908 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 9 Nov 2012 14:13:51 GMT
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
To: "Mark Nottingham" <mnot@mnot.net>, "Ilya Grigorik" <ilya@igvita.com>
Cc: "Tiffany B. Brown" <tiffanyb@opera.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
References: <509AA2AB.9050509@opera.com> <BF20D334-A8DE-4A74-B318-572D684E8E6F@mnot.net> <CAKRe7JFi4bDAEQ0jEaye=Uc6kpVrDjZmWAJgdeD8Mpi8ytV2kw@mail.gmail.com>
Date: Fri, 09 Nov 2012 15:13:50 +0100
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: "Martin Nilsson" <nilsson@opera.com>
Organization: Opera Software ASA
Message-ID: <op.wnie5cv6iw9drz@riaa>
In-Reply-To: <CAKRe7JFi4bDAEQ0jEaye=Uc6kpVrDjZmWAJgdeD8Mpi8ytV2kw@mail.gmail.com>
User-Agent: Opera Mail/12.10 (Linux)
Received-SPF: pass client-ip=213.236.208.81; envelope-from=nilsson@opera.com; helo=smtp.opera.com
X-W3C-Hub-Spam-Status: No, score=-5.4
X-W3C-Hub-Spam-Report: AWL=-0.833, BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.369, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TWpLi-0007fr-95 c612af09e87cd6f04b53eab776495007
X-Original-To: ietf-http-wg@w3.org
Subject: Re: RFC: draft-brown-device-stock-ua-00.txt
Archived-At: <http://www.w3.org/mid/op.wnie5cv6iw9drz@riaa>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15577
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Fri, 09 Nov 2012 08:04:50 +0100, Ilya Grigorik <ilya@igvita.com> wrote:

> On Thu, Nov 8, 2012 at 10:36 AM, Mark Nottingham <mnot@mnot.net> wrote:
>
>> For those who haven't seen it, Ilya (cc:ed) is working on something
>> related that he's calling "client hints".
>>
>> http://lists.w3.org/Archives/Public/public-web-perf/2012Oct/0053.html
>
>
> Thanks Mark. We had a good discussion on the Clients Hints proposal  
> earlier
> today at the W3C perf workshop.. Will be updating the document with all  
> the
> feedback and suggestions shortly. If anyone has feedback on what's there
> already, please let me know!
>
> This might lack context without the audio, but a quick presentation on  
> the
> proposal for today's discussion:
> https://docs.google.com/presentation/d/1y_A6VOZy9bD2i0VLHv9ZWr0W3hZJvlTNCDA0itjI0yM/present
>

Nice presentation. The end proposal looks very similar to UAProf, which is  
supported by a large number of mobile devices. (  
http://www.openmobilealliance.org/tech/affiliates/wap/wap-248-uaprof-20011020-a.pdf  
)

It would be interesting to have a discussion on why UAProf failed.

/Martin Nilsson

-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/


From ietf-http-wg-request@listhub.w3.org  Fri Nov  9 09:57:07 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8A1EA21F8675 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri,  9 Nov 2012 09:57:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.106
X-Spam-Level: 
X-Spam-Status: No, score=-9.106 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8, SARE_MLH_Stock1=0.87]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NFQChrSGUzbV for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri,  9 Nov 2012 09:57:06 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 787A421F85AB for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri,  9 Nov 2012 09:57:06 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TWsnP-0000Ps-34 for ietf-http-wg-dist@listhub.w3.org; Fri, 09 Nov 2012 17:55:11 +0000
Resent-Date: Fri, 09 Nov 2012 17:55:11 +0000
Resent-Message-Id: <E1TWsnP-0000Ps-34@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <ilya@igvita.com>) id 1TWsnK-0000P4-Cs for ietf-http-wg@listhub.w3.org; Fri, 09 Nov 2012 17:55:06 +0000
Received: from mail-ie0-f171.google.com ([209.85.223.171]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <ilya@igvita.com>) id 1TWsnJ-0003Cq-7P for ietf-http-wg@w3.org; Fri, 09 Nov 2012 17:55:06 +0000
Received: by mail-ie0-f171.google.com with SMTP id s9so6534881iec.2 for <ietf-http-wg@w3.org>; Fri, 09 Nov 2012 09:54:39 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=MNkbrqsn8k8s2ezlWRveK4mtbBGhlRU+f1pQQzZwT0U=; b=bq3h6bPeiiAEaubNQ+IZAJ2QU80jlM4EnomnxMppo0xsTGVKTLxyGQ1xSYE/0GMHry E2rBQzCCZ3Ki93SavJbRqY8lo5/txTGEnKLap6B4N6DgsKJ4qKLPxdqRqrer5MgwbXgG Dc9ucD+PUlyM2V4qwAsE6Z9qattCmhENeGAaaFQB52wqWDpD/GwJ0xhblYxiEq2yTxDD ZEgUJJDrfwHHGwAlZnEVIWxXxR1rxt4vOT9/A2aMt36kcfG5W5Nzi4uIDHPYmkIj7Evv k/kiqsOJYfpoMavNMqz1TvSSPDZCNhB2SEU2Mbbq91pNW8VtaZW8bzkx6KwFYNVaiDzo 7VZg==
Received: by 10.50.7.234 with SMTP id m10mr2082336iga.43.1352483679232; Fri, 09 Nov 2012 09:54:39 -0800 (PST)
Received: from mail-ie0-f171.google.com (mail-ie0-f171.google.com [209.85.223.171]) by mx.google.com with ESMTPS id we6sm1722305igb.8.2012.11.09.09.54.36 (version=SSLv3 cipher=OTHER); Fri, 09 Nov 2012 09:54:36 -0800 (PST)
Received: by mail-ie0-f171.google.com with SMTP id s9so6534763iec.2 for <ietf-http-wg@w3.org>; Fri, 09 Nov 2012 09:54:35 -0800 (PST)
Received: by 10.50.0.241 with SMTP id 17mr2105435igh.40.1352483675711; Fri, 09 Nov 2012 09:54:35 -0800 (PST)
MIME-Version: 1.0
Received: by 10.64.8.196 with HTTP; Fri, 9 Nov 2012 09:53:54 -0800 (PST)
In-Reply-To: <op.wnie5cv6iw9drz@riaa>
References: <509AA2AB.9050509@opera.com> <BF20D334-A8DE-4A74-B318-572D684E8E6F@mnot.net> <CAKRe7JFi4bDAEQ0jEaye=Uc6kpVrDjZmWAJgdeD8Mpi8ytV2kw@mail.gmail.com> <op.wnie5cv6iw9drz@riaa>
From: Ilya Grigorik <ilya@igvita.com>
Date: Fri, 9 Nov 2012 09:53:54 -0800
Message-ID: <CAKRe7JHW22_o7gv7xvARTUhNwc1L287f=dpC1ZyjDKGLFFFG8A@mail.gmail.com>
To: Martin Nilsson <nilsson@opera.com>
Cc: Mark Nottingham <mnot@mnot.net>, "Tiffany B. Brown" <tiffanyb@opera.com>,  "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=e89a8f5034580e28a104ce13a5d6
X-Gm-Message-State: ALoCoQn9fRC1rwIRwJb/Wf9l8BP1tTfeA2Ur2V8FkLw8wC4N+LcQWmbKfXFR1ldVhEVoHvVGqrD3
Received-SPF: pass client-ip=209.85.223.171; envelope-from=ilya@igvita.com; helo=mail-ie0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-2.6
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TWsnJ-0003Cq-7P 27c6f19f6240b3339a277638c052b1b1
X-Original-To: ietf-http-wg@w3.org
Subject: Re: RFC: draft-brown-device-stock-ua-00.txt
Archived-At: <http://www.w3.org/mid/CAKRe7JHW22_o7gv7xvARTUhNwc1L287f=dpC1ZyjDKGLFFFG8A@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15578
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--e89a8f5034580e28a104ce13a5d6
Content-Type: text/plain; charset=ISO-8859-1

> Nice presentation. The end proposal looks very similar to UAProf, which is
> supported by a large number of mobile devices. (
> http://www.openmobilealliance.**org/tech/affiliates/wap/wap-**
> 248-uaprof-20011020-a.pdf<http://www.openmobilealliance.org/tech/affiliates/wap/wap-248-uaprof-20011020-a.pdf>)
>
> It would be interesting to have a discussion on why UAProf failed.


"Large" is a relative term :-) .. AFAIK, Nokia and a few other device
vendors provide the UAProf header, but unfortunately it just didn't get any
adoption from the (new) dominant smartphone vendors. The URL + dictionary
structure it provides is (I believe) way too complicated for what it needs
to be (RDF dicts + entire process to define them, questions about who and
what maintains them, and so on). I think we can get 95% of the value with
95% less overhead, and we do need a solution..

ig



>
>
> /Martin Nilsson
>
>
> --
> Using Opera's revolutionary email client: http://www.opera.com/mail/
>

--e89a8f5034580e28a104ce13a5d6
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"m=
argin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=3D=
"im">Nice presentation. The end proposal looks very similar to UAProf, whic=
h is supported by a large number of mobile devices. ( <a href=3D"http://www=
.openmobilealliance.org/tech/affiliates/wap/wap-248-uaprof-20011020-a.pdf" =
target=3D"_blank">http://www.openmobilealliance.<u></u>org/tech/affiliates/=
wap/wap-<u></u>248-uaprof-20011020-a.pdf</a> )</div>


<br>
It would be interesting to have a discussion on why UAProf failed.</blockqu=
ote><div><br></div><div>&quot;Large&quot; is a relative term :-) .. AFAIK, =
Nokia and a few other device vendors provide the UAProf header, but unfortu=
nately it just didn&#39;t get any adoption from the (new) dominant smartpho=
ne vendors. The URL + dictionary structure it provides is (I believe) way t=
oo complicated for what it needs to be (RDF dicts + entire process to defin=
e them, questions about who and what maintains them, and so on). I think we=
 can get 95% of the value with 95% less overhead, and we do need a solution=
..=A0</div>

<div><br></div><div>ig</div><div><br></div><div>=A0</div><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex"><span class=3D"HOEnZb"><font color=3D"#888888"><br>
<br>
/Martin Nilsson</font></span><div class=3D"HOEnZb"><div class=3D"h5"><br>
<br>
-- <br>
Using Opera&#39;s revolutionary email client: <a href=3D"http://www.opera.c=
om/mail/" target=3D"_blank">http://www.opera.com/mail/</a><br>
</div></div></blockquote></div><br>

--e89a8f5034580e28a104ce13a5d6--


From ietf-http-wg-request@listhub.w3.org  Fri Nov  9 11:36:20 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D783C21F852B for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri,  9 Nov 2012 11:36:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.729
X-Spam-Level: 
X-Spam-Status: No, score=-9.729 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, SARE_MLH_Stock1=0.87]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p0GxDqPIZqzD for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri,  9 Nov 2012 11:36:20 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 2DBE821F8529 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri,  9 Nov 2012 11:36:19 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TWuLC-0004nm-Kc for ietf-http-wg-dist@listhub.w3.org; Fri, 09 Nov 2012 19:34:10 +0000
Resent-Date: Fri, 09 Nov 2012 19:34:10 +0000
Resent-Message-Id: <E1TWuLC-0004nm-Kc@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <john@jkemp.net>) id 1TWuL7-0004n3-RO for ietf-http-wg@listhub.w3.org; Fri, 09 Nov 2012 19:34:05 +0000
Received: from oproxy9.bluehost.com ([69.89.24.6]) by maggie.w3.org with smtp (Exim 4.72) (envelope-from <john@jkemp.net>) id 1TWuL6-0008NX-2W for ietf-http-wg@w3.org; Fri, 09 Nov 2012 19:34:05 +0000
Received: (qmail 10420 invoked by uid 0); 9 Nov 2012 19:33:41 -0000
Received: from unknown (HELO box320.bluehost.com) (69.89.31.120) by oproxy9.bluehost.com with SMTP; 9 Nov 2012 19:33:41 -0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=jkemp.net; s=default; h=Mime-Version:To:Message-Id:Date:Subject:Content-Transfer-Encoding:Content-Type:From; bh=lEQ4XSN3ZAF3IKCriFTVaYC+9QS8qGmjWJbvTIMo9pE=; b=vKSUxhsshKtgXLG58Va5vMw5zsLo+CPyfXzi3SnavnFv/54LDmTs2viWnB2DHYGQMa5gm2Wwv+A0JT/CiaWog0v2ifTKGKGNSoLBOPD37kUbncKXccWxgCL6fd9hF4aW;
Received: from [192.234.2.90] (port=29499 helo=lm-ct-702531.corp.espn.pvt) by box320.bluehost.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from <john@jkemp.net>) id 1TWuKj-0001Pz-Ng for ietf-http-wg@w3.org; Fri, 09 Nov 2012 12:33:41 -0700
From: John Kemp <john@jkemp.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Date: Fri, 9 Nov 2012 14:33:39 -0500
Message-Id: <BEFF7D84-FF00-4B03-B6CA-80859F5F6FCD@jkemp.net>
To: ietf-http-wg@w3.org
Mime-Version: 1.0 (Apple Message framework v1085)
X-Mailer: Apple Mail (2.1085)
X-Identified-User: {1122:box320.bluehost.com:jkempnet:jkemp.net} {sentby:smtp auth 192.234.2.90 authed with john+jkemp.net}
Received-SPF: pass client-ip=69.89.24.6; envelope-from=john@jkemp.net; helo=oproxy9.bluehost.com
X-W3C-Hub-Spam-Status: No, score=-2.0
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TWuL6-0008NX-2W 8d9e14257293eb38803e42f942b955d7
X-Original-To: ietf-http-wg@w3.org
Subject: Re: RFC: draft-brown-device-stock-ua-00.txt
Archived-At: <http://www.w3.org/mid/BEFF7D84-FF00-4B03-B6CA-80859F5F6FCD@jkemp.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15579
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

> On 11/9/12 2:04 AM, "Ilya Grigorik" <ilya@igvita.com> wrote:
> On Thu, Nov 8, 2012 at 10:36 AM, Mark Nottingham <mnot@mnot.net> =
wrote:
>=20
> > For those who haven't seen it, Ilya (cc:ed) is working on something
> > related that he's calling "client hints".
> >
> > =
http://lists.w3.org/Archives/Public/public-web-perf/2012Oct/0053.html
>=20
> Thanks Mark. We had a good discussion on the Clients Hints proposal =
earlier
> today at the W3C perf workshop.. Will be updating the document with =
all the
> feedback and suggestions shortly. If anyone has feedback on what's =
there
> already, please let me know!

One question - what happens in the presence of an intermediary? SHOULD =
an intermediary pass on the Client-hints HTTP header, if sent by a =
client?

Regards,

JohnK

>=20
> This might lack context without the audio, but a quick presentation on =
the
> proposal for today's discussion:
>=20
> =
https://docs.google.com/presentation/d/1y_A6VOZy9bD2i0VLHv9ZWr0W3hZJvlTNCD=
A0itjI0yM/present
>=20
> Ilya


From ietf-http-wg-request@listhub.w3.org  Fri Nov  9 12:34:49 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8A35421F8667 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri,  9 Nov 2012 12:34:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.106
X-Spam-Level: 
X-Spam-Status: No, score=-9.106 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8, SARE_MLH_Stock1=0.87]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AP21J5+K0gE7 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri,  9 Nov 2012 12:34:49 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 112AC21F8665 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri,  9 Nov 2012 12:34:49 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TWvGT-0007rw-7j for ietf-http-wg-dist@listhub.w3.org; Fri, 09 Nov 2012 20:33:21 +0000
Resent-Date: Fri, 09 Nov 2012 20:33:21 +0000
Resent-Message-Id: <E1TWvGT-0007rw-7j@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <ilya@igvita.com>) id 1TWvGO-0007py-Ow for ietf-http-wg@listhub.w3.org; Fri, 09 Nov 2012 20:33:16 +0000
Received: from mail-ia0-f171.google.com ([209.85.210.171]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <ilya@igvita.com>) id 1TWvGN-00030k-R0 for ietf-http-wg@w3.org; Fri, 09 Nov 2012 20:33:16 +0000
Received: by mail-ia0-f171.google.com with SMTP id z13so721674iaz.2 for <ietf-http-wg@w3.org>; Fri, 09 Nov 2012 12:32:49 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=4ZdMHYyHu4zarn3C+ZAK7VHz7rXThHTjaYV7xHzrDkY=; b=HSNTNt/bX26i+9V6msIcpRY8iU5nnKMYPNHEumCSKAd+uGpy1xWY/P/0scFjq9Zsl+ YyrHKtk/HJArcYowcDjMJW6Rrl5JqzM7ApNl2MQl618O71HRgENwQPmOjpB1aAkdusm1 DmBoHMBcc8d2gu+fB5h1CSwmJ3SMe2RayDa5wJAM/eqPy482xVvl1ihna1xzJysdL/Kg 6OTodkvUIs7LG7BxP8VCDsth/v0oN8JpfRvAxUdTWvH6jIhFhK6lhWmuoxVbZfFn/rWJ aIpqp6kNnBJyf98LV7QE7O8JvLjkjZPoRaU005MUGxMo9CHCHdJoVSmMT4jIyzG2REMk Y+6A==
Received: by 10.50.95.161 with SMTP id dl1mr2595147igb.0.1352493169275; Fri, 09 Nov 2012 12:32:49 -0800 (PST)
Received: from mail-ie0-f171.google.com (mail-ie0-f171.google.com [209.85.223.171]) by mx.google.com with ESMTPS id s20sm2211613igs.10.2012.11.09.12.32.48 (version=SSLv3 cipher=OTHER); Fri, 09 Nov 2012 12:32:48 -0800 (PST)
Received: by mail-ie0-f171.google.com with SMTP id s9so6777297iec.2 for <ietf-http-wg@w3.org>; Fri, 09 Nov 2012 12:32:48 -0800 (PST)
Received: by 10.50.151.238 with SMTP id ut14mr2437113igb.72.1352493168365; Fri, 09 Nov 2012 12:32:48 -0800 (PST)
MIME-Version: 1.0
Received: by 10.64.8.196 with HTTP; Fri, 9 Nov 2012 12:32:08 -0800 (PST)
In-Reply-To: <BEFF7D84-FF00-4B03-B6CA-80859F5F6FCD@jkemp.net>
References: <BEFF7D84-FF00-4B03-B6CA-80859F5F6FCD@jkemp.net>
From: Ilya Grigorik <ilya@igvita.com>
Date: Fri, 9 Nov 2012 12:32:08 -0800
Message-ID: <CAKRe7JF16sMUkT7HVvwfLPWXeWgdE0UR12aUWxkFeuYuDys4Kw@mail.gmail.com>
To: John Kemp <john@jkemp.net>
Cc: ietf-http-wg@w3.org
Content-Type: multipart/alternative; boundary=e89a8f3b9f7ddc908c04ce15daea
X-Gm-Message-State: ALoCoQnR87oWOwvyNh5KQYcBvhINETsprSvdpaqayx/vSxXjXZhfjovlVj1+k5e6l67CPmIUC7yI
Received-SPF: pass client-ip=209.85.210.171; envelope-from=ilya@igvita.com; helo=mail-ia0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-2.6
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TWvGN-00030k-R0 379a9797193f5f25fee429bb68b68f6c
X-Original-To: ietf-http-wg@w3.org
Subject: Re: RFC: draft-brown-device-stock-ua-00.txt
Archived-At: <http://www.w3.org/mid/CAKRe7JF16sMUkT7HVvwfLPWXeWgdE0UR12aUWxkFeuYuDys4Kw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15580
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--e89a8f3b9f7ddc908c04ce15daea
Content-Type: text/plain; charset=ISO-8859-1

On Fri, Nov 9, 2012 at 11:33 AM, John Kemp <john@jkemp.net> wrote:

> One question - what happens in the presence of an intermediary? SHOULD an
> intermediary pass on the Client-hints HTTP header, if sent by a client?


Yes. If the intermediary is the doing the adaptation based on the hint,
then theoretically it could drop the header when forwarding the request
(but more likely, just pass it along).

ig

--e89a8f3b9f7ddc908c04ce15daea
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote">On Fri, Nov 9, 2012 at 11:33 AM, John Ke=
mp <span dir=3D"ltr">&lt;<a href=3D"mailto:john@jkemp.net" target=3D"_blank=
">john@jkemp.net</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote"=
 style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

One question - what happens in the presence of an intermediary? SHOULD an i=
ntermediary pass on the Client-hints HTTP header, if sent by a client?</blo=
ckquote><div><br></div><div>Yes. If the intermediary is the doing the adapt=
ation based on the hint, then theoretically it could drop the header when f=
orwarding the request (but more likely, just pass it along).</div>

<div><br></div><div>ig</div></div>

--e89a8f3b9f7ddc908c04ce15daea--


From ietf-http-wg-request@listhub.w3.org  Fri Nov  9 13:14:26 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7DF8D21F86CF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri,  9 Nov 2012 13:14:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.107
X-Spam-Level: 
X-Spam-Status: No, score=-9.107 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_HI=-8, SARE_MLH_Stock1=0.87]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1w07hbp7w5Kf for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri,  9 Nov 2012 13:14:25 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id A094021F86CE for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri,  9 Nov 2012 13:14:25 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TWvsY-0002ic-OC for ietf-http-wg-dist@listhub.w3.org; Fri, 09 Nov 2012 21:12:42 +0000
Resent-Date: Fri, 09 Nov 2012 21:12:42 +0000
Resent-Message-Id: <E1TWvsY-0002ic-OC@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <lists@eitanadler.com>) id 1TWvsU-0002ht-Q5 for ietf-http-wg@listhub.w3.org; Fri, 09 Nov 2012 21:12:38 +0000
Received: from mail-vb0-f43.google.com ([209.85.212.43]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <lists@eitanadler.com>) id 1TWvsT-00041T-SK for ietf-http-wg@w3.org; Fri, 09 Nov 2012 21:12:38 +0000
Received: by mail-vb0-f43.google.com with SMTP id fq11so4554540vbb.2 for <ietf-http-wg@w3.org>; Fri, 09 Nov 2012 13:12:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=pYIaAXuXO1jQD8UZs64HwFTbFpZws5PltTPki8l+t+c=; b=WBbOzIUcfpeA1w5RrFEmdoQvYJiDSsPKVTaR2UtaqSFGXmOPOUxMUIBtp6ozehfoLw /vkCy5EEdiwWJp6qlzsUovZt3ICXZCXFojuryISbvkj2If7tPWWfBGhLNAx+SSrED/p9 ii0d3zBHrdd8rwsjaS8Mb+Ag04nZhVSeso79Y=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=pYIaAXuXO1jQD8UZs64HwFTbFpZws5PltTPki8l+t+c=; b=ahWcYFtIHzrsdmNlpVQJ3exPr2Gw268/KsorDHzWSLPc8+AbSZQ25arNf9seR7hsuO NdNh+bro2xqnE+TXgjZFuTnHQ00fceen4F7L2O6gBOmFUTO23F4FkAMQUKLZZVWzCTbk m7LF30WgEVhcrUt6jYP7Cabrg/Vyxc2DhazR+QHJnAzn4tb5YdewxXdiCrpGiV2E3yh9 BWNyhxRM0n4p4uzZthdWSKp9fnmCDvI6jR1l9PfUfdBeHiPt4uOaM6wFZAJ4zymuPANf HMWnyQjksv/7otTMDHFOYVYLlh81vIWyQzRMTWVxpU4S4ukDIAXrfONrEBCLpGmjJvRO Dk7Q==
Received: by 10.52.96.97 with SMTP id dr1mr10346605vdb.100.1352495531818; Fri, 09 Nov 2012 13:12:11 -0800 (PST)
MIME-Version: 1.0
Received: by 10.220.58.206 with HTTP; Fri, 9 Nov 2012 13:11:41 -0800 (PST)
In-Reply-To: <CAKRe7JF16sMUkT7HVvwfLPWXeWgdE0UR12aUWxkFeuYuDys4Kw@mail.gmail.com>
References: <BEFF7D84-FF00-4B03-B6CA-80859F5F6FCD@jkemp.net> <CAKRe7JF16sMUkT7HVvwfLPWXeWgdE0UR12aUWxkFeuYuDys4Kw@mail.gmail.com>
From: Eitan Adler <lists@eitanadler.com>
Date: Fri, 9 Nov 2012 16:11:41 -0500
Message-ID: <CAF6rxgm7mJdWSKWwyeU=Gh=wgoB0KbbyKXfiXt-4p78Qwk32Vg@mail.gmail.com>
To: Ilya Grigorik <ilya@igvita.com>
Cc: John Kemp <john@jkemp.net>, ietf-http-wg@w3.org
Content-Type: text/plain; charset=UTF-8
X-Gm-Message-State: ALoCoQlUhUKEasahvP9IpqSfC511uGm+dR22qB2oTX2L4enQb9gQfKrLoFcXxMCTXqGzQ/WcFrAI
Received-SPF: pass client-ip=209.85.212.43; envelope-from=lists@eitanadler.com; helo=mail-vb0-f43.google.com
X-W3C-Hub-Spam-Status: No, score=-4.5
X-W3C-Hub-Spam-Report: AWL=-1.818, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TWvsT-00041T-SK 6be98e0e44e7935316961525d5c4aaa6
X-Original-To: ietf-http-wg@w3.org
Subject: Re: RFC: draft-brown-device-stock-ua-00.txt
Archived-At: <http://www.w3.org/mid/CAF6rxgm7mJdWSKWwyeU=Gh=wgoB0KbbyKXfiXt-4p78Qwk32Vg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15581
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 9 November 2012 15:32, Ilya Grigorik <ilya@igvita.com> wrote:
>
>
> On Fri, Nov 9, 2012 at 11:33 AM, John Kemp <john@jkemp.net> wrote:
>>
>> One question - what happens in the presence of an intermediary? SHOULD an
>> intermediary pass on the Client-hints HTTP header, if sent by a client?
>
>
> Yes. If the intermediary is the doing the adaptation based on the hint, then
> theoretically it could drop the header when forwarding the request (but more
> likely, just pass it along).

Even then, it shouldn't, because whatever is behind it might have more to do.


-- 
Eitan Adler


From ietf-http-wg-request@listhub.w3.org  Sun Nov 11 17:43:56 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 10C9121F8436 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 11 Nov 2012 17:43:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.553
X-Spam-Level: 
X-Spam-Status: No, score=-9.553 tagged_above=-999 required=5 tests=[AWL=1.046, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j+NZ++jAB8Yh for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 11 Nov 2012 17:43:55 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id C4B7621F843C for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 11 Nov 2012 17:43:54 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TXj1S-0006MF-CK for ietf-http-wg-dist@listhub.w3.org; Mon, 12 Nov 2012 01:41:10 +0000
Resent-Date: Mon, 12 Nov 2012 01:41:10 +0000
Resent-Message-Id: <E1TXj1S-0006MF-CK@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TXj1L-0006L4-20 for ietf-http-wg@listhub.w3.org; Mon, 12 Nov 2012 01:41:03 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TXj1I-000403-L5 for ietf-http-wg@w3.org; Mon, 12 Nov 2012 01:41:03 +0000
Received: from mnot-mini.mnot.net (unknown [118.209.81.233]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 8482B50A64; Sun, 11 Nov 2012 20:40:36 -0500 (EST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <emba9537fd-77af-45fd-91b1-e42423af960e@bombed>
Date: Mon, 12 Nov 2012 12:40:44 +1100
Cc: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <53FC21D0-DB87-41CC-98F8-8A059488CC3A@mnot.net>
References: <emba9537fd-77af-45fd-91b1-e42423af960e@bombed>
To: "Adrien W. de Croy" <adrien@qbik.com>, Roy Fielding <fielding@gbiv.com>
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-3.9
X-W3C-Hub-Spam-Report: AWL=-2.022, BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TXj1I-000403-L5 fae9feb70bfe29d4bf941b4691570d88
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Queries re P6
Archived-At: <http://www.w3.org/mid/53FC21D0-DB87-41CC-98F8-8A059488CC3A@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15582
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Hi Adrien,

Sorry for the delay; responses below.

On 31/10/2012, at 12:12 PM, Adrien W. de Croy <adrien@qbik.com> wrote:

>=20
> Hi all.=20
>=20
> We're currently refactoring our cache module, and have run into a few =
areas where there seems to be inconsistency between RFC2616 and p6, and =
other places where there are possibly ambiguities in p6.
>=20
> Firstly, if one is to compare RFC 2616 10.3.5 with P6 4.2.1
>=20
> in RFC2616 10.3.5 we have=20
>=20
> "If a 304 response indicates an entity not currently cached, then the =
cache MUST disregard the response and repeat the request without the =
conditional."
>=20
> in P6 4.2.1=20
>=20
> "If none of the stored responses contain the same strong validator, =
then this new response corresponds to a new selected representation and =
MUST NOT update the existing stored responses."
>=20
> I don't see anywhere in p6 where it says the response must be =
disregarded completely and the request re-issued. Isn't this therefore a =
semantic change (which I understood was outside the scope of httpbis)?

Validation itself has been moved to p4; this section is just about the =
impact of validation upon caches.=20

IIRC we removed the requirement to reissue the request because there are =
some scenarios where it doesn't make sense to do so; e.g., if the =
incoming request was conditional, and you forward that, a 304 response =
need not trigger a re-request, even though you don't have it in cache =
locally. Of course, you can choose to do so if you like, but HTTP =
shouldn't require it.


> I don't understand how "Not modified" can be compatible with "new =
selected response".

I agree; I think we can change that language (which is explanatory, and =
doing a bad job of it) to: "If none of the stored responses contain the =
same strong validator, then the response MUST NOT be used to update any =
stored responses."


> in 4.2.1,=20
>=20
> "If the new response does not include any form of validator, there
> is only one stored response, and that stored response also lacks a
> validator, then that stored response is selected."
>=20
> Firstly, there should be an "and" in there... e.g. it should read=20
>=20
> "If the new response does not include any form of validator, and there
> is only one stored response which also lacks a validator, then that =
stored response is selected."
>=20
> But how can a server logically reply with 304 without a validator?=20
>=20
> A server can only reply with 304 if the request was conditional. For a =
request to be conditional, there must be a validator supplied with the =
request. But in this case the stored response had no validator. So where =
did the validator come from?
>=20
> Does this mean that it's compliant behaviour to make a conditional =
request with data that wasn't in the stored response? E.g. have a cache =
invent an If-Modified-Since based on something else (e.g. Date)? =
Presumably a cache can't invent an ETag where there was none. Also, 4.2 =
para 2 states the If-Modified-Since comes from Last-Modified and doesn't =
imply it can come from elsewhere.
>=20
> My initial reaction is to consider a 304 without validator to be a =
server bug.

This text was introduced by Roy in =
<http://trac.tools.ietf.org/wg/httpbis/trac/changeset/1374/draft-ietf-http=
bis/latest/p6-cache.xml#L1096>. Roy, what was your thinking here?


> also:
>=20
> "use other header fields provided in the 304 (Not Modified) response =
to replace all instances of the corresponding header fields in the =
stored response."
>=20
> Should there be some limit on the fields that may be updated? Does it =
make sense for instance to allow updating of Content-Type?

I fear that if we go down the route of specifying which headers to pay =
attention to, we'll never get out of the rat hole. Besides, people might =
want to use a 304 to correct the Content-Type...


> in 4.3 may I clarify meaning of
>=20
> "If no selected response is available, the cache can forward the =
presented request to the origin server in a conditional request; see =
Section 4.2."
>=20
> "in a conditional request" is possibly ambiguous. To me this means the =
cache is entitled to make the request conditional by adding =
If-Modified-Since or If-None-Match etc. The request may have already =
been conditional (e.g. UA cache). So the purpose of the cache checking =
validity of something that failed selection is valid? E.g. the server =
gets the final say but may still choose to serve the same content (e.g. =
same ETag) even though it didn't match selectors?

That was unintentional; IIRC we softened some of the language from 2616 =
here, but didn't intend that reading.

How about:

"If no selected response is available, the cache cannot satisfy the =
presented request. Note that it can be forwarded to the origin server in =
a conditional request; see Section 4.2."

E.g., the cache might include ETags it knows about in the INM to allow =
the server to select from one of them.


> in 4.2 may I suggest some wording changes.
>=20
> Para 2 does not indicate that it's not valid to add If-Modified-Since =
unless there was a Last-Modified header in the stored response.
>=20
> E.g. instead of=20
>=20
> "When sending such a conditional request, a cache adds an =
If-Modified-Since header field whose value is that of the Last-Modified =
header field from the selected (see Section 4.3) stored response, if =
available."
>=20
> maybe it should read something like
>=20
> "If the selected stored response contains a Last-Modified header, a =
cache SHOULD add an If-Modified-Since header field whose value is that =
of the Last-Modified header field from the selected stored response."
>=20
> Likewise Para 3 and If-None-Match. E.g instead of=20
>=20
> "Additionally, a cache can add an If-None-Match header field whose =
value is that of the ETag header field(s) from all responses stored for =
the requested URI, if present...."
>=20
> maybe
>=20
> "Additionally if any stored response contains an ETag header field, a =
cache SHOULD add an If-None-Match header whose value(s) are the ETag =
header field(s) from all stored responses for the requested URI."

I don't object to doing this; does anyone else?


--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Mon Nov 12 08:30:51 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2B01021F862E for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 12 Nov 2012 08:30:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.729
X-Spam-Level: 
X-Spam-Status: No, score=-9.729 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, SARE_MLH_Stock1=0.87]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ziXql21vfrPm for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 12 Nov 2012 08:30:50 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 5F0B621F860F for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 12 Nov 2012 08:30:47 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TXws8-0004zN-Bq for ietf-http-wg-dist@listhub.w3.org; Mon, 12 Nov 2012 16:28:28 +0000
Resent-Date: Mon, 12 Nov 2012 16:28:28 +0000
Resent-Message-Id: <E1TXws8-0004zN-Bq@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <tiffanyb@opera.com>) id 1TXwry-0004y1-QR for ietf-http-wg@listhub.w3.org; Mon, 12 Nov 2012 16:28:18 +0000
Received: from smtp.opera.com ([213.236.208.81]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <tiffanyb@opera.com>) id 1TXwrx-0008TI-IA for ietf-http-wg@w3.org; Mon, 12 Nov 2012 16:28:18 +0000
Received: from tiffanyopera.local (cpe-76-93-94-77.socal.res.rr.com [76.93.94.77]) (authenticated bits=0) by smtp.opera.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id qACGRko5007716 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for <ietf-http-wg@w3.org>; Mon, 12 Nov 2012 16:27:48 GMT
Message-ID: <50A12381.5010706@opera.com>
Date: Mon, 12 Nov 2012 08:27:45 -0800
From: "Tiffany B. Brown" <tiffanyb@opera.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: ietf-http-wg@w3.org
References: <509AA2AB.9050509@opera.com> <CAF6rxgmq2CyMdTuqvUU0T7QhLScpDsYafG=WriHskG=ZybvCBQ@mail.gmail.com> <84639e8ccf4c673957e6e11043dfda3d@treenet.co.nz>
In-Reply-To: <84639e8ccf4c673957e6e11043dfda3d@treenet.co.nz>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=213.236.208.81; envelope-from=tiffanyb@opera.com; helo=smtp.opera.com
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: AWL=-1.616, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.192, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TXwrx-0008TI-IA f4da7325be52a2cdaca14ad024f4ca1d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: RFC: draft-brown-device-stock-ua-00.txt
Archived-At: <http://www.w3.org/mid/50A12381.5010706@opera.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15583
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 11/7/12 2:50 PM, Amos Jeffries wrote:

> ... and why must a new header be added with identical usage, syntax and
> handling as User-Agent be created to perform User-Agent operations?
> In section 4 the example does not match the BNF.
>
> Following the format:
>     Device-Stock-UA = "Device-Stock-UA" ":" (User-Agent)
>     User-Agent = <Defined in RFC2616 Section 14.43>
>
> We get:
>         Device-Stock-UA: User-Agent: CERN-LineMode/2.15 libwww/2.17b3
>
>
> Correcting that mistake the uselessness of creating this header becomes
> completely obvious:
>
> {{
>    Device-Stock-UA = "Device-Stock-UA" ":" 1*( product | comment )
>    User-Agent      = "User-Agent"      ":" 1*( product | comment )
> }}

It's the identical usage, syntax, and handling, but for two different 
products installed on the same device.  It's an optional header and  not 
without precedent; transcoders also use this model. Perhaps most 
importantly, it's compatible with existing device adaptation practices.

> You might as well define this as a listing of ALL software, Java class,
> active component, and hardware chip serial number installed on the
> device. Just in case some marketer or website wigit *might* want to
> know. Do you see the problem? If not have a look at IE6 UA string after
> a few hundred KB patches have been applied - utter mess useful only to
> help malicious attackers target specific missing patches.

Again: this header, if sent, would reveal marginally more than what the 
native HTTP client reveals. It would certainly reveal no more than what 
client-side feature detection reveals (the navigator.plugins object, for 
example). It's about the same risk that exists with any sort of user 
agent string change.

> The operating UA is already free to embed the device stock UA into its
> own UA string using the same format. If it is making use of that UA
> capabilities to generate the request that is reasonable.
>
> I for one see zero benefit from creating this header.
>
> Amos

-- 
Tiffany Brown, Developer Relations & Tools
Opera Software ASA (www.opera.com)
Twitter / AIM: webinista * Skype: tiffanybbrown


From ietf-http-wg-request@listhub.w3.org  Mon Nov 12 14:32:44 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1412421F8626 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 12 Nov 2012 14:32:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.183
X-Spam-Level: 
X-Spam-Status: No, score=-8.183 tagged_above=-999 required=5 tests=[AWL=-0.673, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, SARE_MLH_Stock1=0.87, TVD_SPACE_RATIO=2.219]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eAlprkPcl7Yr for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 12 Nov 2012 14:32:43 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 6C7A221F8625 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 12 Nov 2012 14:32:43 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TY2WC-0004Jz-Qw for ietf-http-wg-dist@listhub.w3.org; Mon, 12 Nov 2012 22:30:12 +0000
Resent-Date: Mon, 12 Nov 2012 22:30:12 +0000
Resent-Message-Id: <E1TY2WC-0004Jz-Qw@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TY2W6-0003gT-GX for ietf-http-wg@listhub.w3.org; Mon, 12 Nov 2012 22:30:06 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TY2W5-0002Xv-3k for ietf-http-wg@w3.org; Mon, 12 Nov 2012 22:30:06 +0000
Received: from mnot-mini.mnot.net (unknown [118.209.81.233]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id CABE950A64 for <ietf-http-wg@w3.org>; Mon, 12 Nov 2012 17:29:42 -0500 (EST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <50A12381.5010706@opera.com>
Date: Tue, 13 Nov 2012 09:29:39 +1100
Content-Transfer-Encoding: 7bit
Message-Id: <8669B10C-F5FB-40D5-8E72-FCB5501EC361@mnot.net>
References: <509AA2AB.9050509@opera.com> <CAF6rxgmq2CyMdTuqvUU0T7QhLScpDsYafG=WriHskG=ZybvCBQ@mail.gmail.com> <84639e8ccf4c673957e6e11043dfda3d@treenet.co.nz> <50A12381.5010706@opera.com>
To: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-3.1
X-W3C-Hub-Spam-Report: AWL=-3.140, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TY2W5-0002Xv-3k bf2051e3e44243aa4001abb6d7ee985c
X-Original-To: ietf-http-wg@w3.org
Subject: Re: RFC: draft-brown-device-stock-ua-00.txt
Archived-At: <http://www.w3.org/mid/8669B10C-F5FB-40D5-8E72-FCB5501EC361@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15584
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

FYI, further discussion here:
  https://bugzilla.mozilla.org/show_bug.cgi?id=799899

... and background (with more discussion) here:
  http://my.opera.com/ODIN/blog/2012/10/08/introducing-device-stock-ua

Regards,


--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Mon Nov 12 15:20:04 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5FC7D21F8765 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 12 Nov 2012 15:20:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 568bUvJyjyKM for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 12 Nov 2012 15:20:03 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 3DE2621F86EC for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 12 Nov 2012 15:20:02 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TY3Gj-00020f-CV for ietf-http-wg-dist@listhub.w3.org; Mon, 12 Nov 2012 23:18:17 +0000
Resent-Date: Mon, 12 Nov 2012 23:18:17 +0000
Resent-Message-Id: <E1TY3Gj-00020f-CV@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <adrien@qbik.com>) id 1TY3Gd-0001zw-Df for ietf-http-wg@listhub.w3.org; Mon, 12 Nov 2012 23:18:11 +0000
Received: from smtp.qbik.com ([210.55.214.35]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <adrien@qbik.com>) id 1TY3Ga-0007zf-Hi for ietf-http-wg@w3.org; Mon, 12 Nov 2012 23:18:11 +0000
Received: From [192.168.0.10] (unverified [192.168.0.10]) by SMTP Server [192.168.0.1] (WinGate SMTP Receiver v7.3.0 (Build 3464)) with SMTP id <0019354731@smtp.qbik.com>; Tue, 13 Nov 2012 12:18:03 +1300
From: "Adrien W. de Croy" <adrien@qbik.com>
To: "Mark Nottingham" <mnot@mnot.net>, "Roy Fielding" <fielding@gbiv.com>
Cc: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Date: Mon, 12 Nov 2012 23:17:57 +0000
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; format=flowed; charset=utf-8
In-Reply-To: <53FC21D0-DB87-41CC-98F8-8A059488CC3A@mnot.net>
Message-Id: <emecc3b2f4-73ba-4308-9b60-efeb23fb3e58@bombed>
Mime-Version: 1.0
Reply-To: "Adrien W. de Croy" <adrien@qbik.com>
User-Agent: eM_Client/4.0.15145.0
Received-SPF: pass client-ip=210.55.214.35; envelope-from=adrien@qbik.com; helo=smtp.qbik.com
X-W3C-Hub-Spam-Status: No, score=-4.5
X-W3C-Hub-Spam-Report: AWL=-2.403, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.192, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TY3Ga-0007zf-Hi 1321dca18ae574e877654ec32da73551
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Queries re P6
Archived-At: <http://www.w3.org/mid/emecc3b2f4-73ba-4308-9b60-efeb23fb3e58@bombed>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15585
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Hi Mark

------ Original Message ------
From: "Mark Nottingham" <mnot@mnot.net>
>Hi Adrien,
>
>Sorry for the delay; responses below.
>
>On 31/10/2012, at 12:12 PM, Adrien W. de Croy <adrien@qbik.com> wrote:
>
>
>>
>>
>>Hi all.
>>
>>We're currently refactoring our cache module, and have run into a few =
areas where there seems to be inconsistency between RFC2616 and p6, and =
other places where there are possibly ambiguities in p6.
>>
>>Firstly, if one is to compare RFC 2616 10.3.5 with P6 4.2.1
>>
>>in RFC2616 10.3.5 we have
>>
>>"If a 304 response indicates an entity not currently cached, then the =
cache MUST disregard the response and repeat the request without the condit=
ional."
>>
>>in P6 4.2.1
>>
>>"If none of the stored responses contain the same strong validator, then=
 this new response corresponds to a new selected representation and MUST=
 NOT update the existing stored responses."
>>
>>I don't see anywhere in p6 where it says the response must be disregarded=
 completely and the request re-issued. Isn't this therefore a semantic chan=
ge (which I understood was outside the scope of httpbis)?
>>
>
>
>Validation itself has been moved to p4; this section is just about the =
impact of validation upon caches.
>
>IIRC we removed the requirement to reissue the request because there are=
 some scenarios where it doesn't make sense to do so; e.g., if the incoming=
 request was conditional, and you forward that, a 304 response need not =
trigger a re-request, even though you don't have it in cache locally. Of=
 course, you can choose to do so if you like, but HTTP shouldn't require=
 it.
>

We see occasionally scenarios where it appears from the cache POV that=20
the server is returning a 304 which matches neither the client's=20
conditional request or our own.  E.g. a returned ETag matches none of=20
the client's If-None-Match list, nor the cache's.

Is the recommended fall-back in this case to ignore the ETag from the=20
server, and check if the Last-Modified (if present) matches any known=20
If-Modified-Since from the client or cache?

Because it can be quite difficult for a cache to re-issue the request=20
(e.g. upstream filters are oblivious that it's a retry).  In this case=20
we simply pass the problem back to the client.

>>
>>I don't understand how "Not modified" can be compatible with "new selecte=
d response".
>>
>
>
>I agree; I think we can change that language (which is explanatory, and=
 doing a bad job of it) to: "If none of the stored responses contain the=
 same strong validator, then the response MUST NOT be used to update any=
 stored responses."
>
ok
>>
>>in 4.2.1,
>>
>>"If the new response does not include any form of validator, there
>>is only one stored response, and that stored response also lacks a
>>validator, then that stored response is selected."
>>
>>Firstly, there should be an "and" in there... e.g. it should read
>>
>>"If the new response does not include any form of validator, and there
>>is only one stored response which also lacks a validator, then that store=
d response is selected."
>>
>>But how can a server logically reply with 304 without a validator?
>>
>>A server can only reply with 304 if the request was conditional. For a=
 request to be conditional, there must be a validator supplied with the =
request. But in this case the stored response had no validator. So where=
 did the validator come from?
>>
>>Does this mean that it's compliant behaviour to make a conditional reques=
t with data that wasn't in the stored response? E.g. have a cache invent=
 an If-Modified-Since based on something else (e.g. Date)? Presumably a =
cache can't invent an ETag where there was none. Also, 4.2 para 2 states=
 the If-Modified-Since comes from Last-Modified and doesn't imply it can=
 come from elsewhere.
>>
>>My initial reaction is to consider a 304 without validator to be a server=
 bug.
>>
>
>
>This text was introduced by Roy in <http://trac.tools.ietf.org/wg/httpbis/=
trac/changeset/1374/draft-ietf-httpbis/latest/p6-cache.xml#L1096>. Roy, =
what was your thinking here?
>
>
>
>>
>>also:
>>
>>"use other header fields provided in the 304 (Not Modified) response to=
 replace all instances of the corresponding header fields in the stored =
response."
>>
>>Should there be some limit on the fields that may be updated? Does it =
make sense for instance to allow updating of Content-Type?
>>
>
>
>I fear that if we go down the route of specifying which headers to pay =
attention to, we'll never get out of the rat hole. Besides, people might=
 want to use a 304 to correct the Content-Type...
>
>
>
>>
>>in 4.3 may I clarify meaning of
>>
>>"If no selected response is available, the cache can forward the presente=
d request to the origin server in a conditional request; see Section 4.2."
>>
>>"in a conditional request" is possibly ambiguous. To me this means the=
 cache is entitled to make the request conditional by adding If-Modified-Si=
nce or If-None-Match etc. The request may have already been conditional =
(e.g. UA cache). So the purpose of the cache checking validity of something=
 that failed selection is valid? E.g. the server gets the final say but =
may still choose to serve the same content (e.g. same ETag) even though =
it didn't match selectors?
>>
>
>
>That was unintentional; IIRC we softened some of the language from 2616=
 here, but didn't intend that reading.
>
>How about:
>
>"If no selected response is available, the cache cannot satisfy the presen=
ted request. Note that it can be forwarded to the origin server in a condit=
ional request; see Section 4.2."
>
>E.g., the cache might include ETags it knows about in the INM to allow =
the server to select from one of them.
>

OK, so the distinction is that the cache must effectively re-validate. =20
My point of re-validating non-selected representations is clarified by=20
your example, so basically the cache is free to check other=20
(non-selectable) representations with the server.  I can imagine=20
circumstances where a server responds with say Vary: *, yet still=20
wishes to send back a 304 since the ETag presented by the client or=20
cache indicates the client or cache copy is still actually the desired=20
one.=20
thanks

Adrien

>



From ietf-http-wg-request@listhub.w3.org  Mon Nov 12 16:01:05 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C978521F86EC for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 12 Nov 2012 16:01:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.252
X-Spam-Level: 
X-Spam-Status: No, score=-9.252 tagged_above=-999 required=5 tests=[AWL=1.347, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZnRJJtZ8hQmD for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 12 Nov 2012 16:01:05 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id E283321F86E4 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 12 Nov 2012 16:01:04 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TY3uL-00038a-V2 for ietf-http-wg-dist@listhub.w3.org; Mon, 12 Nov 2012 23:59:13 +0000
Resent-Date: Mon, 12 Nov 2012 23:59:13 +0000
Resent-Message-Id: <E1TY3uL-00038a-V2@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TY3uF-00037v-Lx for ietf-http-wg@listhub.w3.org; Mon, 12 Nov 2012 23:59:07 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TY3uE-0001V4-Jh for ietf-http-wg@w3.org; Mon, 12 Nov 2012 23:59:07 +0000
Received: from [192.168.1.64] (unknown [118.209.81.233]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 84A7F50A6A for <ietf-http-wg@w3.org>; Mon, 12 Nov 2012 18:58:44 -0500 (EST)
From: Mark Nottingham <mnot@mnot.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Message-Id: <061D9A6F-F37B-4D58-ADB0-ABCE0B2E3749@mnot.net>
Date: Tue, 13 Nov 2012 10:58:43 +1100
To: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: AWL=-2.190, BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TY3uE-0001V4-Jh 74800f3828006303c160e12dd9639a58
X-Original-To: ietf-http-wg@w3.org
Subject: Draft minutes from Atlanta
Archived-At: <http://www.w3.org/mid/061D9A6F-F37B-4D58-ADB0-ABCE0B2E3749@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15586
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

... are at:
  =
http://trac.tools.ietf.org/wg/httpbis/trac/browser/wg_materials/ietf85/min=
utes.txt

Please send any corrections, etc. and I'll post in a few days.

Regards,


--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Tue Nov 13 07:10:34 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 85DCE21F849A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 13 Nov 2012 07:10:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.593
X-Spam-Level: 
X-Spam-Status: No, score=-10.593 tagged_above=-999 required=5 tests=[AWL=0.005, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cHqJRji+yUUp for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 13 Nov 2012 07:10:30 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 3D3AE21F8481 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 13 Nov 2012 07:10:30 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYI5q-0005ox-LL for ietf-http-wg-dist@listhub.w3.org; Tue, 13 Nov 2012 15:08:02 +0000
Resent-Date: Tue, 13 Nov 2012 15:08:02 +0000
Resent-Message-Id: <E1TYI5q-0005ox-LL@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <lear@cisco.com>) id 1TYI5h-0005nV-V6 for ietf-http-wg@listhub.w3.org; Tue, 13 Nov 2012 15:07:54 +0000
Received: from ams-iport-1.cisco.com ([144.254.224.140]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <lear@cisco.com>) id 1TYI5Z-0007Ba-7J for ietf-http-wg@w3.org; Tue, 13 Nov 2012 15:07:53 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3384; q=dns/txt; s=iport; t=1352819265; x=1354028865; h=message-id:date:from:mime-version:to:subject; bh=PzvyCEIk2g5CRyffz2n0C2RjBDZaLATRSE9opCJIVzU=; b=ThqXm1C6StUlXkEy6XgMq6/wHK24+56PVSxcSFUuu+UiOWy7N4d7hbhy eA9HZMY7pzhzQ9SO7Ox//ag0cfHx7+KpRY3ecJsyDOPp5m+XJpkzYswiO MlCYvlcH0LtVcOtQnMllQcIK8Ln4QX7T63SxTAciPyiBlL3aA71sSpMsk Q=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AjgFAExfolCQ/khR/2dsb2JhbABEhhqFX7d9gQiCNwEQdR0hAhECTA0IAQEeh2iYYIErjSiCPZAukWKBEwOVfI5YgWuCcA
X-IronPort-AV: E=McAfee;i="5400,1158,6894"; a="146673700"
Received: from ams-core-1.cisco.com ([144.254.72.81]) by ams-iport-1.cisco.com with ESMTP; 13 Nov 2012 15:07:19 +0000
Received: from dhcp-10-55-89-131.cisco.com (dhcp-10-55-89-131.cisco.com [10.55.89.131]) by ams-core-1.cisco.com (8.14.5/8.14.5) with ESMTP id qADF7IJ1024806 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <ietf-http-wg@w3.org>; Tue, 13 Nov 2012 15:07:18 GMT
Message-ID: <50A26226.10906@cisco.com>
Date: Tue, 13 Nov 2012 16:07:18 +0100
From: Eliot Lear <lear@cisco.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
X-Enigmail-Version: 1.4.5
Content-Type: multipart/alternative; boundary="------------090508090303080705000508"
Received-SPF: pass client-ip=144.254.224.140; envelope-from=lear@cisco.com; helo=ams-iport-1.cisco.com
X-W3C-Hub-Spam-Status: No, score=-13.3
X-W3C-Hub-Spam-Report: AWL=-0.503, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.23, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5
X-W3C-Scan-Sig: lisa.w3.org 1TYI5Z-0007Ba-7J 88a5c93bdd1ae8924ecf7fcae3f5645d
X-Original-To: ietf-http-wg@w3.org
Subject: on DNS records
Archived-At: <http://www.w3.org/mid/50A26226.10906@cisco.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15587
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

This is a multi-part message in MIME format.
--------------090508090303080705000508
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

As I promised last week, I've substantially developed a draft (and some
code) to look more closely at whether a DNS record can be helpful. 
Before I get it out there, I wanted to check goals.  The situation is
this: there is a 2.0-enabled client and it must determine whether or not
the other end can speak 2.0.  Gabriel and Willy have already shown us
that it can be done INSIDE the protocol at the expense of one roundtrip,
but at the risk of a proxy doing the wrong thing (a classic case being
that it allows an Upgrade: header but then barfs all over the upgrade). 
So let's state our goals:

1.  Keep latency down.

  * First, is this a reasonable goal?
  * Can it reasonably be done better than what Willy & Gabriel have laid
    out?

2.  Transport Protocol Discovery

  * Some have suggested that it would be useful to do HTTP over UDP or
    SCTP.  Is that something that is a reasonable goal?

3.  Handle the case where multiple instances of the same application
protocol reside on the same host, but on different ports.

  * Is this a reasonable goal?

4.  No new URI schema

  * Address the 'side of the bus' problem.
  * Is this a reasonable goal?


Does this about cover it?  I claim we can solve all four, but not easily
with SRV.

Eliot

--------------090508090303080705000508
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    As I promised last week, I've substantially developed a draft (and
    some code) to look more closely at whether a DNS record can be
    helpful.Â  Before I get it out there, I wanted to check goals.Â  The
    situation is this: there is a 2.0-enabled client and it must
    determine whether or not the other end can speak 2.0.Â  Gabriel and
    Willy have already shown us that it can be done INSIDE the protocol
    at the expense of one roundtrip, but at the risk of a proxy doing
    the wrong thing (a classic case being that it allows an Upgrade:
    header but then barfs all over the upgrade).Â  So let's state our
    goals:<br>
    <br>
    1.Â  Keep latency down.<br>
    <ul>
      <li>First, is this a reasonable goal?</li>
      <li>Can it reasonably be done better than what Willy &amp; Gabriel
        have laid out?</li>
    </ul>
    2.Â  Transport Protocol Discovery<br>
    <ul>
      <li>Some have suggested that it would be useful to do HTTP over
        UDP or SCTP.Â  Is that something that is a reasonable goal?</li>
    </ul>
    <p>3.Â  Handle the case where multiple instances of the same
      application protocol reside on the same host, but on different
      ports.<br>
    </p>
    <ul>
      <li>Is this a reasonable goal?</li>
    </ul>
    <p>4.Â  No new URI schema<br>
    </p>
    <ul>
      <li>Address the 'side of the bus' problem.</li>
      <li>Is this a reasonable goal?</li>
    </ul>
    <br>
    Does this about cover it?Â  I claim we can solve all four, but not
    easily with SRV.<br>
    <br>
    Eliot<br>
  </body>
</html>

--------------090508090303080705000508--


From ietf-http-wg-request@listhub.w3.org  Tue Nov 13 07:31:23 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1519921F85E3 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 13 Nov 2012 07:31:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.042
X-Spam-Level: 
X-Spam-Status: No, score=-7.042 tagged_above=-999 required=5 tests=[AWL=3.556, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9VCzI4gBuadb for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 13 Nov 2012 07:31:19 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 72E0021F85DB for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 13 Nov 2012 07:31:18 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYIQn-00075P-Jm for ietf-http-wg-dist@listhub.w3.org; Tue, 13 Nov 2012 15:29:41 +0000
Resent-Date: Tue, 13 Nov 2012 15:29:41 +0000
Resent-Message-Id: <E1TYIQn-00075P-Jm@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <hallam@gmail.com>) id 1TYIQf-00074b-IG for ietf-http-wg@listhub.w3.org; Tue, 13 Nov 2012 15:29:33 +0000
Received: from mail-oa0-f43.google.com ([209.85.219.43]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <hallam@gmail.com>) id 1TYIQa-0008Ur-Fr for ietf-http-wg@w3.org; Tue, 13 Nov 2012 15:29:33 +0000
Received: by mail-oa0-f43.google.com with SMTP id k1so7568830oag.2 for <ietf-http-wg@w3.org>; Tue, 13 Nov 2012 07:29:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=V8NAKoK/Z4t6NTGC0WzUGxoeh3uBlr/EUnMBsBAwLW4=; b=q1PU9oKsWx5N2hWx2RdO3O8iva0vqTg5ThVI/7rgHC9WQfPev4BHSejZ5AI+LJTycP mUw2lUxXH8J1JqI1NGUeh4bTqw18w++lWlc6ZzEa+X4V7uTbgi4aIDcNk8tAN2Y0mYLq fgD+7ISMDncaGk+rxfPXIzdVPOMlJfJSTLcOQwmFdbqC/GVpYy9zIPJHuclZr9UWgbVP L26PPFZ6Y5pgX0x+6BI/hcs1PTLWGrY0OdhMq3Kpid5O5kz5tWritS48b3CDln+IZr3P BSB3DI65w/k6OqVRE7r5gWTGvD3ng4Xs3hE7FpYwGsYSbC6yaDdcD1yUmTqr7Hkhjs09 pVWw==
MIME-Version: 1.0
Received: by 10.60.170.9 with SMTP id ai9mr16980245oec.36.1352820542325; Tue, 13 Nov 2012 07:29:02 -0800 (PST)
Received: by 10.76.27.103 with HTTP; Tue, 13 Nov 2012 07:29:02 -0800 (PST)
In-Reply-To: <50A26226.10906@cisco.com>
References: <50A26226.10906@cisco.com>
Date: Tue, 13 Nov 2012 10:29:02 -0500
Message-ID: <CAMm+LwgO6OFKWAtCxe8-aJOwH4EWMYc-w9D6Jnb+jV_zLXr34Q@mail.gmail.com>
From: Phillip Hallam-Baker <hallam@gmail.com>
To: Eliot Lear <lear@cisco.com>
Cc: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=bcaec54a3e02dec32804ce6213e0
Received-SPF: pass client-ip=209.85.219.43; envelope-from=hallam@gmail.com; helo=mail-oa0-f43.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.680, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TYIQa-0008Ur-Fr d1f17904e5314a809da0b36f61651df5
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/CAMm+LwgO6OFKWAtCxe8-aJOwH4EWMYc-w9D6Jnb+jV_zLXr34Q@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15588
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--bcaec54a3e02dec32804ce6213e0
Content-Type: text/plain; charset=ISO-8859-1

I think the main argument for using a DNS record (which I am less fussed
about) is the complexity issue.

Yes we can keep finding per-protocol hacks to describe upgrade mechanisms.
But they mean that every HTTP/2.0 will always have to rely on having a
HTTP/1.1 implementation around to bootstrap from. So HTTP/2.0 cannot do
anything to reduce the complexity of the protocol implementation, it has to
be additions, nothing taken away.

Putting the information in the DNS means that we can move towards a
situation where all Internet application protocol servers follow the same
basic pattern on startup or a configuration change:

1) Read the configuration data
2) Communicate the data to a 'service announcement' service
3) Service announcement service configures local network to provide
support, including configuring the DNS, firewalls etc.
4) Periodically tell the service announcement service that the server is
still alive

Put SSL certificates in that configuration mechanism and DANE or something
DANE-like for security policy advertisement becomes practical.


Now the authoritative mechanism by which the service advertises the service
characteristics should be DNS, but that does not mean that the mechanism by
which the client obtains that information has to be the DNS client-resolver
protocol. It has to be a trusted protocol certainly, but it seems rather
silly that in 2012 we still have a situation where my web browser relies on
the DNS server provided by Panera rather than one that I choose and trust.




On Tue, Nov 13, 2012 at 10:07 AM, Eliot Lear <lear@cisco.com> wrote:

>  As I promised last week, I've substantially developed a draft (and some
> code) to look more closely at whether a DNS record can be helpful.  Before
> I get it out there, I wanted to check goals.  The situation is this: there
> is a 2.0-enabled client and it must determine whether or not the other end
> can speak 2.0.  Gabriel and Willy have already shown us that it can be done
> INSIDE the protocol at the expense of one roundtrip, but at the risk of a
> proxy doing the wrong thing (a classic case being that it allows an
> Upgrade: header but then barfs all over the upgrade).  So let's state our
> goals:
>
> 1.  Keep latency down.
>
>    - First, is this a reasonable goal?
>    - Can it reasonably be done better than what Willy & Gabriel have laid
>    out?
>
> 2.  Transport Protocol Discovery
>
>    - Some have suggested that it would be useful to do HTTP over UDP or
>    SCTP.  Is that something that is a reasonable goal?
>
> 3.  Handle the case where multiple instances of the same application
> protocol reside on the same host, but on different ports.
>
>    - Is this a reasonable goal?
>
> 4.  No new URI schema
>
>    - Address the 'side of the bus' problem.
>    - Is this a reasonable goal?
>
>
> Does this about cover it?  I claim we can solve all four, but not easily
> with SRV.
>
> Eliot
>



-- 
Website: http://hallambaker.com/

--bcaec54a3e02dec32804ce6213e0
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I think the main argument for using a DNS record (which I am less fussed ab=
out) is the complexity issue.<div><br></div><div>Yes we can keep finding pe=
r-protocol hacks to describe upgrade mechanisms. But they mean that every H=
TTP/2.0 will always have to rely on having a HTTP/1.1 implementation around=
 to bootstrap from. So HTTP/2.0 cannot do anything to reduce the complexity=
 of the protocol implementation, it has to be additions, nothing taken away=
.</div>
<div><br></div><div>Putting the information in the DNS means that we can mo=
ve towards a situation where all Internet application protocol servers foll=
ow the same basic pattern on startup or a configuration change:</div><div>
<br></div><div>1) Read the configuration data</div><div>2) Communicate the =
data to a &#39;service announcement&#39; service</div><div>3) Service annou=
ncement service configures local network to provide support, including conf=
iguring the DNS, firewalls etc.</div>
<div>4) Periodically tell the service announcement service that the server =
is still alive</div><div><br></div><div>Put SSL certificates in that config=
uration mechanism and DANE or something DANE-like for security policy adver=
tisement becomes practical.</div>
<div><br></div><div><br></div><div>Now the authoritative mechanism by which=
 the service advertises the service characteristics should be DNS, but that=
 does not mean that the mechanism by which the client obtains that informat=
ion has to be the DNS client-resolver protocol. It has to be a trusted prot=
ocol certainly, but it seems rather silly that in 2012 we still have a situ=
ation where my web browser relies on the DNS server provided by Panera rath=
er than one that I choose and trust.</div>
<div><br></div><div><br></div><div class=3D"gmail_extra"><br><br><div class=
=3D"gmail_quote">On Tue, Nov 13, 2012 at 10:07 AM, Eliot Lear <span dir=3D"=
ltr">&lt;<a href=3D"mailto:lear@cisco.com" target=3D"_blank">lear@cisco.com=
</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
 =20

   =20
 =20
  <div bgcolor=3D"#FFFFFF" text=3D"#000000">
    As I promised last week, I&#39;ve substantially developed a draft (and
    some code) to look more closely at whether a DNS record can be
    helpful.=A0 Before I get it out there, I wanted to check goals.=A0 The
    situation is this: there is a 2.0-enabled client and it must
    determine whether or not the other end can speak 2.0.=A0 Gabriel and
    Willy have already shown us that it can be done INSIDE the protocol
    at the expense of one roundtrip, but at the risk of a proxy doing
    the wrong thing (a classic case being that it allows an Upgrade:
    header but then barfs all over the upgrade).=A0 So let&#39;s state our
    goals:<br>
    <br>
    1.=A0 Keep latency down.<br>
    <ul>
      <li>First, is this a reasonable goal?</li>
      <li>Can it reasonably be done better than what Willy &amp; Gabriel
        have laid out?</li>
    </ul>
    2.=A0 Transport Protocol Discovery<br>
    <ul>
      <li>Some have suggested that it would be useful to do HTTP over
        UDP or SCTP.=A0 Is that something that is a reasonable goal?</li>
    </ul>
    <p>3.=A0 Handle the case where multiple instances of the same
      application protocol reside on the same host, but on different
      ports.<br>
    </p>
    <ul>
      <li>Is this a reasonable goal?</li>
    </ul>
    <p>4.=A0 No new URI schema<br>
    </p>
    <ul>
      <li>Address the &#39;side of the bus&#39; problem.</li>
      <li>Is this a reasonable goal?</li>
    </ul>
    <br>
    Does this about cover it?=A0 I claim we can solve all four, but not
    easily with SRV.<span class=3D"HOEnZb"><font color=3D"#888888"><br>
    <br>
    Eliot<br>
  </font></span></div>

</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>Website: <a =
href=3D"http://hallambaker.com/">http://hallambaker.com/</a><br><br>
</div>

--bcaec54a3e02dec32804ce6213e0--


From ietf-http-wg-request@listhub.w3.org  Tue Nov 13 07:45:20 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D2A9821F8481 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 13 Nov 2012 07:45:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.851
X-Spam-Level: 
X-Spam-Status: No, score=-6.851 tagged_above=-999 required=5 tests=[AWL=3.747, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HACNQuVgImjn for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 13 Nov 2012 07:45:19 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id CECBD21F8475 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 13 Nov 2012 07:45:18 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYIec-0006w9-Vl for ietf-http-wg-dist@listhub.w3.org; Tue, 13 Nov 2012 15:43:59 +0000
Resent-Date: Tue, 13 Nov 2012 15:43:58 +0000
Resent-Message-Id: <E1TYIec-0006w9-Vl@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1TYIeU-0006uv-MS for ietf-http-wg@listhub.w3.org; Tue, 13 Nov 2012 15:43:50 +0000
Received: from mail-ie0-f171.google.com ([209.85.223.171]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1TYIeL-0000rW-Iz for ietf-http-wg@w3.org; Tue, 13 Nov 2012 15:43:48 +0000
Received: by mail-ie0-f171.google.com with SMTP id s9so11283265iec.2 for <ietf-http-wg@w3.org>; Tue, 13 Nov 2012 07:43:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=a4CWT5O0fm6Ku2LeTNtc6jrN0xiR8G38eFd3C/Dihig=; b=pK29RBKTUIk9CCGkwI1ol6zH9gvccGNRgnY7yfE09LHb5OB+kZh3jUbbynb5u5p8Am 6zXYpLl6mNah7lYvByxpcEqDeQyz30DTRhzPJcPU9KiXY97dznMNSq+KkC+aw81V20yF 0+hDKC1CHfjIt9Ua/Prer9Fkke5XgXhtuAdl4yb42pHDTCMkZtb7tGvbOv7mfVxHFesA p8jIW7oxv0AALcJ6aWxio0Ddh8FLA/sY2/mVvNXnDi0E5sniqpwcwoRY/CJ/GIwm5jYS bCyWQR9pPPIS8SuoOSjkNCMMT5E9gQymsTY+PU9krbI5LLOSQv5RRMAJm3YJ+MfF6SqU ldFA==
Received: by 10.50.187.134 with SMTP id fs6mr1180163igc.61.1352821395792; Tue, 13 Nov 2012 07:43:15 -0800 (PST)
MIME-Version: 1.0
Received: by 10.64.46.225 with HTTP; Tue, 13 Nov 2012 07:42:55 -0800 (PST)
In-Reply-To: <CAMm+LwgO6OFKWAtCxe8-aJOwH4EWMYc-w9D6Jnb+jV_zLXr34Q@mail.gmail.com>
References: <50A26226.10906@cisco.com> <CAMm+LwgO6OFKWAtCxe8-aJOwH4EWMYc-w9D6Jnb+jV_zLXr34Q@mail.gmail.com>
From: James M Snell <jasnell@gmail.com>
Date: Tue, 13 Nov 2012 07:42:55 -0800
Message-ID: <CABP7Rbe4TPx=ZYJsL4Sw7uJg14U_ekkuWAwreNntqO-5uWihXw@mail.gmail.com>
To: Phillip Hallam-Baker <hallam@gmail.com>
Cc: Eliot Lear <lear@cisco.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=14dae9340747bda2b104ce62469f
Received-SPF: pass client-ip=209.85.223.171; envelope-from=jasnell@gmail.com; helo=mail-ie0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.710, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TYIeL-0000rW-Iz 22ddde3cd9792b8c3b1ab05f9727c261
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/CABP7Rbe4TPx=ZYJsL4Sw7uJg14U_ekkuWAwreNntqO-5uWihXw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15589
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--14dae9340747bda2b104ce62469f
Content-Type: text/plain; charset=UTF-8

On Tue, Nov 13, 2012 at 7:29 AM, Phillip Hallam-Baker <hallam@gmail.com>wrote:

> I think the main argument for using a DNS record (which I am less fussed
> about) is the complexity issue.
>
> Yes we can keep finding per-protocol hacks to describe upgrade mechanisms.
> But they mean that every HTTP/2.0 will always have to rely on having a
> HTTP/1.1 implementation around to bootstrap from. So HTTP/2.0 cannot do
> anything to reduce the complexity of the protocol implementation, it has to
> be additions, nothing taken away.
>
>
Well... I've said it before but we're very much going to need a pure http/2
option here that can operate without dns or http/1... basically, just open
a port and start sending http/2 and assume it'll work... Beyond that, the
DNS approach seems to be the most reasonable, non-hacky option on the table
so far.

- James


> Putting the information in the DNS means that we can move towards a
> situation where all Internet application protocol servers follow the same
> basic pattern on startup or a configuration change:
>
> 1) Read the configuration data
> 2) Communicate the data to a 'service announcement' service
> 3) Service announcement service configures local network to provide
> support, including configuring the DNS, firewalls etc.
> 4) Periodically tell the service announcement service that the server is
> still alive
>
> Put SSL certificates in that configuration mechanism and DANE or something
> DANE-like for security policy advertisement becomes practical.
>
>
> Now the authoritative mechanism by which the service advertises the
> service characteristics should be DNS, but that does not mean that the
> mechanism by which the client obtains that information has to be the DNS
> client-resolver protocol. It has to be a trusted protocol certainly, but it
> seems rather silly that in 2012 we still have a situation where my web
> browser relies on the DNS server provided by Panera rather than one that I
> choose and trust.
>
>
>
>
> On Tue, Nov 13, 2012 at 10:07 AM, Eliot Lear <lear@cisco.com> wrote:
>
>>  As I promised last week, I've substantially developed a draft (and some
>> code) to look more closely at whether a DNS record can be helpful.  Before
>> I get it out there, I wanted to check goals.  The situation is this: there
>> is a 2.0-enabled client and it must determine whether or not the other end
>> can speak 2.0.  Gabriel and Willy have already shown us that it can be done
>> INSIDE the protocol at the expense of one roundtrip, but at the risk of a
>> proxy doing the wrong thing (a classic case being that it allows an
>> Upgrade: header but then barfs all over the upgrade).  So let's state our
>> goals:
>>
>> 1.  Keep latency down.
>>
>>    - First, is this a reasonable goal?
>>    - Can it reasonably be done better than what Willy & Gabriel have
>>    laid out?
>>
>> 2.  Transport Protocol Discovery
>>
>>    - Some have suggested that it would be useful to do HTTP over UDP or
>>    SCTP.  Is that something that is a reasonable goal?
>>
>> 3.  Handle the case where multiple instances of the same application
>> protocol reside on the same host, but on different ports.
>>
>>    - Is this a reasonable goal?
>>
>> 4.  No new URI schema
>>
>>    - Address the 'side of the bus' problem.
>>    - Is this a reasonable goal?
>>
>>
>> Does this about cover it?  I claim we can solve all four, but not easily
>> with SRV.
>>
>> Eliot
>>
>
>
>
> --
> Website: http://hallambaker.com/
>
>

--14dae9340747bda2b104ce62469f
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Tue, Nov 13, 2=
012 at 7:29 AM, Phillip Hallam-Baker <span dir=3D"ltr">&lt;<a href=3D"mailt=
o:hallam@gmail.com" target=3D"_blank">hallam@gmail.com</a>&gt;</span> wrote=
:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-le=
ft:1px #ccc solid;padding-left:1ex">

I think the main argument for using a DNS record (which I am less fussed ab=
out) is the complexity issue.<div><br></div><div>Yes we can keep finding pe=
r-protocol hacks to describe upgrade mechanisms. But they mean that every H=
TTP/2.0 will always have to rely on having a HTTP/1.1 implementation around=
 to bootstrap from. So HTTP/2.0 cannot do anything to reduce the complexity=
 of the protocol implementation, it has to be additions, nothing taken away=
.</div>


<div><br></div></blockquote><div><br></div><div>Well... I&#39;ve said it be=
fore but we&#39;re very much going to need a pure http/2 option here that c=
an operate without dns or http/1... basically, just open a port and start s=
ending http/2 and assume it&#39;ll work... Beyond that, the DNS approach se=
ems to be the most reasonable, non-hacky option on the table so far.</div>

<div><br></div><div>- James</div><div>=C2=A0</div><blockquote class=3D"gmai=
l_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left=
:1ex"><div></div><div>Putting the information in the DNS means that we can =
move towards a situation where all Internet application protocol servers fo=
llow the same basic pattern on startup or a configuration change:</div>

<div>
<br></div><div>1) Read the configuration data</div><div>2) Communicate the =
data to a &#39;service announcement&#39; service</div><div>3) Service annou=
ncement service configures local network to provide support, including conf=
iguring the DNS, firewalls etc.</div>


<div>4) Periodically tell the service announcement service that the server =
is still alive</div><div><br></div><div>Put SSL certificates in that config=
uration mechanism and DANE or something DANE-like for security policy adver=
tisement becomes practical.</div>


<div><br></div><div><br></div><div>Now the authoritative mechanism by which=
 the service advertises the service characteristics should be DNS, but that=
 does not mean that the mechanism by which the client obtains that informat=
ion has to be the DNS client-resolver protocol. It has to be a trusted prot=
ocol certainly, but it seems rather silly that in 2012 we still have a situ=
ation where my web browser relies on the DNS server provided by Panera rath=
er than one that I choose and trust.</div>


<div><br></div><div><br></div><div class=3D"gmail_extra"><div><div class=3D=
"h5"><br><br><div class=3D"gmail_quote">On Tue, Nov 13, 2012 at 10:07 AM, E=
liot Lear <span dir=3D"ltr">&lt;<a href=3D"mailto:lear@cisco.com" target=3D=
"_blank">lear@cisco.com</a>&gt;</span> wrote:<br>


<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
 =20

   =20
 =20
  <div bgcolor=3D"#FFFFFF" text=3D"#000000">
    As I promised last week, I&#39;ve substantially developed a draft (and
    some code) to look more closely at whether a DNS record can be
    helpful.=C2=A0 Before I get it out there, I wanted to check goals.=C2=
=A0 The
    situation is this: there is a 2.0-enabled client and it must
    determine whether or not the other end can speak 2.0.=C2=A0 Gabriel and
    Willy have already shown us that it can be done INSIDE the protocol
    at the expense of one roundtrip, but at the risk of a proxy doing
    the wrong thing (a classic case being that it allows an Upgrade:
    header but then barfs all over the upgrade).=C2=A0 So let&#39;s state o=
ur
    goals:<br>
    <br>
    1.=C2=A0 Keep latency down.<br>
    <ul>
      <li>First, is this a reasonable goal?</li>
      <li>Can it reasonably be done better than what Willy &amp; Gabriel
        have laid out?</li>
    </ul>
    2.=C2=A0 Transport Protocol Discovery<br>
    <ul>
      <li>Some have suggested that it would be useful to do HTTP over
        UDP or SCTP.=C2=A0 Is that something that is a reasonable goal?</li=
>
    </ul>
    <p>3.=C2=A0 Handle the case where multiple instances of the same
      application protocol reside on the same host, but on different
      ports.<br>
    </p>
    <ul>
      <li>Is this a reasonable goal?</li>
    </ul>
    <p>4.=C2=A0 No new URI schema<br>
    </p>
    <ul>
      <li>Address the &#39;side of the bus&#39; problem.</li>
      <li>Is this a reasonable goal?</li>
    </ul>
    <br>
    Does this about cover it?=C2=A0 I claim we can solve all four, but not
    easily with SRV.<span><font color=3D"#888888"><br>
    <br>
    Eliot<br>
  </font></span></div>

</blockquote></div><br><br clear=3D"all"><div><br></div></div></div><span c=
lass=3D"HOEnZb"><font color=3D"#888888">-- <br>Website: <a href=3D"http://h=
allambaker.com/" target=3D"_blank">http://hallambaker.com/</a><br><br>
</font></span></div>
</blockquote></div><br></div>

--14dae9340747bda2b104ce62469f--


From ietf-http-wg-request@listhub.w3.org  Tue Nov 13 08:16:27 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0E53421F8701 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 13 Nov 2012 08:16:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.594
X-Spam-Level: 
X-Spam-Status: No, score=-10.594 tagged_above=-999 required=5 tests=[AWL=0.005, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nlzEt80j0vjm for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 13 Nov 2012 08:16:26 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id E3DD921F86A8 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 13 Nov 2012 08:16:24 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYJ2j-0005WJ-0w for ietf-http-wg-dist@listhub.w3.org; Tue, 13 Nov 2012 16:08:53 +0000
Resent-Date: Tue, 13 Nov 2012 16:08:53 +0000
Resent-Message-Id: <E1TYJ2j-0005WJ-0w@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <lear@cisco.com>) id 1TYJ2Z-0005Rc-Ux for ietf-http-wg@listhub.w3.org; Tue, 13 Nov 2012 16:08:43 +0000
Received: from ams-iport-2.cisco.com ([144.254.224.141]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <lear@cisco.com>) id 1TYJ2A-0004fS-MC for ietf-http-wg@w3.org; Tue, 13 Nov 2012 16:08:43 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=262; q=dns/txt; s=iport; t=1352822898; x=1354032498; h=message-id:date:from:mime-version:to:cc:subject: references:in-reply-to:content-transfer-encoding; bh=g85X1F1SInzV8YEXTjGJ6KbksLTC2PHVDhhYd5l7NWs=; b=Z0x+b6++HvzEhKZcEeonDD+92zVUJ4LQ2R4lcXn+LG9itTy20YMw7UcL +wro0P1q3hc20+FNVaME+RhRXUdjTUHlQHGskQqngfm+yAQdV2URL3a3K QrDc90Nw4NKyQfB0sKy8JrHxFbVNcUjPt33l6R02/SzEAGFM1mLgw1d97 E=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AloJAMRsolCQ/khM/2dsb2JhbABEhhqIG7QxBAR/gQiCHwEBBBIBEFYQCxoCBSECAg8CRgYNAQcBAR6HaJobjSiCPZAygSKLHIUtgRMDlXyOWIFrgnCBWiA
X-IronPort-AV: E=McAfee;i="5400,1158,6894"; a="78198932"
Received: from ams-core-3.cisco.com ([144.254.72.76]) by ams-iport-2.cisco.com with ESMTP; 13 Nov 2012 16:07:40 +0000
Received: from dhcp-10-55-89-131.cisco.com (dhcp-10-55-89-131.cisco.com [10.55.89.131]) by ams-core-3.cisco.com (8.14.5/8.14.5) with ESMTP id qADG7dMB016536 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 13 Nov 2012 16:07:40 GMT
Message-ID: <50A27048.30100@cisco.com>
Date: Tue, 13 Nov 2012 17:07:36 +0100
From: Eliot Lear <lear@cisco.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: James M Snell <jasnell@gmail.com>
CC: Phillip Hallam-Baker <hallam@gmail.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
References: <50A26226.10906@cisco.com> <CAMm+LwgO6OFKWAtCxe8-aJOwH4EWMYc-w9D6Jnb+jV_zLXr34Q@mail.gmail.com> <CABP7Rbe4TPx=ZYJsL4Sw7uJg14U_ekkuWAwreNntqO-5uWihXw@mail.gmail.com>
In-Reply-To: <CABP7Rbe4TPx=ZYJsL4Sw7uJg14U_ekkuWAwreNntqO-5uWihXw@mail.gmail.com>
X-Enigmail-Version: 1.4.5
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=144.254.224.141; envelope-from=lear@cisco.com; helo=ams-iport-2.cisco.com
X-W3C-Hub-Spam-Status: No, score=-13.3
X-W3C-Hub-Spam-Report: AWL=-0.502, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.23, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5
X-W3C-Scan-Sig: maggie.w3.org 1TYJ2A-0004fS-MC 2011b266c1ce79096da50fa8a49bb891
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/50A27048.30100@cisco.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15590
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

James,

The question I asked isn't whether or not to use DNS, but what the
requirements for a record would be.  From Phil I gather that limited
complexity is a goal (we will of course argue what that means).  What
are your goals for a DNS record?

Eliot



From ietf-http-wg-request@listhub.w3.org  Tue Nov 13 08:35:32 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AA10621F8447 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 13 Nov 2012 08:35:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.265
X-Spam-Level: 
X-Spam-Status: No, score=-7.265 tagged_above=-999 required=5 tests=[AWL=3.333, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ug8DYueI2PW4 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 13 Nov 2012 08:35:28 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 09AEF21F8428 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 13 Nov 2012 08:35:27 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYJKz-0000wj-Q1 for ietf-http-wg-dist@listhub.w3.org; Tue, 13 Nov 2012 16:27:45 +0000
Resent-Date: Tue, 13 Nov 2012 16:27:45 +0000
Resent-Message-Id: <E1TYJKz-0000wj-Q1@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <hallam@gmail.com>) id 1TYJKq-0000v1-EC for ietf-http-wg@listhub.w3.org; Tue, 13 Nov 2012 16:27:36 +0000
Received: from mail-ob0-f171.google.com ([209.85.214.171]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <hallam@gmail.com>) id 1TYJKe-0005gi-RF for ietf-http-wg@w3.org; Tue, 13 Nov 2012 16:27:36 +0000
Received: by mail-ob0-f171.google.com with SMTP id dn14so2123320obc.2 for <ietf-http-wg@w3.org>; Tue, 13 Nov 2012 08:26:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=d83XImSL4j/eSoBlqtdZCv55hTdssAIA6f8gy6ydIkA=; b=TzH7LLse1lLRyEMLhsbr5FVCTJp8yd1zHjeJ5JPybcClld8vmNGE6ZmCFH6ZbFEy1o hgewoBG8xgeCdoEFCknS/CI5MNouZQbAuoD0px8rx0oE1i0YbOWIuLFzbCI3S8u9YYJt 66/slRXiyk3yVQMJ6LyNQrg8k+0JgK3xojOfrny0sKw90uGyhnpElOEkYJTxDOSCcUYW YF84tHKjz/4wouyrCLY1DcC0UVPsSxBCNObGz2cY6O8jUzaaGg40PHi48W9Ri3BlE4D0 ZD9zVRRs0H5JxAmxc+XgbvBjYBztatSgl6arV+01EjgZeBrcWZvHXPumhjd/vaPJrCgC Th1w==
MIME-Version: 1.0
Received: by 10.60.170.9 with SMTP id ai9mr17135152oec.36.1352824015376; Tue, 13 Nov 2012 08:26:55 -0800 (PST)
Received: by 10.76.27.103 with HTTP; Tue, 13 Nov 2012 08:26:55 -0800 (PST)
In-Reply-To: <50A27048.30100@cisco.com>
References: <50A26226.10906@cisco.com> <CAMm+LwgO6OFKWAtCxe8-aJOwH4EWMYc-w9D6Jnb+jV_zLXr34Q@mail.gmail.com> <CABP7Rbe4TPx=ZYJsL4Sw7uJg14U_ekkuWAwreNntqO-5uWihXw@mail.gmail.com> <50A27048.30100@cisco.com>
Date: Tue, 13 Nov 2012 11:26:55 -0500
Message-ID: <CAMm+Lwh9mjw98C-CmU_TqYJDHEaE_7fLLpeU=q89ky34YKaOww@mail.gmail.com>
From: Phillip Hallam-Baker <hallam@gmail.com>
To: Eliot Lear <lear@cisco.com>
Cc: James M Snell <jasnell@gmail.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=bcaec54a3e02e1518a04ce62e23c
Received-SPF: pass client-ip=209.85.214.171; envelope-from=hallam@gmail.com; helo=mail-ob0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.680, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TYJKe-0005gi-RF 22d45092065ad3281754b05a7c7a5664
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/CAMm+Lwh9mjw98C-CmU_TqYJDHEaE_7fLLpeU=q89ky34YKaOww@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15591
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--bcaec54a3e02e1518a04ce62e23c
Content-Type: text/plain; charset=ISO-8859-1

I would say that the requirement for the DNS option for signalling upgrade
be that

1) It be an instance of a general mechanism that can be used to signal more
than just protocol version and more than just information to HTTP.

2) It be possible to secure the protocol version information to prevent
downgrade attacks, and upgrade attacks.


In band upgrade hacks are a one-off solution. Complexity is frequently the
result of too many one-off solutions. We do occasionally have complexity
from systems that are too general (ISAKMP, EAP, GSSAPI). But that comes
from schemes that are designed to allow people to achieve the same basic
function in an infinite variety of ways. I can't think of a case where we
have introduced too much complexity by specifying one 'right' way to
implement a function plus one or two fallback mechanisms to work-around
legacy issues.

There are also advantages to defining a DNS mechanism that are not quite
requirements. One of them being that HTTP/1.1 use of DNS is rather a mess
and this provides an opportunity to clean it up.

In particular, HTTP relies on DNS server hacks to implement load balancing
(the round robin hack). SRV is a better solution for Web, URI is a better
solution for Web Services. But neither SRV nor URI are complete in that
respect as neither addresses geographic load balancing.

I do not want to get into the issue of how to implement those features
right here and now. But I would like us to take an approach to getting out
of the HTTP version swamp that provides us with the necessary hooks to get
out of the load balancing, geography etc. swamps in the future.


HTTP/2.0 is an incompatible upgrade. When you break backwards compatibility
you should always have (1) a very good reason to do so and (2) an
explanation for why you do not expect to do so again.




On Tue, Nov 13, 2012 at 11:07 AM, Eliot Lear <lear@cisco.com> wrote:

> James,
>
> The question I asked isn't whether or not to use DNS, but what the
> requirements for a record would be.  From Phil I gather that limited
> complexity is a goal (we will of course argue what that means).  What
> are your goals for a DNS record?
>
> Eliot
>
>


-- 
Website: http://hallambaker.com/

--bcaec54a3e02e1518a04ce62e23c
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I would say that the requirement for the DNS option for signalling upgrade =
be that=A0<div><br></div><div>1) It be an instance of a general mechanism t=
hat can be used to signal more than just protocol version and more than jus=
t information to HTTP.<div>
<br></div><div>2) It be possible to secure the protocol version information=
 to prevent downgrade attacks, and upgrade attacks.</div><div><br></div><di=
v><br></div><div>In band upgrade hacks are a one-off solution. Complexity i=
s frequently the result of too many one-off solutions. We do occasionally h=
ave complexity from systems that are too general (ISAKMP, EAP, GSSAPI). But=
 that comes from schemes that are designed to allow people to achieve the s=
ame basic function in an infinite variety of ways. I can&#39;t think of a c=
ase where we have introduced too much complexity by specifying one &#39;rig=
ht&#39; way to implement a function plus one or two fallback mechanisms to =
work-around legacy issues.</div>
<div><br></div><div>There are also advantages to defining a DNS mechanism t=
hat are not quite requirements. One of them being that HTTP/1.1 use of DNS =
is rather a mess and this provides an opportunity to clean it up.</div>
<div><br></div><div>In particular, HTTP relies on DNS server hacks to imple=
ment load balancing (the round robin hack). SRV is a better solution for We=
b, URI is a better solution for Web Services. But neither SRV nor URI are c=
omplete in that respect as neither addresses geographic load balancing.=A0<=
/div>
<div><br></div><div>I do not want to get into the issue of how to implement=
 those features right here and now. But I would like us to take an approach=
 to getting out of the HTTP version swamp that provides us with the necessa=
ry hooks to get out of the load balancing, geography etc. swamps in the fut=
ure.</div>
<div><br></div><div><br></div><div>HTTP/2.0 is an incompatible upgrade. Whe=
n you break backwards compatibility you should always have (1) a very good =
reason to do so and (2) an explanation for why you do not expect to do so a=
gain.</div>
<div><br></div><div><br></div></div><div class=3D"gmail_extra"><br><br><div=
 class=3D"gmail_quote">On Tue, Nov 13, 2012 at 11:07 AM, Eliot Lear <span d=
ir=3D"ltr">&lt;<a href=3D"mailto:lear@cisco.com" target=3D"_blank">lear@cis=
co.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">James,<br>
<br>
The question I asked isn&#39;t whether or not to use DNS, but what the<br>
requirements for a record would be. =A0From Phil I gather that limited<br>
complexity is a goal (we will of course argue what that means). =A0What<br>
are your goals for a DNS record?<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
Eliot<br>
<br>
</font></span></blockquote></div><br><br clear=3D"all"><div><br></div>-- <b=
r>Website: <a href=3D"http://hallambaker.com/">http://hallambaker.com/</a><=
br><br>
</div>

--bcaec54a3e02e1518a04ce62e23c--


From ietf-http-wg-request@listhub.w3.org  Tue Nov 13 14:29:24 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7666D21F878B for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 13 Nov 2012 14:29:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.728
X-Spam-Level: 
X-Spam-Status: No, score=-9.728 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8, SARE_MLH_Stock1=0.87]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id z-vB8PsJ8K9p for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 13 Nov 2012 14:29:23 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id C460F21F8787 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 13 Nov 2012 14:29:23 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYOx0-00051w-Hp for ietf-http-wg-dist@listhub.w3.org; Tue, 13 Nov 2012 22:27:22 +0000
Resent-Date: Tue, 13 Nov 2012 22:27:22 +0000
Resent-Message-Id: <E1TYOx0-00051w-Hp@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <sludin@akamai.com>) id 1TYOwt-000518-0k for ietf-http-wg@listhub.w3.org; Tue, 13 Nov 2012 22:27:15 +0000
Received: from prod-mail-xrelay02.akamai.com ([72.246.2.14]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <sludin@akamai.com>) id 1TYOwr-0002em-Ua for ietf-http-wg@w3.org; Tue, 13 Nov 2012 22:27:14 +0000
Received: from prod-mail-xrelay02.akamai.com (localhost [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id D813927DF0; Tue, 13 Nov 2012 22:26:47 +0000 (GMT)
Received: from prod-mail-relay02.akamai.com (prod-mail-relay02.akamai.com [172.17.50.21]) by prod-mail-xrelay02.akamai.com (Postfix) with ESMTP id BFDD827D8F; Tue, 13 Nov 2012 22:26:47 +0000 (GMT)
Received: from ustx2ex-cashub.dfw01.corp.akamai.com (ustx2ex-cashub1.dfw01.corp.akamai.com [172.27.33.75]) by prod-mail-relay02.akamai.com (Postfix) with ESMTP id 804FDFE078; Tue, 13 Nov 2012 22:26:47 +0000 (GMT)
Received: from USMBX2.msg.corp.akamai.com ([169.254.1.93]) by ustx2ex-cashub1.dfw01.corp.akamai.com ([172.27.33.75]) with mapi; Tue, 13 Nov 2012 16:26:46 -0600
From: "Ludin, Stephen" <sludin@akamai.com>
To: Ilya Grigorik <ilya@igvita.com>, John Kemp <john@jkemp.net>
CC: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Date: Tue, 13 Nov 2012 16:26:34 -0600
Thread-Topic: RFC: draft-brown-device-stock-ua-00.txt
Thread-Index: Ac3B7fckvUGESTu5RTu/+Xr67pJ8Vg==
Message-ID: <CCC806C7.6A1AD%sludin@akamai.com>
In-Reply-To: <CAKRe7JF16sMUkT7HVvwfLPWXeWgdE0UR12aUWxkFeuYuDys4Kw@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/14.2.4.120824
acceptlanguage: en-US
Content-Type: multipart/alternative; boundary="_000_CCC806C76A1ADsludinakamaicom_"
MIME-Version: 1.0
Received-SPF: none client-ip=72.246.2.14; envelope-from=sludin@akamai.com; helo=prod-mail-xrelay02.akamai.com
X-W3C-Hub-Spam-Status: No, score=-2.5
X-W3C-Hub-Spam-Report: HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.23
X-W3C-Scan-Sig: lisa.w3.org 1TYOwr-0002em-Ua 2647ff762944f89252de2628ecf8d6ca
X-Original-To: ietf-http-wg@w3.org
Subject: Re: RFC: draft-brown-device-stock-ua-00.txt
Archived-At: <http://www.w3.org/mid/CCC806C7.6A1AD%25sludin@akamai.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15592
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--_000_CCC806C76A1ADsludinakamaicom_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

As an intermediary/surrogate, this makes a lot of sense.  I can see the spe=
cific behavior required being very situational.

The combination of client-hints and browser-hits seems extremely powerful a=
nd removes a lot of the guesswork that we have all adapted to.  In your pro=
posal you mention the possibility of having a "well defined list of variabl=
e."  I think this is particularly important.  Best practice for extending t=
hese variable could leverage existing practices for HTTP headers or perhaps=
 javascript API calls.

Compression of this header (ideally in the context of general HTTP/2.0 head=
er compression) is vital for adoption, especially in the mobile context whe=
re every byte matters.

-stephen

From: Ilya Grigorik <ilya@igvita.com<mailto:ilya@igvita.com>>
Date: Friday, November 9, 2012 12:32 PM
To: John Kemp <john@jkemp.net<mailto:john@jkemp.net>>
Cc: "ietf-http-wg@w3.org<mailto:ietf-http-wg@w3.org>" <ietf-http-wg@w3.org<=
mailto:ietf-http-wg@w3.org>>
Subject: Re: RFC: draft-brown-device-stock-ua-00.txt
Resent-From: <ietf-http-wg@w3.org<mailto:ietf-http-wg@w3.org>>
Resent-Date: Friday, November 9, 2012 12:33 PM



On Fri, Nov 9, 2012 at 11:33 AM, John Kemp <john@jkemp.net<mailto:john@jkem=
p.net>> wrote:
One question - what happens in the presence of an intermediary? SHOULD an i=
ntermediary pass on the Client-hints HTTP header, if sent by a client?

Yes. If the intermediary is the doing the adaptation based on the hint, the=
n theoretically it could drop the header when forwarding the request (but m=
ore likely, just pass it along).

ig

--_000_CCC806C76A1ADsludinakamaicom_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html><head></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode:=
 space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-si=
ze: 14px; font-family: Calibri, sans-serif; "><div>As an intermediary/surro=
gate, this makes a lot of sense. &nbsp;I can see the specific behavior requ=
ired being very situational. &nbsp;</div><div><br></div><div>The combinatio=
n of client-hints and browser-hits seems extremely powerful and removes a l=
ot of the guesswork that we have all adapted to. &nbsp;In your proposal you=
 mention the possibility of having a "well defined list of variable." &nbsp=
;I think this is particularly important. &nbsp;Best practice for extending =
these variable could leverage existing practices for HTTP headers or perhap=
s javascript API calls.&nbsp;</div><div><br></div><div>Compression of this =
header (ideally in the context of general HTTP/2.0 header compression) is v=
ital for adoption, especially in the mobile context where every byte matter=
s.&nbsp;</div><div><br></div><div>-stephen</div><div><br></div><span id=3D"=
OLK_SRC_BODY_SECTION"><div style=3D"font-family:Calibri; font-size:11pt; te=
xt-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium=
 none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-T=
OP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span s=
tyle=3D"font-weight:bold">From: </span> Ilya Grigorik &lt;<a href=3D"mailto=
:ilya@igvita.com">ilya@igvita.com</a>&gt;<br><span style=3D"font-weight:bol=
d">Date: </span> Friday, November 9, 2012 12:32 PM<br><span style=3D"font-w=
eight:bold">To: </span> John Kemp &lt;<a href=3D"mailto:john@jkemp.net">joh=
n@jkemp.net</a>&gt;<br><span style=3D"font-weight:bold">Cc: </span> "<a hre=
f=3D"mailto:ietf-http-wg@w3.org">ietf-http-wg@w3.org</a>" &lt;<a href=3D"ma=
ilto:ietf-http-wg@w3.org">ietf-http-wg@w3.org</a>&gt;<br><span style=3D"fon=
t-weight:bold">Subject: </span> Re: RFC: draft-brown-device-stock-ua-00.txt=
<br><span style=3D"font-weight:bold">Resent-From: </span> &lt;<a href=3D"ma=
ilto:ietf-http-wg@w3.org">ietf-http-wg@w3.org</a>&gt;<br><span style=3D"fon=
t-weight:bold">Resent-Date: </span> Friday, November 9, 2012 12:33 PM<br></=
div><div><br></div><blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" st=
yle=3D"BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div=
><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8"><=
div><br><br><div class=3D"gmail_quote">On Fri, Nov 9, 2012 at 11:33 AM, Joh=
n Kemp <span dir=3D"ltr">
&lt;<a href=3D"mailto:john@jkemp.net" target=3D"_blank">john@jkemp.net</a>&=
gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 =
0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
One question - what happens in the presence of an intermediary? SHOULD an i=
ntermediary pass on the Client-hints HTTP header, if sent by a client?</blo=
ckquote><div><br></div><div>Yes. If the intermediary is the doing the adapt=
ation based on the hint, then theoretically it could drop the header when f=
orwarding the request (but more likely, just pass it along).</div><div><br>=
</div><div>ig</div></div></div></div></blockquote></span></body></html>

--_000_CCC806C76A1ADsludinakamaicom_--


From ietf-http-wg-request@listhub.w3.org  Tue Nov 13 16:11:21 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C191B21F8481 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 13 Nov 2012 16:11:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.425
X-Spam-Level: 
X-Spam-Status: No, score=-10.425 tagged_above=-999 required=5 tests=[AWL=0.174, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uL8nPxAYwvrN for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 13 Nov 2012 16:11:21 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id CEB5C21F8477 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 13 Nov 2012 16:11:20 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYQXr-0007Hc-5R for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 00:09:31 +0000
Resent-Date: Wed, 14 Nov 2012 00:09:31 +0000
Resent-Message-Id: <E1TYQXr-0007Hc-5R@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1TYQXl-0007GK-2W for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 00:09:25 +0000
Received: from ip-58-28-153-233.static-xdsl.xnet.co.nz ([58.28.153.233] helo=treenet.co.nz) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1TYQXj-0008HV-OW for ietf-http-wg@w3.org; Wed, 14 Nov 2012 00:09:25 +0000
Received: by treenet.co.nz (Postfix, from userid 33) id 26843E7836; Wed, 14 Nov 2012 13:08:56 +1300 (NZDT)
To: <ietf-http-wg@w3.org>
X-PHP-Originating-Script: 0:main.inc
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Date: Wed, 14 Nov 2012 13:08:55 +1300
From: Amos Jeffries <squid3@treenet.co.nz>
In-Reply-To: <CAMm+Lwh9mjw98C-CmU_TqYJDHEaE_7fLLpeU=q89ky34YKaOww@mail.gmail.com>
References: <50A26226.10906@cisco.com> <CAMm+LwgO6OFKWAtCxe8-aJOwH4EWMYc-w9D6Jnb+jV_zLXr34Q@mail.gmail.com> <CABP7Rbe4TPx=ZYJsL4Sw7uJg14U_ekkuWAwreNntqO-5uWihXw@mail.gmail.com> <50A27048.30100@cisco.com> <CAMm+Lwh9mjw98C-CmU_TqYJDHEaE_7fLLpeU=q89ky34YKaOww@mail.gmail.com>
Message-ID: <8134fb8363c1baf7aa90bd6eff9a2652@treenet.co.nz>
X-Sender: squid3@treenet.co.nz
User-Agent: Roundcube Webmail/0.7.2
Received-SPF: pass client-ip=58.28.153.233; envelope-from=squid3@treenet.co.nz; helo=treenet.co.nz
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-3.449, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TYQXj-0008HV-OW 5cf2cf5645be6c2a5ce42ba517a96273
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/8134fb8363c1baf7aa90bd6eff9a2652@treenet.co.nz>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15593
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 14.11.2012 05:26, Phillip Hallam-Baker wrote:
> I would say that the requirement for the DNS option for signalling 
> upgrade
> be that
>
> 1) It be an instance of a general mechanism that can be used to 
> signal more
> than just protocol version and more than just information to HTTP.
>
> 2) It be possible to secure the protocol version information to 
> prevent
> downgrade attacks, and upgrade attacks.
>
>
> In band upgrade hacks are a one-off solution. Complexity is 
> frequently the
> result of too many one-off solutions. We do occasionally have 
> complexity
> from systems that are too general (ISAKMP, EAP, GSSAPI). But that 
> comes
> from schemes that are designed to allow people to achieve the same 
> basic
> function in an infinite variety of ways. I can't think of a case 
> where we
> have introduced too much complexity by specifying one 'right' way to
> implement a function plus one or two fallback mechanisms to 
> work-around
> legacy issues.
>
> There are also advantages to defining a DNS mechanism that are not 
> quite
> requirements. One of them being that HTTP/1.1 use of DNS is rather a 
> mess
> and this provides an opportunity to clean it up.
>
> In particular, HTTP relies on DNS server hacks to implement load 
> balancing
> (the round robin hack).

I was always of the impression that round-robin was a designed feature 
of DNS, not a hack created by HTTP. Maybe I'm missing something but 
don't all other name-based protocols also use DNS round-robin for load 
balancing?


> SRV is a better solution for Web, URI is a better
> solution for Web Services. But neither SRV nor URI are complete in 
> that
> respect as neither addresses geographic load balancing.
>

I'd like to see an implementation of round-robin operating within the 
text of a SRV record.


> I do not want to get into the issue of how to implement those 
> features
> right here and now. But I would like us to take an approach to 
> getting out
> of the HTTP version swamp that provides us with the necessary hooks 
> to get
> out of the load balancing, geography etc. swamps in the future.
>


One could as easily mandate that HTTP implementations perform 
round-robin (or not) on the set of DNS IP results as on the set of SRV 
results. So the above example of "hack" problems appears to be 
irrelevant.


>
> HTTP/2.0 is an incompatible upgrade. When you break backwards 
> compatibility
> you should always have (1) a very good reason to do so and (2) an
> explanation for why you do not expect to do so again.
>

Is it? that would be violating the charter requirement that is be 
semantically compatible with HTTP/1.x and fully capable of 2.0->1.1 
gateway translation.

Amos


From ietf-http-wg-request@listhub.w3.org  Tue Nov 13 17:32:50 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8B23621F85D1 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 13 Nov 2012 17:32:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.461
X-Spam-Level: 
X-Spam-Status: No, score=-7.461 tagged_above=-999 required=5 tests=[AWL=3.137, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jXO0jF4SNUbZ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 13 Nov 2012 17:32:49 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 3564821F85C9 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 13 Nov 2012 17:32:48 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYRoW-0001BG-Bd for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 01:30:48 +0000
Resent-Date: Wed, 14 Nov 2012 01:30:48 +0000
Resent-Message-Id: <E1TYRoW-0001BG-Bd@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <hallam@gmail.com>) id 1TYRoG-00019P-OD for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 01:30:32 +0000
Received: from mail-oa0-f43.google.com ([209.85.219.43]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <hallam@gmail.com>) id 1TYRoF-0005tU-Kk for ietf-http-wg@w3.org; Wed, 14 Nov 2012 01:30:32 +0000
Received: by mail-oa0-f43.google.com with SMTP id k1so8220831oag.2 for <ietf-http-wg@w3.org>; Tue, 13 Nov 2012 17:30:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=3q3ngageApFRhAqlyFYHnIExEt+FUq8RVMm5Ux+Oy8U=; b=TLY/sPwLm5MxzifZFV5FhgzxljDHZtSb6g3p/h4gbMpXF0R00/VL9LO7gDo53oOpOp TBbaS274KkR/4N9vmi8eu93pwNqaT6lyT4twjwUA1KtS36k/w7Dq3D22iDpVKzNCRP6i EnxidlYbMTutD68qhJs45jDN+G2tfIwNr19o64J/cTTHpND6vPEpRvlsxnTiEPFxh66+ +OsWMHtnGJDF60O1YYUJv0MZB3KEHU6gT+gztwCSsAdcbCPJQf1hdU7/Bd1DueAQVSMv fyDYxdiM0d3q3tNWHZIip2EFPdeMr2bz/o8WrN8BWS2hMQYXK4DOyZb4+tFLf6kfqJPH +AKA==
MIME-Version: 1.0
Received: by 10.182.95.205 with SMTP id dm13mr19940401obb.9.1352856605806; Tue, 13 Nov 2012 17:30:05 -0800 (PST)
Received: by 10.76.27.103 with HTTP; Tue, 13 Nov 2012 17:30:05 -0800 (PST)
In-Reply-To: <8134fb8363c1baf7aa90bd6eff9a2652@treenet.co.nz>
References: <50A26226.10906@cisco.com> <CAMm+LwgO6OFKWAtCxe8-aJOwH4EWMYc-w9D6Jnb+jV_zLXr34Q@mail.gmail.com> <CABP7Rbe4TPx=ZYJsL4Sw7uJg14U_ekkuWAwreNntqO-5uWihXw@mail.gmail.com> <50A27048.30100@cisco.com> <CAMm+Lwh9mjw98C-CmU_TqYJDHEaE_7fLLpeU=q89ky34YKaOww@mail.gmail.com> <8134fb8363c1baf7aa90bd6eff9a2652@treenet.co.nz>
Date: Tue, 13 Nov 2012 20:30:05 -0500
Message-ID: <CAMm+LwhiigPnAwG+dANru9X-qz_OPJvBEBGj+BwBf6b6hhA2Ew@mail.gmail.com>
From: Phillip Hallam-Baker <hallam@gmail.com>
To: Amos Jeffries <squid3@treenet.co.nz>
Cc: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=14dae93b63206bd16d04ce6a7982
Received-SPF: pass client-ip=209.85.219.43; envelope-from=hallam@gmail.com; helo=mail-oa0-f43.google.com
X-W3C-Hub-Spam-Status: No, score=-3.0
X-W3C-Hub-Spam-Report: AWL=-2.234, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TYRoF-0005tU-Kk 5e2e634cafa237a3828cfc362d7911a3
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/CAMm+LwhiigPnAwG+dANru9X-qz_OPJvBEBGj+BwBf6b6hhA2Ew@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15594
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--14dae93b63206bd16d04ce6a7982
Content-Type: text/plain; charset=ISO-8859-1

On Tue, Nov 13, 2012 at 7:08 PM, Amos Jeffries <squid3@treenet.co.nz> wrote:

> On 14.11.2012 05:26, Phillip Hallam-Baker wrote:
>
>> I would say that the requirement for the DNS option for signalling upgrade
>> be that
>>
>> 1) It be an instance of a general mechanism that can be used to signal
>> more
>> than just protocol version and more than just information to HTTP.
>>
>> 2) It be possible to secure the protocol version information to prevent
>> downgrade attacks, and upgrade attacks.
>>
>>
>> In band upgrade hacks are a one-off solution. Complexity is frequently the
>> result of too many one-off solutions. We do occasionally have complexity
>> from systems that are too general (ISAKMP, EAP, GSSAPI). But that comes
>> from schemes that are designed to allow people to achieve the same basic
>> function in an infinite variety of ways. I can't think of a case where we
>> have introduced too much complexity by specifying one 'right' way to
>> implement a function plus one or two fallback mechanisms to work-around
>> legacy issues.
>>
>> There are also advantages to defining a DNS mechanism that are not quite
>> requirements. One of them being that HTTP/1.1 use of DNS is rather a mess
>> and this provides an opportunity to clean it up.
>>
>> In particular, HTTP relies on DNS server hacks to implement load balancing
>> (the round robin hack).
>>
>
> I was always of the impression that round-robin was a designed feature of
> DNS, not a hack created by HTTP. Maybe I'm missing something but don't all
> other name-based protocols also use DNS round-robin for load balancing?


It was invented by Eric Binna, Lou Montouli, Rob McCool and the folk at
NCSA as a desperate BIND hack to save their ass when downloads of Mosaic
required a server farm to support.



>  SRV is a better solution for Web, URI is a better
>> solution for Web Services. But neither SRV nor URI are complete in that
>> respect as neither addresses geographic load balancing.
>>
>>
> I'd like to see an implementation of round-robin operating within the text
> of a SRV record.


SRV was designed to render round robin unnecessary. It has the same load
balancing capability as the MX record. In fact it is simply a
generalization of MX.



>
>  I do not want to get into the issue of how to implement those features
>> right here and now. But I would like us to take an approach to getting out
>> of the HTTP version swamp that provides us with the necessary hooks to get
>> out of the load balancing, geography etc. swamps in the future.
>>
>>
>
> One could as easily mandate that HTTP implementations perform round-robin
> (or not) on the set of DNS IP results as on the set of SRV results. So the
> above example of "hack" problems appears to be irrelevant.


Round robin does not work very well and never has done. The problem is that
DNS records are cached and the caching resolver has no idea what the
relative priority of the servers is. Nor does it have any idea about
matching the request on a geographic basis.



> HTTP/2.0 is an incompatible upgrade. When you break backwards compatibility
>> you should always have (1) a very good reason to do so and (2) an
>> explanation for why you do not expect to do so again.
>>
>>
> Is it? that would be violating the charter requirement that is be
> semantically compatible with HTTP/1.x and fully capable of 2.0->1.1 gateway
> translation.


A HTTP/1.1 server will not be able to understand 2.0 traffic unless
upgraded. Hence it is a backwards incompatible change with a
transition/upgrade strategy.


-- 
Website: http://hallambaker.com/

--14dae93b63206bd16d04ce6a7982
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Tue, N=
ov 13, 2012 at 7:08 PM, Amos Jeffries <span dir=3D"ltr">&lt;<a href=3D"mail=
to:squid3@treenet.co.nz" target=3D"_blank">squid3@treenet.co.nz</a>&gt;</sp=
an> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div class=3D"im">On 14.11.2012 05:26, Phill=
ip Hallam-Baker wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
I would say that the requirement for the DNS option for signalling upgrade<=
br>
be that<br>
<br>
1) It be an instance of a general mechanism that can be used to signal more=
<br>
than just protocol version and more than just information to HTTP.<br>
<br>
2) It be possible to secure the protocol version information to prevent<br>
downgrade attacks, and upgrade attacks.<br>
<br>
<br>
In band upgrade hacks are a one-off solution. Complexity is frequently the<=
br>
result of too many one-off solutions. We do occasionally have complexity<br=
>
from systems that are too general (ISAKMP, EAP, GSSAPI). But that comes<br>
from schemes that are designed to allow people to achieve the same basic<br=
>
function in an infinite variety of ways. I can&#39;t think of a case where =
we<br>
have introduced too much complexity by specifying one &#39;right&#39; way t=
o<br>
implement a function plus one or two fallback mechanisms to work-around<br>
legacy issues.<br>
<br>
There are also advantages to defining a DNS mechanism that are not quite<br=
>
requirements. One of them being that HTTP/1.1 use of DNS is rather a mess<b=
r>
and this provides an opportunity to clean it up.<br>
<br>
In particular, HTTP relies on DNS server hacks to implement load balancing<=
br>
(the round robin hack).<br>
</blockquote>
<br></div>
I was always of the impression that round-robin was a designed feature of D=
NS, not a hack created by HTTP. Maybe I&#39;m missing something but don&#39=
;t all other name-based protocols also use DNS round-robin for load balanci=
ng?</blockquote>
<div><br></div><div>It was invented by Eric Binna, Lou Montouli, Rob McCool=
 and the folk at NCSA as a desperate BIND hack to save their ass when downl=
oads of Mosaic required a server farm to support.</div><div><br></div><div>
=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;borde=
r-left:1px #ccc solid;padding-left:1ex"><div class=3D"im">
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
SRV is a better solution for Web, URI is a better<br>
solution for Web Services. But neither SRV nor URI are complete in that<br>
respect as neither addresses geographic load balancing.<br>
<br>
</blockquote>
<br></div>
I&#39;d like to see an implementation of round-robin operating within the t=
ext of a SRV record.</blockquote><div><br></div><div>SRV was designed to re=
nder round robin unnecessary. It has the same load balancing capability as =
the MX record. In fact it is simply a generalization of MX.</div>
<div><br></div><div>=A0</div><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=3D"i=
m">
<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
I do not want to get into the issue of how to implement those features<br>
right here and now. But I would like us to take an approach to getting out<=
br>
of the HTTP version swamp that provides us with the necessary hooks to get<=
br>
out of the load balancing, geography etc. swamps in the future.<br>
<br>
</blockquote>
<br>
<br></div>
One could as easily mandate that HTTP implementations perform round-robin (=
or not) on the set of DNS IP results as on the set of SRV results. So the a=
bove example of &quot;hack&quot; problems appears to be irrelevant.</blockq=
uote>
<div><br></div><div>Round robin does not work very well and never has done.=
 The problem is that DNS records are cached and the caching resolver has no=
 idea what the relative priority of the servers is. Nor does it have any id=
ea about matching the request on a geographic basis.</div>
<div><br></div><div>=A0</div><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=3D"i=
m"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left=
:1px #ccc solid;padding-left:1ex">

HTTP/2.0 is an incompatible upgrade. When you break backwards compatibility=
<br>
you should always have (1) a very good reason to do so and (2) an<br>
explanation for why you do not expect to do so again.<br>
<br>
</blockquote>
<br></div>
Is it? that would be violating the charter requirement that is be semantica=
lly compatible with HTTP/1.x and fully capable of 2.0-&gt;1.1 gateway trans=
lation.</blockquote><div><br></div><div>A HTTP/1.1 server will not be able =
to understand 2.0 traffic unless upgraded. Hence it is a backwards incompat=
ible change with a transition/upgrade strategy.</div>
<div>=A0</div></div><div><br></div>-- <br>Website: <a href=3D"http://hallam=
baker.com/">http://hallambaker.com/</a><br><br>
</div>

--14dae93b63206bd16d04ce6a7982--


From ietf-http-wg-request@listhub.w3.org  Tue Nov 13 19:33:31 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 13E8D21F8997 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 13 Nov 2012 19:33:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.064
X-Spam-Level: 
X-Spam-Status: No, score=-7.064 tagged_above=-999 required=5 tests=[AWL=2.043, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_HI=-8, SARE_MLH_Stock1=0.87]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MoDs4zJEPMaW for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 13 Nov 2012 19:33:30 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 2E85021F8917 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 13 Nov 2012 19:33:29 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYThC-0005gY-B5 for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 03:31:22 +0000
Resent-Date: Wed, 14 Nov 2012 03:31:22 +0000
Resent-Message-Id: <E1TYThC-0005gY-B5@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <lists@eitanadler.com>) id 1TYTh8-0005ft-ID for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 03:31:18 +0000
Received: from mail-la0-f43.google.com ([209.85.215.43]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <lists@eitanadler.com>) id 1TYTh7-0000vs-L0 for ietf-http-wg@w3.org; Wed, 14 Nov 2012 03:31:18 +0000
Received: by mail-la0-f43.google.com with SMTP id z14so513252lag.2 for <ietf-http-wg@w3.org>; Tue, 13 Nov 2012 19:30:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=EXFcbsWBuRzfYtF9rf48rtYD3s5YP4sEDSH6CfEqItg=; b=Mz7TVf0GCpKgxyJGi364/+HJKlI7+Oq8NqM3Ci1RzA6pywc9k7Rt5hJOBgy67lldAE 3JyxSr4M3guso++HQ1EqaXr0LdM33LcApazrKC2uZU5vbV4Dxy5wew5E+Etc+XnOsjxO xpolMyAp9tDM4Hzic8numE+1CB4r/dTndE4Cs=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=EXFcbsWBuRzfYtF9rf48rtYD3s5YP4sEDSH6CfEqItg=; b=DqH+OVLu6qqPTBHVzHiBQdRpVFLzDihDzGR/VQgJK2H2C98KHBsiU/082JfMxD60Qd nTxhnac1k2tbxf2Ss14NNOtQkz1/jpCJuRvHX8QbkuExP4aByN/0Ja+SKa0DoDrjCaeS zdkA4vMSDigx6fvcHBlO5O7hv06Tb5I2ecRDpchsl+5VO3ztQCqYmlxayFZfXL3r9evW EJNXni5TZXL6tfCqS6dsFsYAvFab1igR9SLJEqtQuAFRRayaiwEzMbHtXF5K4SLjO1qk daidwG63lwce+Vh8v5pJ4eIG4K3gFdSY1neQjgvQ/rW3GkB70mzLlpM5Hy8Jw7hLzgw2 3esg==
Received: by 10.112.100.102 with SMTP id ex6mr10339291lbb.130.1352863850977; Tue, 13 Nov 2012 19:30:50 -0800 (PST)
MIME-Version: 1.0
Received: by 10.112.25.166 with HTTP; Tue, 13 Nov 2012 19:30:20 -0800 (PST)
In-Reply-To: <CCC806C7.6A1AD%sludin@akamai.com>
References: <CAKRe7JF16sMUkT7HVvwfLPWXeWgdE0UR12aUWxkFeuYuDys4Kw@mail.gmail.com> <CCC806C7.6A1AD%sludin@akamai.com>
From: Eitan Adler <lists@eitanadler.com>
Date: Tue, 13 Nov 2012 22:30:20 -0500
Message-ID: <CAF6rxgm8H2wj+Nu9y-mcosRj=Hy7xJ2j2v-YtiHtQvBzhSNPNA@mail.gmail.com>
To: "Ludin, Stephen" <sludin@akamai.com>
Cc: Ilya Grigorik <ilya@igvita.com>, John Kemp <john@jkemp.net>,  "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
X-Gm-Message-State: ALoCoQkfsBh7erH4a9g1KxNmNr4dolbBfnZ2XyoYTr9hUEdXC1TMUYBW4ECddNbCZz4sKnmPuUBj
Received-SPF: pass client-ip=209.85.215.43; envelope-from=lists@eitanadler.com; helo=mail-la0-f43.google.com
X-W3C-Hub-Spam-Status: No, score=-3.6
X-W3C-Hub-Spam-Report: AWL=-2.768, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TYTh7-0000vs-L0 2e5fa681c5f9273271bed3d22523a2b4
X-Original-To: ietf-http-wg@w3.org
Subject: Re: RFC: draft-brown-device-stock-ua-00.txt
Archived-At: <http://www.w3.org/mid/CAF6rxgm8H2wj+Nu9y-mcosRj=Hy7xJ2j2v-YtiHtQvBzhSNPNA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15595
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 13 November 2012 17:26, Ludin, Stephen <sludin@akamai.com> wrote:
> As an intermediary/surrogate, this makes a lot of sense.  I can see the
> specific behavior required being very situational.

When might I ask, would Akamai want to take action based on a browser
the user not using and may not even be installed?


-- 
Eitan Adler


From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 00:16:34 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AC40421F879D for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 00:16:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.598
X-Spam-Level: 
X-Spam-Status: No, score=-10.598 tagged_above=-999 required=5 tests=[AWL=-0.000, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wqdCMsbkiLOE for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 00:16:34 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 1E1EB21F8792 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 00:16:31 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYXzM-0008F3-AY for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 08:06:24 +0000
Resent-Date: Wed, 14 Nov 2012 08:06:24 +0000
Resent-Message-Id: <E1TYXzM-0008F3-AY@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <adrien@qbik.com>) id 1TYXzD-0008Du-Bx for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 08:06:15 +0000
Received: from smtp.qbik.com ([210.55.214.35]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <adrien@qbik.com>) id 1TYXz5-0003tr-KE for ietf-http-wg@w3.org; Wed, 14 Nov 2012 08:06:15 +0000
Received: From [192.168.0.10] (unverified [192.168.0.10]) by SMTP Server [192.168.0.1] (WinGate SMTP Receiver v7.3.0 (Build 3464)) with SMTP id <0019356599@smtp.qbik.com>; Wed, 14 Nov 2012 21:05:51 +1300
From: "Adrien W. de Croy" <adrien@qbik.com>
To: "Eliot Lear" <lear@cisco.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Date: Wed, 14 Nov 2012 08:05:41 +0000
Content-Type: multipart/alternative; boundary="------=_MB0D229AF5-1DDE-4354-811D-F5CE3E0C39C9"
In-Reply-To: <50A26226.10906@cisco.com>
Message-Id: <em0d5ce79f-10c2-40d3-af17-372199e38ab6@bombed>
Mime-Version: 1.0
Reply-To: "Adrien W. de Croy" <adrien@qbik.com>
User-Agent: eM_Client/4.0.15145.0
Received-SPF: pass client-ip=210.55.214.35; envelope-from=adrien@qbik.com; helo=smtp.qbik.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-3.356, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-0.188, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TYXz5-0003tr-KE a88a0a61d9371b5ef633182bca25387a
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/em0d5ce79f-10c2-40d3-af17-372199e38ab6@bombed>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15596
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--------=_MB0D229AF5-1DDE-4354-811D-F5CE3E0C39C9
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; format=flowed; charset=utf-8


IMO it's a real shame that the designers of the SRV record decided to=20
code the transport protocol into the record name, rather than the=20
record data.

It means the client must pre-suppose what the transport protocol must=20
be before doing the lookup, whereas if the transport were in the=20
record, it would become server-driven, and extensible, e.g. add=20
tls-over-tcp to indicate that the server is available over tls on tcp.

Then you'd just look up something like _service.name and get back=20
everything you needed to make a connection, e.g. the server, transport=20
and sub-channel (e.g. port number or whatever describes the sub-channel=20
for the transport).

Adrien

------ Original Message ------
From: "Eliot Lear" <lear@cisco.com>
To: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Sent: 14/11/2012 4:07:18 a.m.
Subject: on DNS records
>As I promised last week, I've substantially developed a draft (and=20
>some code) to look more closely at whether a DNS record can be=20
>helpful.  Before I get it out there, I wanted to check goals.  The=20
>situation is this: there is a 2.0-enabled client and it must determine=20
>whether or not the other end can speak 2.0.  Gabriel and Willy have=20
>already shown us that it can be done INSIDE the protocol at the=20
>expense of one roundtrip, but at the risk of a proxy doing the wrong=20
>thing (a classic case being that it allows an Upgrade: header but then=20
>barfs all over the upgrade).  So let's state our goals:
>
>1.  Keep latency down.
>First, is this a reasonable goal? Can it reasonably be done better=20
>than what Willy & Gabriel have laid out? 2.  Transport Protocol=20
>Discovery
>Some have suggested that it would be useful to do HTTP over UDP or=20
>SCTP.  Is that something that is a reasonable goal? 3.  Handle the=20
>case where multiple instances of the same application protocol reside=20
>on the same host, but on different ports.
>Is this a reasonable goal? 4.  No new URI schema
>Address the 'side of the bus' problem. Is this a reasonable goal?=20
>Does this about cover it?  I claim we can solve all four, but not=20
>easily with SRV.
>
>Eliot

--------=_MB0D229AF5-1DDE-4354-811D-F5CE3E0C39C9
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=utf-8

<HTML><HEAD>
<STYLE id=3DeMClientCss>blockquote.cite { margin-left: 5px; margin-right:=
 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #000000=
 }
.plain pre { font-family: monospace; font-size: 100%; font-weight: normal;=
 font-style: normal; }
body {font-family: Tahoma;font-size: 12pt;}
.plain pre {font-family: Tahoma;font-size: 12pt;}

#5af1da7011dc46c4b8a1f26930ca791c BLOCKQUOTE.cite
{BORDER-LEFT: #000000 1px solid; PADDING-LEFT: 10px; PADDING-RIGHT: 0px;=
 MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px}
#5af1da7011dc46c4b8a1f26930ca791c .plain PRE
{FONT-STYLE: normal; FONT-FAMILY: monospace; FONT-SIZE: 100%; FONT-WEIGHT:=
 normal}
#5af1da7011dc46c4b8a1f26930ca791c=20
{FONT-FAMILY: Tahoma; FONT-SIZE: 12pt}
#5af1da7011dc46c4b8a1f26930ca791c .plain PRE
{FONT-FAMILY: Tahoma; FONT-SIZE: 12pt}</STYLE>

<META content=3D"text/html; charset=3DUTF-8" http-equiv=3Dcontent-type></HE=
AD>
<BODY scroll=3Dauto bgColor=3D#ffffff text=3D#000000 class>
<DIV>&nbsp;</DIV>
<DIV>IMO it's a real shame that the designers of the SRV record decided =
to code the transport protocol into the record name, rather than the record=
 data.</DIV>
<DIV>&nbsp;</DIV>
<DIV>It means the client must pre-suppose what the transport protocol must=
 be before doing the lookup, whereas if the transport were in the record,=
 it would become server-driven, and extensible, e.g. add tls-over-tcp to=
 indicate that the server is available over tls&nbsp;on tcp.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Then you'd just look up something like _service.name and get back ever=
ything you needed to make a connection, e.g. the server, transport and sub-=
channel (e.g. port number or whatever describes the sub-channel for the =
transport).</DIV>
<DIV>&nbsp;</DIV>
<DIV>Adrien</DIV>
<DIV><BR>------ Original Message ------<BR>From: "Eliot Lear" &lt;lear@cisc=
o.com&gt;<BR>To: "ietf-http-wg@w3.org Group" &lt;ietf-http-wg@w3.org&gt;<BR=
>Sent: 14/11/2012 4:07:18 a.m.<BR>Subject: on DNS records<BR></DIV>
<BLOCKQUOTE class=3Dcite cite=3D50A26226.10906@cisco.com type=3D"cite">
<DIV id=3D5af1da7011dc46c4b8a1f26930ca791c>As I promised last week, I've=
 substantially developed a draft (and some code) to look more closely at=
 whether a DNS record can be helpful.&nbsp; Before I get it out there, I=
 wanted to check goals.&nbsp; The situation is this: there is a 2.0-enabled=
 client and it must determine whether or not the other end can speak 2.0.&n=
bsp; Gabriel and Willy have already shown us that it can be done INSIDE =
the protocol at the expense of one roundtrip, but at the risk of a proxy=
 doing the wrong thing (a classic case being that it allows an Upgrade: =
header but then barfs all over the upgrade).&nbsp; So let's state our goals=
:<BR><BR>1.&nbsp; Keep latency down.<BR>
<UL>
<LI>First, is this a reasonable goal? </LI>
<LI>Can it reasonably be done better than what Willy &amp; Gabriel have =
laid out? </LI></UL>2.&nbsp; Transport Protocol Discovery<BR>
<UL>
<LI>Some have suggested that it would be useful to do HTTP over UDP or SCTP=
.&nbsp; Is that something that is a reasonable goal? </LI></UL>
<P>3.&nbsp; Handle the case where multiple instances of the same applicatio=
n protocol reside on the same host, but on different ports.<BR></P>
<UL>
<LI>Is this a reasonable goal? </LI></UL>
<P>4.&nbsp; No new URI schema<BR></P>
<UL>
<LI>Address the 'side of the bus' problem. </LI>
<LI>Is this a reasonable goal? </LI></UL><BR>Does this about cover it?&nbsp=
; I claim we can solve all four, but not easily with SRV.<BR><BR>Eliot<BR><=
/DIV></BLOCKQUOTE></BODY></HTML>
--------=_MB0D229AF5-1DDE-4354-811D-F5CE3E0C39C9--



From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 01:16:54 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 78AE221F84E7 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 01:16:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.106
X-Spam-Level: 
X-Spam-Status: No, score=-9.106 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8, SARE_MLH_Stock1=0.87]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0UA91Qy6DyOd for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 01:16:52 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 3657821F87CC for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 01:16:51 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYYvr-00065w-1P for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 09:06:51 +0000
Resent-Date: Wed, 14 Nov 2012 09:06:51 +0000
Resent-Message-Id: <E1TYYvr-00065w-1P@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <ilya@igvita.com>) id 1TYYvf-000646-Of for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 09:06:39 +0000
Received: from mail-ia0-f171.google.com ([209.85.210.171]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <ilya@igvita.com>) id 1TYYvT-0006cy-Eh for ietf-http-wg@w3.org; Wed, 14 Nov 2012 09:06:39 +0000
Received: by mail-ia0-f171.google.com with SMTP id z13so131888iaz.2 for <ietf-http-wg@w3.org>; Wed, 14 Nov 2012 01:06:00 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=+u7E4VDSLP/ydn1ydSA+wwYQ/0xs5QUpSvZq9xi9Ctw=; b=mL0Pp2AXh6Avv/ovlNcwUPM2bqy9WTIXr9ykFq+ST1aYyS0js4G0sA4me6VzsBGTRs cxaidp00dbCHxHVKheBK9/r0gRLMjcp9ge1RTtrIr63REmmmdHmd1GmlDfipNXaxV3Wp rFC9R9UDZYq32tZsQNvvYqel3sFPfULWbuCff1cZVUx/LvTAXNFGGn7HdcIatlMsWU8k WDLt2J/TdyARbMNkJa3Cs2S4LjF3D+oRQAceA8Z3FrihATZWd9Ap5ySjF81YgK4WXj/9 Hgq96MMx8VcrvxpXRQwHvGf69pCYBlwaNmzrr1uEJ98D1u5fChJYBTe2SDniOf9GRm3E tMdw==
Received: by 10.50.47.197 with SMTP id f5mr1152413ign.23.1352883960014; Wed, 14 Nov 2012 01:06:00 -0800 (PST)
Received: from mail-ie0-f171.google.com (mail-ie0-f171.google.com [209.85.223.171]) by mx.google.com with ESMTPS id bh3sm800736igc.0.2012.11.14.01.05.57 (version=SSLv3 cipher=OTHER); Wed, 14 Nov 2012 01:05:58 -0800 (PST)
Received: by mail-ie0-f171.google.com with SMTP id s9so255712iec.2 for <ietf-http-wg@w3.org>; Wed, 14 Nov 2012 01:05:57 -0800 (PST)
Received: by 10.50.140.104 with SMTP id rf8mr1130486igb.40.1352883957426; Wed, 14 Nov 2012 01:05:57 -0800 (PST)
MIME-Version: 1.0
Received: by 10.64.8.196 with HTTP; Wed, 14 Nov 2012 01:05:16 -0800 (PST)
In-Reply-To: <CCC806C7.6A1AD%sludin@akamai.com>
References: <CAKRe7JF16sMUkT7HVvwfLPWXeWgdE0UR12aUWxkFeuYuDys4Kw@mail.gmail.com> <CCC806C7.6A1AD%sludin@akamai.com>
From: Ilya Grigorik <ilya@igvita.com>
Date: Wed, 14 Nov 2012 10:05:16 +0100
Message-ID: <CAKRe7JEWCBocLKcnXZGSus9KPctznAqX-ssdkci_KF25KFJQew@mail.gmail.com>
To: "Ludin, Stephen" <sludin@akamai.com>
Cc: John Kemp <john@jkemp.net>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=e89a8f839d6fb469b804ce70d739
X-Gm-Message-State: ALoCoQlvusatuU8YRRKfidkpu0J4oPH545twdaFIOxyzWB0lAwWOf1lBSuUIrcDnyHEbgMu+C4lm
Received-SPF: pass client-ip=209.85.210.171; envelope-from=ilya@igvita.com; helo=mail-ia0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.767, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TYYvT-0006cy-Eh e1a1d04f3b0b339580ed71807580d4b3
X-Original-To: ietf-http-wg@w3.org
Subject: Re: RFC: draft-brown-device-stock-ua-00.txt
Archived-At: <http://www.w3.org/mid/CAKRe7JEWCBocLKcnXZGSus9KPctznAqX-ssdkci_KF25KFJQew@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15597
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--e89a8f839d6fb469b804ce70d739
Content-Type: text/plain; charset=ISO-8859-1

> The combination of client-hints and browser-hits seems extremely powerful
> and removes a lot of the guesswork that we have all adapted to.  In your
> proposal you mention the possibility of having a "well defined list of
> variable."  I think this is particularly important.  Best practice for
> extending these variable could leverage existing practices for HTTP headers
> or perhaps javascript API calls.
>

Yep. I'm explicitly limiting variables to what's currently already
available in the browser - don't want to get into the business of trying to
define new ones.


> Compression of this header (ideally in the context of general HTTP/2.0
> header compression) is vital for adoption, especially in the mobile context
> where every byte matters.
>

+1. Should have a new spec up soon which will, hopefully, address part of
this problem. The basic idea being that many of the variables are binary
(ex, WebGL on/off), which means that we can pack them very efficiently. The
tricky part is narrowing down the list of "continuos" variables like
viewport sizes, etc.

ig



>  From: Ilya Grigorik <ilya@igvita.com>
> Date: Friday, November 9, 2012 12:32 PM
> To: John Kemp <john@jkemp.net>
> Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
> Subject: Re: RFC: draft-brown-device-stock-ua-00.txt
> Resent-From: <ietf-http-wg@w3.org>
> Resent-Date: Friday, November 9, 2012 12:33 PM
>
>
>
> On Fri, Nov 9, 2012 at 11:33 AM, John Kemp <john@jkemp.net> wrote:
>
>> One question - what happens in the presence of an intermediary? SHOULD an
>> intermediary pass on the Client-hints HTTP header, if sent by a client?
>
>
> Yes. If the intermediary is the doing the adaptation based on the hint,
> then theoretically it could drop the header when forwarding the request
> (but more likely, just pass it along).
>
> ig
>
>

--e89a8f839d6fb469b804ce70d739
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"m=
argin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style=3D=
"font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word"><div>T=
he combination of client-hints and browser-hits seems extremely powerful an=
d removes a lot of the guesswork that we have all adapted to. =A0In your pr=
oposal you mention the possibility of having a &quot;well defined list of v=
ariable.&quot; =A0I think this is particularly important. =A0Best practice =
for extending these variable could leverage existing practices for HTTP hea=
ders or perhaps javascript API calls.=A0</div>

</div></blockquote><div><br></div><div>Yep. I&#39;m explicitly limiting var=
iables to what&#39;s currently already available in the browser - don&#39;t=
 want to get into the business of trying to define new ones.</div><div>

=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;borde=
r-left:1px #ccc solid;padding-left:1ex"><div style=3D"font-size:14px;font-f=
amily:Calibri,sans-serif;word-wrap:break-word"><div>Compression of this hea=
der (ideally in the context of general HTTP/2.0 header compression) is vita=
l for adoption, especially in the mobile context where every byte matters.=
=A0</div>

</div></blockquote><div><br></div><div>+1. Should have a new spec up soon w=
hich will, hopefully, address part of this problem. The basic idea being th=
at many of the variables are binary (ex, WebGL on/off), which means that we=
 can pack them very efficiently. The tricky part is narrowing down the list=
 of &quot;continuos&quot; variables like viewport sizes, etc.</div>

<div><br></div><div>ig</div><div>=A0</div><div>=A0</div><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex"><div style=3D"font-size:14px;font-family:Calibri,sans-serif;w=
ord-wrap:break-word">

<div></div><span><div style=3D"border-right:medium none;padding-right:0in;p=
adding-left:0in;padding-top:3pt;text-align:left;font-size:11pt;border-botto=
m:medium none;font-family:Calibri;border-top:#b5c4df 1pt solid;padding-bott=
om:0in;border-left:medium none">

<span style=3D"font-weight:bold">From: </span> Ilya Grigorik &lt;<a href=3D=
"mailto:ilya@igvita.com" target=3D"_blank">ilya@igvita.com</a>&gt;<br><span=
 style=3D"font-weight:bold">Date: </span> Friday, November 9, 2012 12:32 PM=
<br>

<span style=3D"font-weight:bold">To: </span> John Kemp &lt;<a href=3D"mailt=
o:john@jkemp.net" target=3D"_blank">john@jkemp.net</a>&gt;<br><span style=
=3D"font-weight:bold">Cc: </span> &quot;<a href=3D"mailto:ietf-http-wg@w3.o=
rg" target=3D"_blank">ietf-http-wg@w3.org</a>&quot; &lt;<a href=3D"mailto:i=
etf-http-wg@w3.org" target=3D"_blank">ietf-http-wg@w3.org</a>&gt;<br>

<span style=3D"font-weight:bold">Subject: </span> Re: RFC: draft-brown-devi=
ce-stock-ua-00.txt<br><span style=3D"font-weight:bold">Resent-From: </span>=
 &lt;<a href=3D"mailto:ietf-http-wg@w3.org" target=3D"_blank">ietf-http-wg@=
w3.org</a>&gt;<br>

<span style=3D"font-weight:bold">Resent-Date: </span> Friday, November 9, 2=
012 12:33 PM<br></div><div><div class=3D"h5"><div><br></div><blockquote sty=
le=3D"BORDER-LEFT:#b5c4df 5 solid;PADDING:0 0 0 5;MARGIN:0 0 0 5"><div><div=
>
<br>
<br><div class=3D"gmail_quote">On Fri, Nov 9, 2012 at 11:33 AM, John Kemp <=
span dir=3D"ltr">
&lt;<a href=3D"mailto:john@jkemp.net" target=3D"_blank">john@jkemp.net</a>&=
gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 =
0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
One question - what happens in the presence of an intermediary? SHOULD an i=
ntermediary pass on the Client-hints HTTP header, if sent by a client?</blo=
ckquote><div><br></div><div>Yes. If the intermediary is the doing the adapt=
ation based on the hint, then theoretically it could drop the header when f=
orwarding the request (but more likely, just pass it along).</div>

<div><br></div><div>ig</div></div></div></div></blockquote></div></div></sp=
an></div>
</blockquote></div><br>

--e89a8f839d6fb469b804ce70d739--


From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 04:25:02 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2ED9F21F85ED for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 04:25:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.594
X-Spam-Level: 
X-Spam-Status: No, score=-10.594 tagged_above=-999 required=5 tests=[AWL=0.004, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6hUNDkANBBPS for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 04:25:01 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id DB63921F8539 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 04:25:00 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYbzB-0007wo-Ta for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 12:22:29 +0000
Resent-Date: Wed, 14 Nov 2012 12:22:29 +0000
Resent-Message-Id: <E1TYbzB-0007wo-Ta@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <lear@cisco.com>) id 1TYbz6-0007w4-Pl for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 12:22:24 +0000
Received: from ams-iport-3.cisco.com ([144.254.224.146]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <lear@cisco.com>) id 1TYbz1-0004X2-IK for ietf-http-wg@w3.org; Wed, 14 Nov 2012 12:22:24 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=11035; q=dns/txt; s=iport; t=1352895739; x=1354105339; h=message-id:date:from:mime-version:to:cc:subject: references:in-reply-to; bh=uzsuW+qHILi4b2HIX/tl49AvZ8VxDIIYUkemw77cAOY=; b=RMUxN8/jxap4ZsjPPOa2sw4Hw0Clfsn1R0fAoBs1NmT5Ch+Yxmn/qN0E nqlv4YqsxrkxtB3ltvvsBllwbHWdnOwllQa0U3q2yZxwu6GUnt0JRdady Rnqv490p4O2X52szohGwOi0xF/+/OrbXuCZPCb/USybQdjJt0nOPlSb6X U=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AhQFANSLo1CQ/khR/2dsb2JhbABEgkmDVIVft0GBCIIeAQEBBBIBEFUBDAQLEQQBAQEJFgsCAgkDAgECAT0IBg0BBQIBAR6HaJp1jSiSY4wthRmBEwOVfI5YgWuCcIFcHgY
X-IronPort-AV: E=McAfee;i="5400,1158,6895"; a="9559042"
Received: from ams-core-1.cisco.com ([144.254.72.81]) by ams-iport-3.cisco.com with ESMTP; 14 Nov 2012 12:21:52 +0000
Received: from dhcp-10-55-89-92.cisco.com (dhcp-10-55-89-92.cisco.com [10.55.89.92]) by ams-core-1.cisco.com (8.14.5/8.14.5) with ESMTP id qAECLpVK011889 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Nov 2012 12:21:52 GMT
Message-ID: <50A38CDF.8040802@cisco.com>
Date: Wed, 14 Nov 2012 13:21:51 +0100
From: Eliot Lear <lear@cisco.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: "Adrien W. de Croy" <adrien@qbik.com>
CC: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
References: <em0d5ce79f-10c2-40d3-af17-372199e38ab6@bombed>
In-Reply-To: <em0d5ce79f-10c2-40d3-af17-372199e38ab6@bombed>
X-Enigmail-Version: 1.4.5
Content-Type: multipart/alternative; boundary="------------030700050601080605030600"
Received-SPF: pass client-ip=144.254.224.146; envelope-from=lear@cisco.com; helo=ams-iport-3.cisco.com
X-W3C-Hub-Spam-Status: No, score=-14.3
X-W3C-Hub-Spam-Report: AWL=0.426, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.188, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5
X-W3C-Scan-Sig: maggie.w3.org 1TYbz1-0004X2-IK f35b53a8e3be42b0852c8c92a1ffaec4
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/50A38CDF.8040802@cisco.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15598
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

This is a multi-part message in MIME format.
--------------030700050601080605030600
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Adrian,

My question is how important is it to make use of different transport
protocols?  I'm asking because there are at least three approaches that
we can take to address DNS:

1.  SRV.  SRV is just fine at providing indirection for host and port,
but not for protocol, and not in such a pretty way when a port number is
specified.  The cost is typically one query per host, which can
SOMETIMES be included in additional information, when the zone is the
same, and when the client considers additional information.
2.  NAPTR combined with SRV.  This provides an additional level of
indirection to allow the choice of protocol.  SIP uses this.  The cost
is two fold: an additional query plus some additional complexity in
terms of processing NAPTR.  It also would prove challenging to handle
the case where different HTTP servers are running on the same host.
3.  An as-of-yet undefined record that describes what services are
running over what protocols on a host.  Think of it as the old WKS
record on steroids.  I've actually spec'd out the record and written
some code for bind to test this idea, but it has its own set of costs:
the first â€“ and biggest â€“ is that it scales linearly with the number of
services that are to be advertised for a given host.  Put another way:
you could just see the advice in an applicability statement "don't use
me unless you really have to."

One other note about SRV:

Use of SRV of any form with regard to TLS would require a substantial
change in how we clients validate hostnames.  I tell you from personal
experience that having a new SAN "Other" type is *not* an easy thing to
ask of CAs.

Comments please?

Eliot



On 11/14/12 9:05 AM, Adrien W. de Croy wrote:
>  
> IMO it's a real shame that the designers of the SRV record decided to
> code the transport protocol into the record name, rather than the
> record data.
>  
> It means the client must pre-suppose what the transport protocol must
> be before doing the lookup, whereas if the transport were in the
> record, it would become server-driven, and extensible, e.g. add
> tls-over-tcp to indicate that the server is available over tls on tcp.
>  
> Then you'd just look up something like _service.name and get back
> everything you needed to make a connection, e.g. the server, transport
> and sub-channel (e.g. port number or whatever describes the
> sub-channel for the transport).
>  
> Adrien
>
> ------ Original Message ------
> From: "Eliot Lear" <lear@cisco.com>
> To: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
> Sent: 14/11/2012 4:07:18 a.m.
> Subject: on DNS records
>> As I promised last week, I've substantially developed a draft (and
>> some code) to look more closely at whether a DNS record can be
>> helpful.  Before I get it out there, I wanted to check goals.  The
>> situation is this: there is a 2.0-enabled client and it must
>> determine whether or not the other end can speak 2.0.  Gabriel and
>> Willy have already shown us that it can be done INSIDE the protocol
>> at the expense of one roundtrip, but at the risk of a proxy doing the
>> wrong thing (a classic case being that it allows an Upgrade: header
>> but then barfs all over the upgrade).  So let's state our goals:
>>
>> 1.  Keep latency down.
>>
>>   * First, is this a reasonable goal?
>>   * Can it reasonably be done better than what Willy & Gabriel have
>>     laid out?
>>
>> 2.  Transport Protocol Discovery
>>
>>   * Some have suggested that it would be useful to do HTTP over UDP
>>     or SCTP.  Is that something that is a reasonable goal?
>>
>> 3.  Handle the case where multiple instances of the same application
>> protocol reside on the same host, but on different ports.
>>
>>   * Is this a reasonable goal?
>>
>> 4.  No new URI schema
>>
>>   * Address the 'side of the bus' problem.
>>   * Is this a reasonable goal?
>>
>>
>> Does this about cover it?  I claim we can solve all four, but not
>> easily with SRV.
>>
>> Eliot


--------------030700050601080605030600
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Adrian,<br>
    <br>
    My question is how important is it to make use of different
    transport protocols?Â  I'm asking because there are at least three
    approaches that we can take to address DNS:<br>
    <br>
    1.Â  SRV.Â  SRV is just fine at providing indirection for host and
    port, but not for protocol, and not in such a pretty way when a port
    number is specified.Â  The cost is typically one query per host,
    which can SOMETIMES be included in additional information, when the
    zone is the same, and when the client considers additional
    information.<br>
    2.Â  NAPTR combined with SRV.Â  This provides an additional level of
    indirection to allow the choice of protocol.Â  SIP uses this.Â  The
    cost is two fold: an additional query plus some additional
    complexity in terms of processing NAPTR.Â  It also would prove
    challenging to handle the case where different HTTP servers are
    running on the same host.<br>
    3.Â  An as-of-yet undefined record that describes what services are
    running over what protocols on a host.Â  Think of it as the old WKS
    record on steroids.Â  I've actually spec'd out the record and written
    some code for bind to test this idea, but it has its own set of
    costs: the first â€“ and biggest â€“ is that it scales linearly with the
    number of services that are to be advertised for a given host.Â  Put
    another way: you could just see the advice in an applicability
    statement "don't use me unless you really have to."<br>
    <br>
    One other note about SRV:<br>
    <br>
    Use of SRV of any form with regard to TLS would require a
    substantial change in how we clients validate hostnames.Â  I tell you
    from personal experience that having a new SAN "Other" type is <b>not</b>
    an easy thing to ask of CAs.<br>
    <br>
    Comments please?<br>
    <br>
    Eliot<br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 11/14/12 9:05 AM, Adrien W. de Croy
      wrote:<br>
    </div>
    <blockquote cite="mid:em0d5ce79f-10c2-40d3-af17-372199e38ab6@bombed"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <style id="eMClientCss">blockquote.cite { margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #000000 }
.plain pre { font-family: monospace; font-size: 100%; font-weight: normal; font-style: normal; }
body {font-family: Tahoma;font-size: 12pt;}
.plain pre {font-family: Tahoma;font-size: 12pt;}

#5af1da7011dc46c4b8a1f26930ca791c BLOCKQUOTE.cite
{BORDER-LEFT: #000000 1px solid; PADDING-LEFT: 10px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px}
#5af1da7011dc46c4b8a1f26930ca791c .plain PRE
{FONT-STYLE: normal; FONT-FAMILY: monospace; FONT-SIZE: 100%; FONT-WEIGHT: normal}
#5af1da7011dc46c4b8a1f26930ca791c 
{FONT-FAMILY: Tahoma; FONT-SIZE: 12pt}
#5af1da7011dc46c4b8a1f26930ca791c .plain PRE
{FONT-FAMILY: Tahoma; FONT-SIZE: 12pt}</style>
      <div>Â </div>
      <div>IMO it's a real shame that the designers of the SRV record
        decided to code the transport protocol into the record name,
        rather than the record data.</div>
      <div>Â </div>
      <div>It means the client must pre-suppose what the transport
        protocol must be before doing the lookup, whereas if the
        transport were in the record, it would become server-driven, and
        extensible, e.g. add tls-over-tcp to indicate that the server is
        available over tlsÂ on tcp.</div>
      <div>Â </div>
      <div>Then you'd just look up something like _service.name and get
        back everything you needed to make a connection, e.g. the
        server, transport and sub-channel (e.g. port number or whatever
        describes the sub-channel for the transport).</div>
      <div>Â </div>
      <div>Adrien</div>
      <div><br>
        ------ Original Message ------<br>
        From: "Eliot Lear" <a class="moz-txt-link-rfc2396E" href="mailto:lear@cisco.com">&lt;lear@cisco.com&gt;</a><br>
        To: <a class="moz-txt-link-rfc2396E" href="mailto:ietf-http-wg@w3.orgGroup">"ietf-http-wg@w3.org Group"</a> <a class="moz-txt-link-rfc2396E" href="mailto:ietf-http-wg@w3.org">&lt;ietf-http-wg@w3.org&gt;</a><br>
        Sent: 14/11/2012 4:07:18 a.m.<br>
        Subject: on DNS records<br>
      </div>
      <blockquote class="cite" cite="50A26226.10906@cisco.com"
        type="cite">
        <div id="5af1da7011dc46c4b8a1f26930ca791c">As I promised last
          week, I've substantially developed a draft (and some code) to
          look more closely at whether a DNS record can be helpful.Â 
          Before I get it out there, I wanted to check goals.Â  The
          situation is this: there is a 2.0-enabled client and it must
          determine whether or not the other end can speak 2.0.Â  Gabriel
          and Willy have already shown us that it can be done INSIDE the
          protocol at the expense of one roundtrip, but at the risk of a
          proxy doing the wrong thing (a classic case being that it
          allows an Upgrade: header but then barfs all over the
          upgrade).Â  So let's state our goals:<br>
          <br>
          1.Â  Keep latency down.<br>
          <ul>
            <li>First, is this a reasonable goal? </li>
            <li>Can it reasonably be done better than what Willy &amp;
              Gabriel have laid out? </li>
          </ul>
          2.Â  Transport Protocol Discovery<br>
          <ul>
            <li>Some have suggested that it would be useful to do HTTP
              over UDP or SCTP.Â  Is that something that is a reasonable
              goal? </li>
          </ul>
          <p>3.Â  Handle the case where multiple instances of the same
            application protocol reside on the same host, but on
            different ports.<br>
          </p>
          <ul>
            <li>Is this a reasonable goal? </li>
          </ul>
          <p>4.Â  No new URI schema<br>
          </p>
          <ul>
            <li>Address the 'side of the bus' problem. </li>
            <li>Is this a reasonable goal? </li>
          </ul>
          <br>
          Does this about cover it?Â  I claim we can solve all four, but
          not easily with SRV.<br>
          <br>
          Eliot<br>
        </div>
      </blockquote>
    </blockquote>
    <br>
  </body>
</html>

--------------030700050601080605030600--


From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 07:31:39 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 22AA721F85E7 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 07:31:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.729
X-Spam-Level: 
X-Spam-Status: No, score=-9.729 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, SARE_MLH_Stock1=0.87]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xgpVxXVUUiTE for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 07:31:38 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 5AA5721F85DB for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 07:31:38 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYetc-0005k2-QI for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 15:28:56 +0000
Resent-Date: Wed, 14 Nov 2012 15:28:56 +0000
Resent-Message-Id: <E1TYetc-0005k2-QI@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <john@jkemp.net>) id 1TYetX-0005jN-3N for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 15:28:51 +0000
Received: from oproxy7-pub.bluehost.com ([67.222.55.9]) by maggie.w3.org with smtp (Exim 4.72) (envelope-from <john@jkemp.net>) id 1TYetV-0002yh-Nq for ietf-http-wg@w3.org; Wed, 14 Nov 2012 15:28:51 +0000
Received: (qmail 25192 invoked by uid 0); 14 Nov 2012 15:28:27 -0000
Received: from unknown (HELO box320.bluehost.com) (69.89.31.120) by oproxy7.bluehost.com with SMTP; 14 Nov 2012 15:28:27 -0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=jkemp.net; s=default; h=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Content-Type:Mime-Version:Subject; bh=2iPNm+TCDVCGfeYOqd28xQ4Fk/pbAk2E8yyGvmxtGyA=; b=cyXULAz9VpFs6HbzGTwGR8aqyzRW/chbIQoyB1Gyqir/gqkZVNUbFQp4hEbPp3mpLR0vFo17wSSAM657WX+2KxKqQaS/31eVaFlTR4W22GPbt5hZLmirJGHNISjvuOxi;
Received: from [192.234.2.90] (port=53233 helo=lm-ct-702531.corp.espn.pvt) by box320.bluehost.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.76) (envelope-from <john@jkemp.net>) id 1TYet9-0005i1-C3; Wed, 14 Nov 2012 08:28:27 -0700
Mime-Version: 1.0 (Apple Message framework v1085)
Content-Type: text/plain; charset=us-ascii
From: John Kemp <john@jkemp.net>
In-Reply-To: <CAKRe7JF16sMUkT7HVvwfLPWXeWgdE0UR12aUWxkFeuYuDys4Kw@mail.gmail.com>
Date: Wed, 14 Nov 2012 10:28:25 -0500
Cc: ietf-http-wg@w3.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <FBAFC4F1-E83C-4A4D-8F9B-AA2D7C7CAF76@jkemp.net>
References: <BEFF7D84-FF00-4B03-B6CA-80859F5F6FCD@jkemp.net> <CAKRe7JF16sMUkT7HVvwfLPWXeWgdE0UR12aUWxkFeuYuDys4Kw@mail.gmail.com>
To: Ilya Grigorik <ilya@igvita.com>
X-Mailer: Apple Mail (2.1085)
X-Identified-User: {1122:box320.bluehost.com:jkempnet:jkemp.net} {sentby:smtp auth 192.234.2.90 authed with john+jkemp.net}
Received-SPF: pass client-ip=67.222.55.9; envelope-from=john@jkemp.net; helo=oproxy7-pub.bluehost.com
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: AWL=-2.111, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TYetV-0002yh-Nq b1bbe784757ca9cd87bdd176b7742ec1
X-Original-To: ietf-http-wg@w3.org
Subject: Re: RFC: draft-brown-device-stock-ua-00.txt
Archived-At: <http://www.w3.org/mid/FBAFC4F1-E83C-4A4D-8F9B-AA2D7C7CAF76@jkemp.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15599
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Nov 9, 2012, at 3:32 PM, Ilya Grigorik wrote:

>=20
>=20
> On Fri, Nov 9, 2012 at 11:33 AM, John Kemp <john@jkemp.net> wrote:
> One question - what happens in the presence of an intermediary? SHOULD =
an intermediary pass on the Client-hints HTTP header, if sent by a =
client?
>=20
> Yes. If the intermediary is the doing the adaptation based on the =
hint, then theoretically it could drop the header when forwarding the =
request (but more likely, just pass it along).

Here's what the Prefer header =
(http://tools.ietf.org/html/draft-snell-http-prefer-17 which I just =
happened to take a look at based on the word 'prefer') says about =
intermediaries:

"The Prefer header field is end-to-end and SHOULD be forwarded by a by a =
proxy if the request is forwarded. proxy if the request is forwarded =
unless Prefer is explicitly identified as being hop-by-hop using the =
Connection header field defined by [I-D.ietf-httpbis-p1-messaging], =
Section 6.1."

"  In various situations, a proxy might determine that it is capable of =
honoring a preference independently of the server to which the request =
has been directed. For instance, an intervening proxy might be capable =
of providing asynchronous handling of a request using 202 Accepted =
responses independently of the origin server. Such proxies can choose to =
honor the "respond-async" preference on their own despite whether the =
origin is capable or willing to do so."

By the way, I see overlap between the Prefer header, the Device-Stock-UA =
header and the Client-hints header. Has anyone else looked at these =
specs. to see why one would use one over the other, or why there is a =
need for 3 (in addition to the prior work)?
=20
JohnK

>=20
> ig



From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 11:02:18 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3511D21F85A2 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 11:02:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.303
X-Spam-Level: 
X-Spam-Status: No, score=-7.303 tagged_above=-999 required=5 tests=[AWL=3.296, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Pi1mXJ-FOJRg for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 11:02:17 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 957AD21F8574 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 11:02:17 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYiBj-0003jk-Dd for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 18:59:51 +0000
Resent-Date: Wed, 14 Nov 2012 18:59:51 +0000
Resent-Message-Id: <E1TYiBj-0003jk-Dd@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1TYiBe-0003ii-EV for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 18:59:46 +0000
Received: from mail-la0-f43.google.com ([209.85.215.43]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1TYiBd-0002mi-J9 for ietf-http-wg@w3.org; Wed, 14 Nov 2012 18:59:46 +0000
Received: by mail-la0-f43.google.com with SMTP id z14so632197lag.2 for <ietf-http-wg@w3.org>; Wed, 14 Nov 2012 10:59:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=tgLDj2xW0ms7ptJPQdn+SenysISWxA19D0vSegNVZbw=; b=kbMPf0MAxVQl+VhOW0tBX4AaEraIzjZdUUdP1ob6vBv/4fvgCYfej7YDJIpq6sH6fi t+t+ic1Bu0RUVZlaQ0lQlxwG7DkG7aN/GEgxXHaee8jJPAm8ykfiezHsSdBxVU7m9fII 9SnJgkOCz3+xy19qhtZs+AmVQhI1K9hSH3U/1xahIV4jP6+NxU80nLvJbbC1NyCZdOK6 grZZaPxmmusGFtiBYg/lSIXfG+6TZSKhfymD/dxT9VCWabdz0kxItHqrTTSaeerIy5QM A05O5LqeRIqxpsgkpOKlamm0PZtiDWbsAX+nsOXpwtzybfVgY5UY2qRkyELU6WqsZrVR Ygdg==
MIME-Version: 1.0
Received: by 10.152.48.102 with SMTP id k6mr25424244lan.12.1352919558837; Wed, 14 Nov 2012 10:59:18 -0800 (PST)
Received: by 10.112.83.2 with HTTP; Wed, 14 Nov 2012 10:59:18 -0800 (PST)
In-Reply-To: <50A38CDF.8040802@cisco.com>
References: <em0d5ce79f-10c2-40d3-af17-372199e38ab6@bombed> <50A38CDF.8040802@cisco.com>
Date: Wed, 14 Nov 2012 10:59:18 -0800
Message-ID: <CABkgnnXE1iW_COaqu-e_OK=y0ZE3Ry1YvtX6Vsq3vjvY3Tghrw@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Eliot Lear <lear@cisco.com>
Cc: "Adrien W. de Croy" <adrien@qbik.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=209.85.215.43; envelope-from=martin.thomson@gmail.com; helo=mail-la0-f43.google.com
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-1.710, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TYiBd-0002mi-J9 946ef148c25e55dd97cc525e100faf27
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/CABkgnnXE1iW_COaqu-e_OK=y0ZE3Ry1YvtX6Vsq3vjvY3Tghrw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15600
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 14 November 2012 04:21, Eliot Lear <lear@cisco.com> wrote:
> 3.  An as-of-yet undefined record that describes what services are runnin=
g
> over what protocols on a host.  Think of it as the old WKS record on
> steroids.  I've actually spec'd out the record and written some code for
> bind to test this idea, but it has its own set of costs: the first =E2=80=
=93 and
> biggest =E2=80=93 is that it scales linearly with the number of services =
that are to
> be advertised for a given host.  Put another way: you could just see the
> advice in an applicability statement "don't use me unless you really have
> to."

Just on this, it seems reasonable that the only necessary axis here is
version.  Having multiple records of the same type at the same node is
already possible for SRV for load balancing and failover reasons; this
would add one more reason: versioning.  Two axes is already a lot, a
third is bad enough.

> Use of SRV of any form with regard to TLS would require a substantial cha=
nge
> in how we clients validate hostnames.  I tell you from personal experienc=
e
> that having a new SAN "Other" type is not an easy thing to ask of CAs.

I don't see how you would conclude that.  If you are seeking
'example.com', then that is what you should look for in the
certificate.  It doesn't matter what you had to query the DNS for to
get an IP and port to get there.

This happens all the time already with CNAME records - the browser
still uses the *input* name to validate the certificate, not some
intermediate gunk.

--Martin


From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 11:11:04 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4B56621F879D for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 11:11:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.594
X-Spam-Level: 
X-Spam-Status: No, score=-10.594 tagged_above=-999 required=5 tests=[AWL=0.004, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, WEIRD_PORT=0.001]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dRcOZOjkBOFs for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 11:11:03 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id BCBEB21F8530 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 11:11:03 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYiLT-0000fl-Mk for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 19:09:55 +0000
Resent-Date: Wed, 14 Nov 2012 19:09:55 +0000
Resent-Message-Id: <E1TYiLT-0000fl-Mk@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <lear@cisco.com>) id 1TYiLN-0000eA-QO for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 19:09:49 +0000
Received: from ams-iport-3.cisco.com ([144.254.224.146]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <lear@cisco.com>) id 1TYiLM-0002nt-QJ for ietf-http-wg@w3.org; Wed, 14 Nov 2012 19:09:49 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1358; q=dns/txt; s=iport; t=1352920188; x=1354129788; h=message-id:date:from:mime-version:to:cc:subject: references:in-reply-to:content-transfer-encoding; bh=mkgxTHgY/TIgsVO9U8/APmoPSqnYFc/3Loldves/miM=; b=i2Vd55CszQUyHSgfpNGLmFO7JgP5y0PGvpfVA4zrusar7iKZFqTBiws6 y8Nxh4snTsx0rfkXHkXmnZSGP2VvgI5UBdqeN1jpA0VhBYv2n2E0IGVA4 ACDK6+j+RAZVOplrQloNW9qVAlz+6CLd67IuYsiiasohj873uuKKObDbq A=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AgAFABXro1CQ/khN/2dsb2JhbABEhh29G4EIgh4BAQEDARIBEFUBEAsYAgIFFgsCAgkDAgECAUUGDQEHAQEeh2IGmymNKJJugSKQJIETA5V8jliBa4JwgVweBg
X-IronPort-AV: E=McAfee;i="5400,1158,6896"; a="9570007"
Received: from ams-core-4.cisco.com ([144.254.72.77]) by ams-iport-3.cisco.com with ESMTP; 14 Nov 2012 19:09:21 +0000
Received: from dhcp-10-55-89-92.cisco.com (dhcp-10-55-89-92.cisco.com [10.55.89.92]) by ams-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id qAEJ9L8q022167 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Nov 2012 19:09:21 GMT
Message-ID: <50A3EC60.7070703@cisco.com>
Date: Wed, 14 Nov 2012 20:09:20 +0100
From: Eliot Lear <lear@cisco.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: Martin Thomson <martin.thomson@gmail.com>
CC: "Adrien W. de Croy" <adrien@qbik.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
References: <em0d5ce79f-10c2-40d3-af17-372199e38ab6@bombed> <50A38CDF.8040802@cisco.com> <CABkgnnXE1iW_COaqu-e_OK=y0ZE3Ry1YvtX6Vsq3vjvY3Tghrw@mail.gmail.com>
In-Reply-To: <CABkgnnXE1iW_COaqu-e_OK=y0ZE3Ry1YvtX6Vsq3vjvY3Tghrw@mail.gmail.com>
X-Enigmail-Version: 1.4.5
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=144.254.224.146; envelope-from=lear@cisco.com; helo=ams-iport-3.cisco.com
X-W3C-Hub-Spam-Status: No, score=-13.3
X-W3C-Hub-Spam-Report: AWL=-0.524, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.188, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, WEIRD_PORT=0.001
X-W3C-Scan-Sig: lisa.w3.org 1TYiLM-0002nt-QJ 7e1a254b924ed4282b1f0ab668372b3d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/50A3EC60.7070703@cisco.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15601
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 11/14/12 7:59 PM, Martin Thomson wrote:
> Just on this, it seems reasonable that the only necessary axis here is
> version.

Thank you for answering the question.
>   Having multiple records of the same type at the same node is
> already possible for SRV for load balancing and failover reasons; this
> would add one more reason: versioning.  Two axes is already a lot, a
> third is bad enough.

That's a fair point.  Question: how would you handle SRV with
http://www.example.com:49080?

Eliot


>
>> Use of SRV of any form with regard to TLS would require a substantial change
>> in how we clients validate hostnames.  I tell you from personal experience
>> that having a new SAN "Other" type is not an easy thing to ask of CAs.
> I don't see how you would conclude that.  If you are seeking
> 'example.com', then that is what you should look for in the
> certificate.  It doesn't matter what you had to query the DNS for to
> get an IP and port to get there.
>
> This happens all the time already with CNAME records - the browser
> still uses the *input* name to validate the certificate, not some
> intermediate gunk.
>

I'm saying that TLS processing of hosts with SRV records works
*sometimes* using other protocols, but at least in this circumstance in
thinking about it there is no need for SAN Others.

Eliot




From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 11:15:24 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5952421F8695 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 11:15:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.497
X-Spam-Level: 
X-Spam-Status: No, score=-7.497 tagged_above=-999 required=5 tests=[AWL=3.101, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, WEIRD_PORT=0.001]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GS2WIm6r3Tgv for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 11:15:22 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id D507221F85A2 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 11:15:22 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYiPq-0002iS-J5 for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 19:14:26 +0000
Resent-Date: Wed, 14 Nov 2012 19:14:26 +0000
Resent-Message-Id: <E1TYiPq-0002iS-J5@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1TYiPm-0002he-V5 for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 19:14:22 +0000
Received: from mail-la0-f43.google.com ([209.85.215.43]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1TYiPl-00030Q-W6 for ietf-http-wg@w3.org; Wed, 14 Nov 2012 19:14:22 +0000
Received: by mail-la0-f43.google.com with SMTP id z14so645820lag.2 for <ietf-http-wg@w3.org>; Wed, 14 Nov 2012 11:13:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=9JPT0fZK6Jmz9+KRPMqSaE3FeMF7sseTSXKyK/AUCkk=; b=Bwt9t6QRQFY36Mzu/6OXtDEvyUEXYNzoMQTeRggTLsbxQx6GygpMDQFjQC9ctfPDkU oNCIf8oPxObLHTc5QKR+NUDwSp5CXD4SUIsVm2uDdElOSuAAq8i7n6KJA+qG+J+9swUl fu0YsoeNU3DR4Z+QB+zU/0Q5weyBhKmVg6wisRLpymjgHg902Sr7PXRaEb8XgObYbIZX PbQu5EIen85nWIZu4I0LYiPVe/FszUiiqXHSNGA5iBSHS//jkHeyQyHn2bG2n8s8wMKl TBEWlSkT6pMeSgF45EOBAIY5N69xxjmdPDv9eP5Fhv65a97WLXN3wc4qC9iydDyixv5+ VJNg==
MIME-Version: 1.0
Received: by 10.152.144.69 with SMTP id sk5mr2898177lab.22.1352920435253; Wed, 14 Nov 2012 11:13:55 -0800 (PST)
Received: by 10.112.83.2 with HTTP; Wed, 14 Nov 2012 11:13:55 -0800 (PST)
In-Reply-To: <50A3EC60.7070703@cisco.com>
References: <em0d5ce79f-10c2-40d3-af17-372199e38ab6@bombed> <50A38CDF.8040802@cisco.com> <CABkgnnXE1iW_COaqu-e_OK=y0ZE3Ry1YvtX6Vsq3vjvY3Tghrw@mail.gmail.com> <50A3EC60.7070703@cisco.com>
Date: Wed, 14 Nov 2012 11:13:55 -0800
Message-ID: <CABkgnnUicPmyt3Y+c2Kiy36oKo2_XPXeyG3m2umO9VJbFm_LxA@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Eliot Lear <lear@cisco.com>
Cc: "Adrien W. de Croy" <adrien@qbik.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=209.85.215.43; envelope-from=martin.thomson@gmail.com; helo=mail-la0-f43.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.681, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, WEIRD_PORT=0.001
X-W3C-Scan-Sig: lisa.w3.org 1TYiPl-00030Q-W6 dc7c62744b27cda0956ed4a9f8960d6f
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/CABkgnnUicPmyt3Y+c2Kiy36oKo2_XPXeyG3m2umO9VJbFm_LxA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15602
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 14 November 2012 11:09, Eliot Lear <lear@cisco.com> wrote:
> That's a fair point.  Question: how would you handle SRV with
> http://www.example.com:49080?

That was raised in the meeting.  SRV isn't enough for that reason
alone.  I know too many hosts that operate on different ports.
Obviously, each port could be given a new name, but that eventually
leads to an increase in the number of wildcard certificates out there.


From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 11:15:54 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5536221F8799 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 11:15:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.525
X-Spam-Level: 
X-Spam-Status: No, score=-7.525 tagged_above=-999 required=5 tests=[AWL=3.073, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HTFQ8NQPkitD for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 11:15:53 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id D663721F872D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 11:15:52 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYiQs-0006jc-TS for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 19:15:30 +0000
Resent-Date: Wed, 14 Nov 2012 19:15:30 +0000
Resent-Message-Id: <E1TYiQs-0006jc-TS@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <hallam@gmail.com>) id 1TYiQm-0006gB-C5 for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 19:15:24 +0000
Received: from mail-ob0-f171.google.com ([209.85.214.171]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <hallam@gmail.com>) id 1TYiQk-00039N-Tu for ietf-http-wg@w3.org; Wed, 14 Nov 2012 19:15:24 +0000
Received: by mail-ob0-f171.google.com with SMTP id dn14so835557obc.2 for <ietf-http-wg@w3.org>; Wed, 14 Nov 2012 11:14:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=IEv+8Ir3aOgXPjmthGpUv6qC7VitILHivEiYMHqNs10=; b=jMvTZG5ss6DoKna+MA6n90bLy1ucCrIFjN1tOYKFkjZX2wBhHTOz9ihKYGZDWR3LJn XCHAHRrz165UUad6EiHZeBO+MlBYqj2oon1tDtJwDlmdK69Sq3nX3SVysgCheKXWE3ec TSLnXJSpJQQ0GVEFhW/B3eFjcVw6f9cp5q1/pKZ7664Es9CpP8gJckSWy8XpndPeQ6vZ TGWY4MYokjfqdGqiU5agf2EAViImyvQLLexiqQBWZkvhVhoyBGcoSDx8ZdaTXuBcDFOp U/jzUg2vfD9LfHimB5Sywc7IeOhI/w44LDPoVJcfzBl+O/kFZG4x7qjsNPVvWdX0F90h 5/hw==
MIME-Version: 1.0
Received: by 10.182.111.104 with SMTP id ih8mr21999741obb.13.1352920496939; Wed, 14 Nov 2012 11:14:56 -0800 (PST)
Received: by 10.76.27.103 with HTTP; Wed, 14 Nov 2012 11:14:56 -0800 (PST)
In-Reply-To: <50A38CDF.8040802@cisco.com>
References: <em0d5ce79f-10c2-40d3-af17-372199e38ab6@bombed> <50A38CDF.8040802@cisco.com>
Date: Wed, 14 Nov 2012 14:14:56 -0500
Message-ID: <CAMm+Lwg0ovJsAOLs9RZPNphP5Na_wKpLtCWKze=-gh_Ddz=jvQ@mail.gmail.com>
From: Phillip Hallam-Baker <hallam@gmail.com>
To: Eliot Lear <lear@cisco.com>
Cc: "Adrien W. de Croy" <adrien@qbik.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=14dae9340d5da1213d04ce795935
Received-SPF: pass client-ip=209.85.214.171; envelope-from=hallam@gmail.com; helo=mail-ob0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-3.1
X-W3C-Hub-Spam-Report: AWL=-2.322, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TYiQk-00039N-Tu e9fd2e9788cd37512edd1f23f2c2332f
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/CAMm+Lwg0ovJsAOLs9RZPNphP5Na_wKpLtCWKze=-gh_Ddz=jvQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15603
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--14dae9340d5da1213d04ce795935
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

It might be useful to distinguish service from protocol.

If we have an abstract service 'mail' then it might involve the use of
three separate existing application protocols SMTP, POP, IMAP plus new
protocols that do the same thing in XML, JSON or whatever you like.

SRV is only designed to support load balancing and failover. It does not
allow for announcing multiple protocols to do the same thing.


For HTTP the answer might seem rather simple, it is all just Web pages,
right?

But HTTP is also the transport for Web Services and those are much better
published as services in their own right. Say Gopple has a Web service
protocol for mapping and Aggle has a different protocol and they decide to
produce a common spec. The result is not going to be the same as either of
the input specs, it is going to be a third spec.

So now Gopple and Aggle will both be supporting at least two different Web
Service protocols and clients might support one, two or three of them. This
can't happen in the application protocol space because the network effects
and the fact that people can only use one client place heavy and early
pressure on convergence. But in the Web Services space the cost of
supporting multiple protocols is much lower and the convergence pressures
are much less. Witness the fact that none of the implementations of what
purports to be a single frame relay based payment protocol actually
inter-operate.

I have proposed sophisitcated proposals in the past but really what we need
for the purposes of HTTP/2.0 is much less.



On Wed, Nov 14, 2012 at 7:21 AM, Eliot Lear <lear@cisco.com> wrote:

>  Adrian,
>
> My question is how important is it to make use of different transport
> protocols?  I'm asking because there are at least three approaches that w=
e
> can take to address DNS:
>
> 1.  SRV.  SRV is just fine at providing indirection for host and port, bu=
t
> not for protocol, and not in such a pretty way when a port number is
> specified.  The cost is typically one query per host, which can SOMETIMES
> be included in additional information, when the zone is the same, and whe=
n
> the client considers additional information.
> 2.  NAPTR combined with SRV.  This provides an additional level of
> indirection to allow the choice of protocol.  SIP uses this.  The cost is
> two fold: an additional query plus some additional complexity in terms of
> processing NAPTR.  It also would prove challenging to handle the case whe=
re
> different HTTP servers are running on the same host.
> 3.  An as-of-yet undefined record that describes what services are runnin=
g
> over what protocols on a host.  Think of it as the old WKS record on
> steroids.  I've actually spec'd out the record and written some code for
> bind to test this idea, but it has its own set of costs: the first =96 an=
d
> biggest =96 is that it scales linearly with the number of services that a=
re
> to be advertised for a given host.  Put another way: you could just see t=
he
> advice in an applicability statement "don't use me unless you really have
> to."
>
> One other note about SRV:
>
> Use of SRV of any form with regard to TLS would require a substantial
> change in how we clients validate hostnames.  I tell you from personal
> experience that having a new SAN "Other" type is *not* an easy thing to
> ask of CAs.
>
> Comments please?
>
> Eliot
>
>
>
>
> On 11/14/12 9:05 AM, Adrien W. de Croy wrote:
>
>
> IMO it's a real shame that the designers of the SRV record decided to cod=
e
> the transport protocol into the record name, rather than the record data.
>
> It means the client must pre-suppose what the transport protocol must be
> before doing the lookup, whereas if the transport were in the record, it
> would become server-driven, and extensible, e.g. add tls-over-tcp to
> indicate that the server is available over tls on tcp.
>
> Then you'd just look up something like _service.name and get back
> everything you needed to make a connection, e.g. the server, transport an=
d
> sub-channel (e.g. port number or whatever describes the sub-channel for t=
he
> transport).
>
> Adrien
>
> ------ Original Message ------
> From: "Eliot Lear" <lear@cisco.com> <lear@cisco.com>
> To: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.orgGroup>
> <ietf-http-wg@w3.org> <ietf-http-wg@w3.org>
> Sent: 14/11/2012 4:07:18 a.m.
> Subject: on DNS records
>
> As I promised last week, I've substantially developed a draft (and some
> code) to look more closely at whether a DNS record can be helpful.  Befor=
e
> I get it out there, I wanted to check goals.  The situation is this: ther=
e
> is a 2.0-enabled client and it must determine whether or not the other en=
d
> can speak 2.0.  Gabriel and Willy have already shown us that it can be do=
ne
> INSIDE the protocol at the expense of one roundtrip, but at the risk of a
> proxy doing the wrong thing (a classic case being that it allows an
> Upgrade: header but then barfs all over the upgrade).  So let's state our
> goals:
>
> 1.  Keep latency down.
>
>    - First, is this a reasonable goal?
>    - Can it reasonably be done better than what Willy & Gabriel have laid
>    out?
>
> 2.  Transport Protocol Discovery
>
>    - Some have suggested that it would be useful to do HTTP over UDP or
>    SCTP.  Is that something that is a reasonable goal?
>
> 3.  Handle the case where multiple instances of the same application
> protocol reside on the same host, but on different ports.
>
>    - Is this a reasonable goal?
>
> 4.  No new URI schema
>
>    - Address the 'side of the bus' problem.
>    - Is this a reasonable goal?
>
>
> Does this about cover it?  I claim we can solve all four, but not easily
> with SRV.
>
> Eliot
>
>
>


--=20
Website: http://hallambaker.com/

--14dae9340d5da1213d04ce795935
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

It might be useful to distinguish service from protocol.<div><br></div><div=
>If we have an abstract service &#39;mail&#39; then it might involve the us=
e of three separate existing application protocols SMTP, POP, IMAP plus new=
 protocols that do the same thing in XML, JSON or whatever you like.</div>
<div><br></div><div>SRV is only designed to support load balancing and fail=
over. It does not allow for announcing multiple protocols to do the same th=
ing.</div><div><br></div><div><br></div><div>For HTTP the answer might seem=
 rather simple, it is all just Web pages, right?</div>
<div><br></div><div>But HTTP is also the transport for Web Services and tho=
se are much better published as services in their own right. Say Gopple has=
 a Web service protocol for mapping and Aggle has a different protocol and =
they decide to produce a common spec. The result is not going to be the sam=
e as either of the input specs, it is going to be a third spec.=A0</div>
<div><br></div><div>So now Gopple and Aggle will both be supporting at leas=
t two different Web Service protocols and clients might support one, two or=
 three of them. This can&#39;t happen in the application protocol space bec=
ause the network effects and the fact that people can only use one client p=
lace heavy and early pressure on convergence. But in the Web Services space=
 the cost of supporting multiple protocols is much lower and the convergenc=
e pressures are much less. Witness the fact that none of the implementation=
s of what purports to be a single frame relay based payment protocol actual=
ly inter-operate.</div>
<div><br></div><div>I have proposed sophisitcated proposals in the past but=
 really what we need for the purposes of HTTP/2.0 is much less.</div><div><=
br></div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On W=
ed, Nov 14, 2012 at 7:21 AM, Eliot Lear <span dir=3D"ltr">&lt;<a href=3D"ma=
ilto:lear@cisco.com" target=3D"_blank">lear@cisco.com</a>&gt;</span> wrote:=
<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
 =20
   =20
 =20
  <div bgcolor=3D"#FFFFFF" text=3D"#000000">
    Adrian,<br>
    <br>
    My question is how important is it to make use of different
    transport protocols?=A0 I&#39;m asking because there are at least three
    approaches that we can take to address DNS:<br>
    <br>
    1.=A0 SRV.=A0 SRV is just fine at providing indirection for host and
    port, but not for protocol, and not in such a pretty way when a port
    number is specified.=A0 The cost is typically one query per host,
    which can SOMETIMES be included in additional information, when the
    zone is the same, and when the client considers additional
    information.<br>
    2.=A0 NAPTR combined with SRV.=A0 This provides an additional level of
    indirection to allow the choice of protocol.=A0 SIP uses this.=A0 The
    cost is two fold: an additional query plus some additional
    complexity in terms of processing NAPTR.=A0 It also would prove
    challenging to handle the case where different HTTP servers are
    running on the same host.<br>
    3.=A0 An as-of-yet undefined record that describes what services are
    running over what protocols on a host.=A0 Think of it as the old WKS
    record on steroids.=A0 I&#39;ve actually spec&#39;d out the record and =
written
    some code for bind to test this idea, but it has its own set of
    costs: the first =96 and biggest =96 is that it scales linearly with th=
e
    number of services that are to be advertised for a given host.=A0 Put
    another way: you could just see the advice in an applicability
    statement &quot;don&#39;t use me unless you really have to.&quot;<br>
    <br>
    One other note about SRV:<br>
    <br>
    Use of SRV of any form with regard to TLS would require a
    substantial change in how we clients validate hostnames.=A0 I tell you
    from personal experience that having a new SAN &quot;Other&quot; type i=
s <b>not</b>
    an easy thing to ask of CAs.<br>
    <br>
    Comments please?<span class=3D"HOEnZb"><font color=3D"#888888"><br>
    <br>
    Eliot</font></span><div><div class=3D"h5"><br>
    <br>
    <br>
    <br>
    <div>On 11/14/12 9:05 AM, Adrien W. de Croy
      wrote:<br>
    </div>
    <blockquote type=3D"cite">
     =20
     =20
      <div>=A0</div>
      <div>IMO it&#39;s a real shame that the designers of the SRV record
        decided to code the transport protocol into the record name,
        rather than the record data.</div>
      <div>=A0</div>
      <div>It means the client must pre-suppose what the transport
        protocol must be before doing the lookup, whereas if the
        transport were in the record, it would become server-driven, and
        extensible, e.g. add tls-over-tcp to indicate that the server is
        available over tls=A0on tcp.</div>
      <div>=A0</div>
      <div>Then you&#39;d just look up something like _<a href=3D"http://se=
rvice.name" target=3D"_blank">service.name</a> and get
        back everything you needed to make a connection, e.g. the
        server, transport and sub-channel (e.g. port number or whatever
        describes the sub-channel for the transport).</div>
      <div>=A0</div>
      <div>Adrien</div>
      <div><br>
        ------ Original Message ------<br>
        From: &quot;Eliot Lear&quot; <a href=3D"mailto:lear@cisco.com" targ=
et=3D"_blank">&lt;lear@cisco.com&gt;</a><br>
        To: <a href=3D"mailto:ietf-http-wg@w3.orgGroup" target=3D"_blank">&=
quot;ietf-http-wg@w3.org Group&quot;</a> <a href=3D"mailto:ietf-http-wg@w3.=
org" target=3D"_blank">&lt;ietf-http-wg@w3.org&gt;</a><br>
        Sent: 14/11/2012 4:07:18 a.m.<br>
        Subject: on DNS records<br>
      </div>
      <blockquote cite=3D"http://50A26226.10906@cisco.com" type=3D"cite">
        <div>As I promised last
          week, I&#39;ve substantially developed a draft (and some code) to
          look more closely at whether a DNS record can be helpful.=A0
          Before I get it out there, I wanted to check goals.=A0 The
          situation is this: there is a 2.0-enabled client and it must
          determine whether or not the other end can speak 2.0.=A0 Gabriel
          and Willy have already shown us that it can be done INSIDE the
          protocol at the expense of one roundtrip, but at the risk of a
          proxy doing the wrong thing (a classic case being that it
          allows an Upgrade: header but then barfs all over the
          upgrade).=A0 So let&#39;s state our goals:<br>
          <br>
          1.=A0 Keep latency down.<br>
          <ul>
            <li>First, is this a reasonable goal? </li>
            <li>Can it reasonably be done better than what Willy &amp;
              Gabriel have laid out? </li>
          </ul>
          2.=A0 Transport Protocol Discovery<br>
          <ul>
            <li>Some have suggested that it would be useful to do HTTP
              over UDP or SCTP.=A0 Is that something that is a reasonable
              goal? </li>
          </ul>
          <p>3.=A0 Handle the case where multiple instances of the same
            application protocol reside on the same host, but on
            different ports.<br>
          </p>
          <ul>
            <li>Is this a reasonable goal? </li>
          </ul>
          <p>4.=A0 No new URI schema<br>
          </p>
          <ul>
            <li>Address the &#39;side of the bus&#39; problem. </li>
            <li>Is this a reasonable goal? </li>
          </ul>
          <br>
          Does this about cover it?=A0 I claim we can solve all four, but
          not easily with SRV.<br>
          <br>
          Eliot<br>
        </div>
      </blockquote>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>Website: <a =
href=3D"http://hallambaker.com/">http://hallambaker.com/</a><br><br>
</div>

--14dae9340d5da1213d04ce795935--


From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 11:20:14 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 53D6221F8444 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 11:20:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.594
X-Spam-Level: 
X-Spam-Status: No, score=-10.594 tagged_above=-999 required=5 tests=[AWL=0.004, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, WEIRD_PORT=0.001]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5zEG+p-QZYEh for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 11:20:13 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 753B921F8552 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 11:20:06 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYiUY-0007RC-CI for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 19:19:18 +0000
Resent-Date: Wed, 14 Nov 2012 19:19:18 +0000
Resent-Message-Id: <E1TYiUY-0007RC-CI@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <lear@cisco.com>) id 1TYiUT-0007Q7-Tg for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 19:19:13 +0000
Received: from ams-iport-2.cisco.com ([144.254.224.141]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <lear@cisco.com>) id 1TYiUS-0003R2-Tt for ietf-http-wg@w3.org; Wed, 14 Nov 2012 19:19:13 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=670; q=dns/txt; s=iport; t=1352920752; x=1354130352; h=message-id:date:from:mime-version:to:cc:subject: references:in-reply-to:content-transfer-encoding; bh=B9bgCQUdMVmR0GVBnFs5j3QC8pUgzwLvb4FjX/Az5kI=; b=hJvagvRFO2CR3xW8SfIhe/+Y7zz4z40qblYGHn74N/ybFWtaphC+Br+5 AazOYiTcp1jdmZ7zYNmNgHB2PGq1KRMdb1TnYxCEHdONoEGRaoJBaeTI3 tE1YLTP0sGuPntop9AxDXcthFhR2S1B39eUKQyXhYM1WmtC5cRqXAiy1Z Y=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ar4JAK/ro1CQ/khN/2dsb2JhbABEhVZHvBEEBIECgQiCHgEBAQQSARBVARALGAICBRYLAgIJAwIBAgFFBg0BBQIBAR6HaJsmjSiSa4EiiwuFGYETA5V8jliBa4Jw
X-IronPort-AV: E=McAfee;i="5400,1158,6896"; a="78232040"
Received: from ams-core-4.cisco.com ([144.254.72.77]) by ams-iport-2.cisco.com with ESMTP; 14 Nov 2012 19:18:46 +0000
Received: from dhcp-10-55-89-92.cisco.com (dhcp-10-55-89-92.cisco.com [10.55.89.92]) by ams-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id qAEJIjWO023951 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Nov 2012 19:18:46 GMT
Message-ID: <50A3EE95.5090905@cisco.com>
Date: Wed, 14 Nov 2012 20:18:45 +0100
From: Eliot Lear <lear@cisco.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: Martin Thomson <martin.thomson@gmail.com>
CC: "Adrien W. de Croy" <adrien@qbik.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
References: <em0d5ce79f-10c2-40d3-af17-372199e38ab6@bombed> <50A38CDF.8040802@cisco.com> <CABkgnnXE1iW_COaqu-e_OK=y0ZE3Ry1YvtX6Vsq3vjvY3Tghrw@mail.gmail.com> <50A3EC60.7070703@cisco.com> <CABkgnnUicPmyt3Y+c2Kiy36oKo2_XPXeyG3m2umO9VJbFm_LxA@mail.gmail.com>
In-Reply-To: <CABkgnnUicPmyt3Y+c2Kiy36oKo2_XPXeyG3m2umO9VJbFm_LxA@mail.gmail.com>
X-Enigmail-Version: 1.4.5
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=144.254.224.141; envelope-from=lear@cisco.com; helo=ams-iport-2.cisco.com
X-W3C-Hub-Spam-Status: No, score=-13.2
X-W3C-Hub-Spam-Report: AWL=-0.449, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.188, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, WEIRD_PORT=0.001
X-W3C-Scan-Sig: lisa.w3.org 1TYiUS-0003R2-Tt 9bc812f6ae9b84f679245e907b36203d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/50A3EE95.5090905@cisco.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15604
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Martin,
On 11/14/12 8:13 PM, Martin Thomson wrote:
> On 14 November 2012 11:09, Eliot Lear <lear@cisco.com> wrote:
>> That's a fair point.  Question: how would you handle SRV with
>> http://www.example.com:49080?
> That was raised in the meeting.  SRV isn't enough for that reason
> alone.  I know too many hosts that operate on different ports.
> Obviously, each port could be given a new name, but that eventually
> leads to an increase in the number of wildcard certificates out there.
>
>

Thanks.  So you would prefer some other record that simply indicates
what version runs on what port and dump transport protocol?  What do
others think?

Eliot


From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 12:01:21 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3F57021F84C5 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 12:01:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.058
X-Spam-Level: 
X-Spam-Status: No, score=-7.058 tagged_above=-999 required=5 tests=[AWL=2.339, BAYES_00=-2.599, HTML_MESSAGE=0.001, J_CHICKENPOX_13=0.6, J_CHICKENPOX_23=0.6, RCVD_IN_DNSWL_HI=-8, WEIRD_PORT=0.001]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NyEXnfhZDJJD for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 12:01:20 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 2E89521F8825 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 12:00:46 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYj7I-0000bJ-SR for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 19:59:20 +0000
Resent-Date: Wed, 14 Nov 2012 19:59:20 +0000
Resent-Message-Id: <E1TYj7I-0000bJ-SR@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <hallam@gmail.com>) id 1TYj7E-0000ae-2R for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 19:59:16 +0000
Received: from mail-ob0-f171.google.com ([209.85.214.171]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <hallam@gmail.com>) id 1TYj7C-0004t1-P3 for ietf-http-wg@w3.org; Wed, 14 Nov 2012 19:59:16 +0000
Received: by mail-ob0-f171.google.com with SMTP id dn14so889659obc.2 for <ietf-http-wg@w3.org>; Wed, 14 Nov 2012 11:58:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=OXyUy2XhvxTjXGzn7NgaeBRqoqbHSR09MfQT1lVcN4k=; b=CZ/mTVLnVMGio4+QssZvrdLjC5LmNMQlMiFf3Y/uMgRU+7Zjb0fnLrkYte7oXCJ0Vc 3VHJfcCCt/MEU25VVUYz3BKXvNh9KzX1ayAR33XOjn3T2kZ+kAN/XSlOspf9aSsaX1AK y2zF00Gn852R/tqqA+yB2i+gj5vCC+Ks2eEuDuxKppHGL6czPNWH+sSQqssISiXH0frB i0LDkONsaGJAkOE9fqA2njBhGlo/CzXREwE7oCUy9sfKSvr+lYc3kei0FxgX3oTJFMFH cPAc6f4a2Ihu+VmWYv6W4uLG7AG7Ji25sFGCkHT4a5JxD/qg8Zo3mml6BadAzg/2KBdl 4xdQ==
MIME-Version: 1.0
Received: by 10.182.240.109 with SMTP id vz13mr18230589obc.81.1352923128859; Wed, 14 Nov 2012 11:58:48 -0800 (PST)
Received: by 10.76.27.103 with HTTP; Wed, 14 Nov 2012 11:58:48 -0800 (PST)
In-Reply-To: <50A3EE95.5090905@cisco.com>
References: <em0d5ce79f-10c2-40d3-af17-372199e38ab6@bombed> <50A38CDF.8040802@cisco.com> <CABkgnnXE1iW_COaqu-e_OK=y0ZE3Ry1YvtX6Vsq3vjvY3Tghrw@mail.gmail.com> <50A3EC60.7070703@cisco.com> <CABkgnnUicPmyt3Y+c2Kiy36oKo2_XPXeyG3m2umO9VJbFm_LxA@mail.gmail.com> <50A3EE95.5090905@cisco.com>
Date: Wed, 14 Nov 2012 14:58:48 -0500
Message-ID: <CAMm+LwjdpGN3P1gZFxPsuwFNyJa_LThX0jabBwB9Bsigmqa=cw@mail.gmail.com>
From: Phillip Hallam-Baker <hallam@gmail.com>
To: Eliot Lear <lear@cisco.com>
Cc: Martin Thomson <martin.thomson@gmail.com>, "Adrien W. de Croy" <adrien@qbik.com>,  "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=14dae93a1581810caa04ce79f601
Received-SPF: pass client-ip=209.85.214.171; envelope-from=hallam@gmail.com; helo=mail-ob0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-4.3
X-W3C-Hub-Spam-Report: AWL=-1.563, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, WEIRD_PORT=0.001
X-W3C-Scan-Sig: maggie.w3.org 1TYj7C-0004t1-P3 d5145197f6f26988e3c5196d9b47a485
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/CAMm+LwjdpGN3P1gZFxPsuwFNyJa_LThX0jabBwB9Bsigmqa=cw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15605
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--14dae93a1581810caa04ce79f601
Content-Type: text/plain; charset=ISO-8859-1

Well there are two things here that have the name http

1) The http: URL prefix
2) The HTTP protocol

These are two separate things.

Resolving the first requires the domain and the port (and possibly a method
identifier). The second is where SRV might come in.

So a layered resolution protocol might look something like:

To resolve: http://example.com:2033/fooo

First take the XXX record using the port and protocol as modifiers:

_2033._http.example.com XXX "v=2.0 d=srv tls=r"

This says use http/2.0 as the transport protocol use SRV for discovery and
TLS is required.


The ability to specify the discovery mechanism in the XXX record permits a
site to use SRV or URI or some completely new discovery scheme. We decouple
the URL resolution mechanism from everything else. People could even use
NAPTR if they must.

A really simple deployment would just omit the discovery (d) attribute
entirely and it would fallback to A or AAAA discovery depending on how
people want to be.


In a more complex environment there might be a desire to specify protocol
version on a per host basis. In this case the initial XXX record would have
to announce the protocol variants on offer and then these would form
additional prefixes to the corresponding discovery records:

_2033._http.example.com XXX "v=2.0 v=1.1 vd=srv tls=r"
_1_1._http._tcp.example.com SRV 1 1 80 www1.example.com
_2_2._http._tcp.example.com SRV 1 1 80 www2.example.com


Alternatively people might want to treat port numbers as second layer
decorations in the same way as protocol versions. This has advantages for
use of DNS wildcarding but for reasons I don't want to explain a particular
DNS RR type should NEVER have a prefix or ALWAYS have a prefix. Mixing the
two cases causes horrible corner cases to surface. Only a record that NEVER
takes a prefix should be wildcarded unless you want horrible things to
happen.



On Wed, Nov 14, 2012 at 2:18 PM, Eliot Lear <lear@cisco.com> wrote:

> Martin,
> On 11/14/12 8:13 PM, Martin Thomson wrote:
> > On 14 November 2012 11:09, Eliot Lear <lear@cisco.com> wrote:
> >> That's a fair point.  Question: how would you handle SRV with
> >> http://www.example.com:49080?
> > That was raised in the meeting.  SRV isn't enough for that reason
> > alone.  I know too many hosts that operate on different ports.
> > Obviously, each port could be given a new name, but that eventually
> > leads to an increase in the number of wildcard certificates out there.
> >
> >
>
> Thanks.  So you would prefer some other record that simply indicates
> what version runs on what port and dump transport protocol?  What do
> others think?
>
> Eliot
>
>


-- 
Website: http://hallambaker.com/

--14dae93a1581810caa04ce79f601
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Well there are two things here that have the name http<div><br></div><div>1=
) The http: URL prefix</div><div>2) The HTTP protocol</div><div><br></div><=
div>These are two separate things.</div><div><br></div><div>Resolving the f=
irst requires the domain and the port (and possibly a method identifier). T=
he second is where SRV might come in.</div>
<div><br></div><div>So a layered resolution protocol might look something l=
ike:</div><div><br></div><div>To resolve: <a href=3D"http://example.com:203=
3/fooo">http://example.com:2033/fooo</a><br></div><div><br></div><div>First=
 take the XXX record using the port and protocol as modifiers:</div>
<div><br></div><div>_2033._<a href=3D"http://http.example.com">http.example=
.com</a> XXX &quot;v=3D2.0 d=3Dsrv tls=3Dr&quot;</div><div><br></div><div>T=
his says use http/2.0 as the transport protocol use SRV for discovery and T=
LS is required.</div>
<div><br></div><div><br></div><div>The ability to specify the discovery mec=
hanism in the XXX record permits a site to use SRV or URI or some completel=
y new discovery scheme. We decouple the URL resolution mechanism from every=
thing else. People could even use NAPTR if they must.</div>
<div><br></div><div>A really simple deployment would just omit the discover=
y (d) attribute entirely and it would fallback to A or AAAA discovery depen=
ding on how people want to be.</div><div><br></div><div><br></div><div>
In a more complex environment there might be a desire to specify protocol v=
ersion on a per host basis. In this case the initial XXX record would have =
to announce the protocol variants on offer and then these would form additi=
onal prefixes to the corresponding discovery records:</div>
<div><br></div><div>_2033._<a href=3D"http://http.example.com">http.example=
.com</a> XXX &quot;v=3D2.0 v=3D1.1 vd=3Dsrv tls=3Dr&quot;</div><div>_1_1._h=
ttp._<a href=3D"http://tcp.example.com">tcp.example.com</a> SRV 1 1 80 <a h=
ref=3D"http://www1.example.com">www1.example.com</a></div>
<div>_2_2._http._<a href=3D"http://tcp.example.com">tcp.example.com</a> SRV=
 1 1 80 <a href=3D"http://www2.example.com">www2.example.com</a><br></div><=
div><br></div><div><br></div><div>Alternatively people might want to treat =
port numbers as second layer decorations in the same way as protocol versio=
ns. This has advantages for use of DNS wildcarding but for reasons I don&#3=
9;t want to explain a particular DNS RR type should NEVER have a prefix or =
ALWAYS have a prefix. Mixing the two cases causes horrible corner cases to =
surface. Only a record that NEVER takes a prefix should be wildcarded unles=
s you want horrible things to happen.</div>
<div><br></div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote=
">On Wed, Nov 14, 2012 at 2:18 PM, Eliot Lear <span dir=3D"ltr">&lt;<a href=
=3D"mailto:lear@cisco.com" target=3D"_blank">lear@cisco.com</a>&gt;</span> =
wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Martin,<br>
<div><div class=3D"h5">On 11/14/12 8:13 PM, Martin Thomson wrote:<br>
&gt; On 14 November 2012 11:09, Eliot Lear &lt;<a href=3D"mailto:lear@cisco=
.com">lear@cisco.com</a>&gt; wrote:<br>
&gt;&gt; That&#39;s a fair point. =A0Question: how would you handle SRV wit=
h<br>
&gt;&gt; <a href=3D"http://www.example.com:49080" target=3D"_blank">http://=
www.example.com:49080</a>?<br>
&gt; That was raised in the meeting. =A0SRV isn&#39;t enough for that reaso=
n<br>
&gt; alone. =A0I know too many hosts that operate on different ports.<br>
&gt; Obviously, each port could be given a new name, but that eventually<br=
>
&gt; leads to an increase in the number of wildcard certificates out there.=
<br>
&gt;<br>
&gt;<br>
<br>
</div></div>Thanks. =A0So you would prefer some other record that simply in=
dicates<br>
what version runs on what port and dump transport protocol? =A0What do<br>
others think?<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
Eliot<br>
<br>
</font></span></blockquote></div><br><br clear=3D"all"><div><br></div>-- <b=
r>Website: <a href=3D"http://hallambaker.com/">http://hallambaker.com/</a><=
br><br>
</div>

--14dae93a1581810caa04ce79f601--


From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 13:01:27 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 865DE21F86FF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 13:01:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.598
X-Spam-Level: 
X-Spam-Status: No, score=-10.598 tagged_above=-999 required=5 tests=[AWL=-0.000, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, WEIRD_PORT=0.001]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H7e8F5Y4thbK for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 13:01:27 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id DDBD121F8695 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 13:01:26 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYk3X-0000VC-9a for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 20:59:31 +0000
Resent-Date: Wed, 14 Nov 2012 20:59:31 +0000
Resent-Message-Id: <E1TYk3X-0000VC-9a@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <adrien@qbik.com>) id 1TYk3T-0000UX-7j for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 20:59:27 +0000
Received: from smtp.qbik.com ([210.55.214.35]) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <adrien@qbik.com>) id 1TYk3R-0007Ph-5E for ietf-http-wg@w3.org; Wed, 14 Nov 2012 20:59:27 +0000
Received: From [192.168.0.10] (unverified [192.168.0.10]) by SMTP Server [192.168.0.1] (WinGate SMTP Receiver v7.3.0 (Build 3464)) with SMTP id <0019357519@smtp.qbik.com>; Thu, 15 Nov 2012 09:59:22 +1300
From: "Adrien W. de Croy" <adrien@qbik.com>
To: "Eliot Lear" <lear@cisco.com>, "Martin Thomson" <martin.thomson@gmail.com>
Cc: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Date: Wed, 14 Nov 2012 20:59:11 +0000
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; format=flowed; charset=utf-8
In-Reply-To: <50A3EC60.7070703@cisco.com>
Message-Id: <emb30f9c49-b2c2-4e2c-821f-b6e332d9b244@bombed>
Mime-Version: 1.0
Reply-To: "Adrien W. de Croy" <adrien@qbik.com>
User-Agent: eM_Client/4.0.15145.0
Received-SPF: pass client-ip=210.55.214.35; envelope-from=adrien@qbik.com; helo=smtp.qbik.com
X-W3C-Hub-Spam-Status: No, score=-4.5
X-W3C-Hub-Spam-Report: AWL=-2.406, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.188, SPF_PASS=-0.001, WEIRD_PORT=0.001
X-W3C-Scan-Sig: maggie.w3.org 1TYk3R-0007Ph-5E d690d58bb2be7433a1270f8e62a70e06
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/emb30f9c49-b2c2-4e2c-821f-b6e332d9b244@bombed>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15606
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

------ Original Message ------
From: "Eliot Lear" <lear@cisco.com>
>On 11/14/12 7:59 PM, Martin Thomson wrote:
>
>
>>
>>  Having multiple records of the same type at the same node is
>>already possible for SRV for load balancing and failover reasons; this
>>would add one more reason: versioning.  Two axes is already a lot, a
>>third is bad enough.
>>
>
>
>That's a fair point.  Question: how would you handle SRV with
>http://www.example.com:49080?
>

in the case of SRV, then 49080 would override port advertised in SRV=20
record.

In the case of new RR type, you'd have an unambiguous way to advertise=20
in the record to use default or URI-specified port.

But really, in most cases, by allowing advertisement of port for a=20
site, people would possibly use a new site / host name instead of=20
specifying a new port (except for backward compatibility issues I guess)

I don't know if such a thing exists already in SRV - what happens if=20
you say port 0, does that mean just use the default port for the=20
protocol?

>
>
>Eliot
>
>
>
>>>
>>>Use of SRV of any form with regard to TLS would require a substantial=
 change
>>>in how we clients validate hostnames.  I tell you from personal experien=
ce
>>>that having a new SAN "Other" type is not an easy thing to ask of CAs.
>>>
>>
>>I don't see how you would conclude that.  If you are seeking
>>'example.com', then that is what you should look for in the
>>certificate.  It doesn't matter what you had to query the DNS for to
>>get an IP and port to get there.
>>
>>This happens all the time already with CNAME records - the browser
>>still uses the *input* name to validate the certificate, not some
>>intermediate gunk.
>>
>>
>
>
>I'm saying that TLS processing of hosts with SRV records works
>*sometimes* using other protocols, but at least in this circumstance in
>thinking about it there is no need for SAN Others.
>
>Eliot
>
>
>
>



From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 14:12:52 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9EFDB21F857C for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 14:12:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.695
X-Spam-Level: 
X-Spam-Status: No, score=-5.695 tagged_above=-999 required=5 tests=[AWL=4.903, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, WEIRD_PORT=0.001]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hIWTNpITsqWP for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 14:12:52 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id C826021F8836 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 14:12:51 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYlAe-0002o9-Cf for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 22:10:56 +0000
Resent-Date: Wed, 14 Nov 2012 22:10:56 +0000
Resent-Message-Id: <E1TYlAe-0002o9-Cf@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TYlAa-0002mP-37 for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 22:10:52 +0000
Received: from 1wt.eu ([62.212.114.60]) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TYlAV-0001cI-J3 for ietf-http-wg@w3.org; Wed, 14 Nov 2012 22:10:52 +0000
Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id qAEMAFk5024902; Wed, 14 Nov 2012 23:10:15 +0100
Date: Wed, 14 Nov 2012 23:10:15 +0100
From: Willy Tarreau <w@1wt.eu>
To: Eliot Lear <lear@cisco.com>
Cc: Martin Thomson <martin.thomson@gmail.com>, "Adrien W. de Croy" <adrien@qbik.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Message-ID: <20121114221015.GK18082@1wt.eu>
References: <em0d5ce79f-10c2-40d3-af17-372199e38ab6@bombed> <50A38CDF.8040802@cisco.com> <CABkgnnXE1iW_COaqu-e_OK=y0ZE3Ry1YvtX6Vsq3vjvY3Tghrw@mail.gmail.com> <50A3EC60.7070703@cisco.com> <CABkgnnUicPmyt3Y+c2Kiy36oKo2_XPXeyG3m2umO9VJbFm_LxA@mail.gmail.com> <50A3EE95.5090905@cisco.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <50A3EE95.5090905@cisco.com>
User-Agent: Mutt/1.4.2.3i
Received-SPF: pass client-ip=62.212.114.60; envelope-from=w@1wt.eu; helo=1wt.eu
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: AWL=-2.016, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.188, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, WEIRD_PORT=0.001
X-W3C-Scan-Sig: maggie.w3.org 1TYlAV-0001cI-J3 30c43b3a66a695727ad735a0aaf610b1
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/20121114221015.GK18082@1wt.eu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15607
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Wed, Nov 14, 2012 at 08:18:45PM +0100, Eliot Lear wrote:
> Martin,
> On 11/14/12 8:13 PM, Martin Thomson wrote:
> > On 14 November 2012 11:09, Eliot Lear <lear@cisco.com> wrote:
> >> That's a fair point.  Question: how would you handle SRV with
> >> http://www.example.com:49080?
> > That was raised in the meeting.  SRV isn't enough for that reason
> > alone.  I know too many hosts that operate on different ports.
> > Obviously, each port could be given a new name, but that eventually
> > leads to an increase in the number of wildcard certificates out there.
> >
> >
> 
> Thanks.  So you would prefer some other record that simply indicates
> what version runs on what port and dump transport protocol?  What do
> others think?

That was one of the issue I raised several times a few months ago
explaining why I think DNS alone cannot be a solution.

The problem we have with DNS is that it's only server-centric. One single
authority decides what to advertise as the way to connect to their site.
That can work for new ports. But not for port 80. The reason is that on
port 80, you have many components along the chain doing many things such
as simple protocol inspection, load balancing, proxying, caching, etc...
that neither the server not the client sides are aware of !

Thus it's foolish to assume that a different protocol can be talked on port
80 without prior upgrade.

Using DNS to advertise a different port could be a solution to avoid the
HTTP Upgrade, because it could allow users to detect that HTTP/2.0 is
spoken natively on a specific port on the server. However it would still
not take into account the fact that client-side filtering on firewalls
and proxies generally don't allow unknown ports to pass.

A new problem with advertising random ports in DNS records is that it
would be much harder to gain unfiltered access than by advertising only
a standardized port. And if we have a standard port we don't need to
advertise the port in the DNS record.

Ports still cause two new troubles :
  - how to decide what protocol version to use on port XYZ ? (I've seen
    Phillip's proposal, I still think that another natural solution would
    be a dedicated scheme)

  - how can we know that the new port it controlled by the same authorities
    as ports 80/443 along the whole path ?

I'm still thinking that we should do more research on the scheme :

   - keep "http://" as the default scheme which MUST only speak HTTP/1.x
     because that has always been the case. A temptative Upgrade to 2.0
     is encouraged but both the clients and the server know that this
     upgrade is optional, may fail and the traffic may remain HTTP/1.

   - have "https://" use the TLS NPN extension to announce support for
     the protocol on both sides. I should say on "all" sides, because TLS
     is a transport protocol and as such is hop-by-hop : if intercepted,
     the interceptor's capabilities are used. At least this has proved to
     work well for SPDY and I don't see why we should refrain from using
     this for HTTP/2.

   - have "http2://" as the optimal replacement scheme for the long term,
     on a dedicated well-known port. To the opponents of the new scheme,
     I would say that this has worked for http->https, and I don't see
     any reason for this not to work again, quite the opposite. In fact,
     there would be much incentive to migrate to support this scheme as
     there would possibly be some performance benefits by doing so. And
     just like many web sites still support https and http for the few
     https-impaired users, we would have https/http2 by default, and
     http as the fallback for those who can only use port 80.

Obviously the switch will take time, a few years to get a fairly common
adoption, but this way we're sure to always provide an upgradable path
from HTTP/1, and without breaking what has been assumed for decades (eg:
http://x.y.z:port/ is http and not anything else, then we'd equally
have http2://x.y.z:port/ be http2 and not http).

So in the end, we'd get the following possibilities to connect to a web
site from a user agent :

  - if scheme is "https://", use the best HTTP version advertised as NPN
    by the server ;

  - if scheme is "http2://", use raw HTTP/2 exclusively over the designated
    port and report an error if it fails (as we do right now with https).
    THIS is what will drive quick opening of the new port on the client side.

  - if scheme is "http://", attempt an 1.1->2.0 Upgrade over the designated
    port, with the possibility that it will remain 1.x only.

Regards,
Willy



From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 14:31:51 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5249E21F8800 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 14:31:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.598
X-Spam-Level: 
X-Spam-Status: No, score=-10.598 tagged_above=-999 required=5 tests=[AWL=-0.000, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, WEIRD_PORT=0.001]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YjmlHZ4Tb5Zp for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 14:31:50 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 5BB6221F8814 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 14:31:50 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYlTo-0005qA-QW for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 22:30:44 +0000
Resent-Date: Wed, 14 Nov 2012 22:30:44 +0000
Resent-Message-Id: <E1TYlTo-0005qA-QW@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <adrien@qbik.com>) id 1TYlTe-0005VD-Ko for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 22:30:34 +0000
Received: from smtp.qbik.com ([210.55.214.35]) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <adrien@qbik.com>) id 1TYlTb-0002IT-JE for ietf-http-wg@w3.org; Wed, 14 Nov 2012 22:30:34 +0000
Received: From [192.168.0.10] (unverified [192.168.0.10]) by SMTP Server [192.168.0.1] (WinGate SMTP Receiver v7.3.0 (Build 3464)) with SMTP id <0019357669@smtp.qbik.com>; Thu, 15 Nov 2012 11:30:32 +1300
From: "Adrien W. de Croy" <adrien@qbik.com>
To: "Willy Tarreau" <w@1wt.eu>, "Eliot Lear" <lear@cisco.com>
Cc: "Martin Thomson" <martin.thomson@gmail.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Date: Wed, 14 Nov 2012 22:30:21 +0000
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; format=flowed; charset=utf-8
In-Reply-To: <20121114221015.GK18082@1wt.eu>
Message-Id: <ema69a971f-c1a7-4b84-8646-d5b8d8a312da@bombed>
Mime-Version: 1.0
Reply-To: "Adrien W. de Croy" <adrien@qbik.com>
User-Agent: eM_Client/4.0.15145.0
Received-SPF: pass client-ip=210.55.214.35; envelope-from=adrien@qbik.com; helo=smtp.qbik.com
X-W3C-Hub-Spam-Status: No, score=-4.3
X-W3C-Hub-Spam-Report: AWL=-2.165, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.188, SPF_PASS=-0.001, WEIRD_PORT=0.001
X-W3C-Scan-Sig: maggie.w3.org 1TYlTb-0002IT-JE c274eb8bd1561007ee71c6d8753e8b3e
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/ema69a971f-c1a7-4b84-8646-d5b8d8a312da@bombed>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15608
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

If we had change of scheme on the table (which I don't think we do),=20
and possible change of port, then need it be http at all?

e.g. are we then talking about new protocol on new port?

I'd suggest "http2://" as a scheme name will be unpopular, maybe=20
something more user-friendly for example "web://"

I think also in the unlikely event that such a proposal went any=20
further, we could look at a new way to determine how to connect etc.

Web content authors don't want to be concerned about the protocol used=20
to deliver their pages.

So any new scheme would need to take that out of the hands of the=20
content author, and would therefore need to allow use of http/1.1,=20
http/1.1/tls, http2, ftp, ldap, newproto etc etc.

If the spec required that to connect for a web:// URL the client must=20
do a DNS WEB (new RR) record lookup, which could then specify=20
transport, port and server name then all this could be published by the=20
site operator.

This would then be extensible, and allow for other transport or=20
transfer protocols to be used for the web in future.

Adrien

------ Original Message ------
From: "Willy Tarreau" <w@1wt.eu>
To: "Eliot Lear" <lear@cisco.com>
Cc: "Martin Thomson" <martin.thomson@gmail.com>;"Adrien W. de Croy"=20
<adrien@qbik.com>;"ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Sent: 15/11/2012 11:10:15 a.m.
Subject: Re: on DNS records
>On Wed, Nov 14, 2012 at 08:18:45PM +0100, Eliot Lear wrote:
>
>>
>>Martin,
>>On 11/14/12 8:13 PM, Martin Thomson wrote:
>>> On 14 November 2012 11:09, Eliot Lear <lear@cisco.com> wrote:
>>>> That's a fair point.  Question: how would you handle SRV with
>>>> http://www.example.com:49080?
>>> That was raised in the meeting.  SRV isn't enough for that reason
>>> alone.  I know too many hosts that operate on different ports.
>>> Obviously, each port could be given a new name, but that eventually
>>> leads to an increase in the number of wildcard certificates out there.
>>>
>>>
>>
>>Thanks.  So you would prefer some other record that simply indicates
>>what version runs on what port and dump transport protocol?  What do
>>others think?
>>
>
>
>That was one of the issue I raised several times a few months ago
>explaining why I think DNS alone cannot be a solution.
>
>The problem we have with DNS is that it's only server-centric. One single
>authority decides what to advertise as the way to connect to their site.
>That can work for new ports. But not for port 80. The reason is that on
>port 80, you have many components along the chain doing many things such
>as simple protocol inspection, load balancing, proxying, caching, etc...
>that neither the server not the client sides are aware of !
>
>Thus it's foolish to assume that a different protocol can be talked on =
port
>80 without prior upgrade.
>
>Using DNS to advertise a different port could be a solution to avoid the
>HTTP Upgrade, because it could allow users to detect that HTTP/2.0 is
>spoken natively on a specific port on the server. However it would still
>not take into account the fact that client-side filtering on firewalls
>and proxies generally don't allow unknown ports to pass.
>
>A new problem with advertising random ports in DNS records is that it
>would be much harder to gain unfiltered access than by advertising only
>a standardized port. And if we have a standard port we don't need to
>advertise the port in the DNS record.
>
>Ports still cause two new troubles :
> - how to decide what protocol version to use on port XYZ ? (I've seen
>   Phillip's proposal, I still think that another natural solution would
>   be a dedicated scheme)
>
> - how can we know that the new port it controlled by the same authorities
>   as ports 80/443 along the whole path ?
>
>I'm still thinking that we should do more research on the scheme :
>
>  - keep "http://" as the default scheme which MUST only speak HTTP/1.x
>    because that has always been the case. A temptative Upgrade to 2.0
>    is encouraged but both the clients and the server know that this
>    upgrade is optional, may fail and the traffic may remain HTTP/1.
>
>  - have "https://" use the TLS NPN extension to announce support for
>    the protocol on both sides. I should say on "all" sides, because TLS
>    is a transport protocol and as such is hop-by-hop : if intercepted,
>    the interceptor's capabilities are used. At least this has proved to
>    work well for SPDY and I don't see why we should refrain from using
>    this for HTTP/2.
>
>  - have "http2://" as the optimal replacement scheme for the long term,
>    on a dedicated well-known port. To the opponents of the new scheme,
>    I would say that this has worked for http->https, and I don't see
>    any reason for this not to work again, quite the opposite. In fact,
>    there would be much incentive to migrate to support this scheme as
>    there would possibly be some performance benefits by doing so. And
>    just like many web sites still support https and http for the few
>    https-impaired users, we would have https/http2 by default, and
>    http as the fallback for those who can only use port 80.
>
>Obviously the switch will take time, a few years to get a fairly common
>adoption, but this way we're sure to always provide an upgradable path
>from HTTP/1, and without breaking what has been assumed for decades (eg:
>http://x.y.z:port/ <safelink(12103c78-49e7-4542-85ee-aa0bc2755e19):http://=
x.y.z:port/> is http and not anything else, then we'd equally
>have http2://x.y.z:port/ be http2 and not http).
>
>So in the end, we'd get the following possibilities to connect to a web
>site from a user agent :
>
> - if scheme is "https://", use the best HTTP version advertised as NPN
>   by the server ;
>
> - if scheme is "http2://", use raw HTTP/2 exclusively over the designated
>   port and report an error if it fails (as we do right now with https).
>   THIS is what will drive quick opening of the new port on the client =
side.
>
> - if scheme is "http://", attempt an 1.1->2.0 Upgrade over the designated
>   port, with the possibility that it will remain 1.x only.
>
>Regards,
>Willy
>
>
>
>



From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 14:46:49 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 84C9F21F88AF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 14:46:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.976
X-Spam-Level: 
X-Spam-Status: No, score=-9.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GBEpBBzLKRox for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 14:46:48 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 9F60321F889D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 14:46:48 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYliI-0003x9-Mv for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 22:45:42 +0000
Resent-Date: Wed, 14 Nov 2012 22:45:42 +0000
Resent-Message-Id: <E1TYliI-0003x9-Mv@frink.w3.org>
Received: from aji.keio.w3.org ([133.27.228.206]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <patrick.ducksong@gmail.com>) id 1TYliC-0003w6-MU for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 22:45:37 +0000
Received: from mail-ob0-f171.google.com ([209.85.214.171]) by aji.keio.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <patrick.ducksong@gmail.com>) id 1TYlhx-0002mw-FQ for ietf-http-wg@w3.org; Wed, 14 Nov 2012 22:45:35 +0000
Received: by mail-ob0-f171.google.com with SMTP id dn14so1067556obc.2 for <ietf-http-wg@w3.org>; Wed, 14 Nov 2012 14:44:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=1FiRfRTfGlhO4FTKDamIHDITnNlAg+l9LB+HrWyKvM4=; b=zvqLOT2FUM0AQc5sB6wfbBc75yBWg0aV3+CoXFmiANwVxpj6k34A2KJKGP5y9w0UAC gDElat7xKhEgTBxLoWMgfYZyQsX93JgPU9h8E/J8EdgpYf1eJMJt3ivb2ZgKz1E2/7rY DFJLAlyT3NqR4Nkg9KzA2tbpWEqgRgGYNQjccrZE6hP7B//Rm7iDz8pqEMxvFhF84SM6 RYwv4agwe3vMKUwavegsRaEvNoAroZfEZ+Em+apitBQSKNRFPWDvP7hxTH8eCgXnepEe fgq+Mf+n8Bc52iRFKcmkYjfJMd+yMaA5elSKQzT6WEJ57TYYOtbH58TTFU2wtACG0Cxh Cw0g==
MIME-Version: 1.0
Received: by 10.60.11.105 with SMTP id p9mr22020344oeb.128.1352933049368; Wed, 14 Nov 2012 14:44:09 -0800 (PST)
Sender: patrick.ducksong@gmail.com
Received: by 10.76.82.71 with HTTP; Wed, 14 Nov 2012 14:44:09 -0800 (PST)
In-Reply-To: <20121114221015.GK18082@1wt.eu>
References: <em0d5ce79f-10c2-40d3-af17-372199e38ab6@bombed> <50A38CDF.8040802@cisco.com> <CABkgnnXE1iW_COaqu-e_OK=y0ZE3Ry1YvtX6Vsq3vjvY3Tghrw@mail.gmail.com> <50A3EC60.7070703@cisco.com> <CABkgnnUicPmyt3Y+c2Kiy36oKo2_XPXeyG3m2umO9VJbFm_LxA@mail.gmail.com> <50A3EE95.5090905@cisco.com> <20121114221015.GK18082@1wt.eu>
Date: Wed, 14 Nov 2012 17:44:09 -0500
X-Google-Sender-Auth: b4NrB_rY1sbcDQQfW9aOkA9JzUI
Message-ID: <CAOdDvNoN58a=b_00+QQytLMhbnCMBRMTLTiO0xfwo0n89HxZ6w@mail.gmail.com>
From: Patrick McManus <pmcmanus@mozilla.com>
To: Willy Tarreau <w@1wt.eu>
Cc: Eliot Lear <lear@cisco.com>, Martin Thomson <martin.thomson@gmail.com>,  "Adrien W. de Croy" <adrien@qbik.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=e89a8fb1f754cfffbd04ce7c455f
Received-SPF: pass client-ip=209.85.214.171; envelope-from=patrick.ducksong@gmail.com; helo=mail-ob0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-3.4
X-W3C-Hub-Spam-Report: AWL=-2.711, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: aji.keio.w3.org 1TYlhx-0002mw-FQ b7e80a1384885cc20cc81e4554ddaa1b
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/CAOdDvNoN58a=b_00+QQytLMhbnCMBRMTLTiO0xfwo0n89HxZ6w@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15609
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--e89a8fb1f754cfffbd04ce7c455f
Content-Type: text/plain; charset=ISO-8859-1

On Wed, Nov 14, 2012 at 5:10 PM, Willy Tarreau <w@1wt.eu> wrote:

>
>
> That was one of the issue I raised several times a few months ago
> explaining why I think DNS alone cannot be a solution.
>
>
it cannot do the job alone - but it can provide the best service (i.e.
similar level of service as NPN on tls) for many best-practice use cases of
http://. Other cases can use an additional approach (alternate-protocol,
upgrade, etc..) which will certainly be necessary to fill in the gaps. SRV
is essentially a routing mechanism, if you're doing routing some other way
(i.e. a proxy, or a port in the URL, or something that manipulates your
dns) then don't use it. We'll need to also provide another option.

But it is totally forseeable to see http://www.example.com/ generate

A? www.example.com

return
A = 10.10.10.10
Additional Records: {SRV _http2-npn._tcp.www.example.com port=443 host=
www.example.com ,
                              SRV
_http2-cleartext._tcp.www.example.comport=81 host=
www.example.com}

and that's a pretty darn powerful sequence that should imo be enabled.

(obviously there are other incantations that don't require the additional
record.. the A and SRV lookups in parallel for instance.. but that's all
implementation dependent.).

I dare say we've been over all this ground. To move things forward on my
part, I have a PoC implementation as a todo item but its going to have to
wait several weeks for other prior commitments to clear.

--e89a8fb1f754cfffbd04ce7c455f
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote">On Wed, Nov 14, 2012 at 5:10 PM, Willy T=
arreau <span dir=3D"ltr">&lt;<a href=3D"mailto:w@1wt.eu" target=3D"_blank">=
w@1wt.eu</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
<br>
That was one of the issue I raised several times a few months ago<br>
explaining why I think DNS alone cannot be a solution.<br>
<br></blockquote><div><br>it cannot do the job alone - but it can provide t=
he best service (i.e. similar level of service as NPN on tls) for many best=
-practice use cases of http://. Other cases can use an additional approach =
(alternate-protocol, upgrade, etc..) which will certainly be necessary to f=
ill in the gaps. SRV is essentially a routing mechanism, if you&#39;re doin=
g routing some other way (i.e. a proxy, or a port in the URL, or something =
that manipulates your dns) then don&#39;t use it. We&#39;ll need to also pr=
ovide another option.<br>

<br>But it is totally forseeable to see <a href=3D"http://www.example.com/"=
>http://www.example.com/</a> generate<br><br>A? <a href=3D"http://www.examp=
le.com" target=3D"_blank">www.example.com</a><br><br>return <br>A =3D 10.10=
.10.10<br>
Additional Records: {SRV _http2-npn._<a href=3D"http://tcp.www.example.com"=
 target=3D"_blank">tcp.www.example.com</a> port=3D443 host=3D<a href=3D"htt=
p://www.example.com" target=3D"_blank">www.example.com</a> ,<br>=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0 SRV _http2-cleartext._<a href=3D"http://tcp.www.example.com" target=3D"=
_blank">tcp.www.example.com</a> port=3D81 host=3D<a href=3D"http://www.exam=
ple.com" target=3D"_blank">www.example.com</a>}<br>

<br>and that&#39;s a pretty darn powerful sequence that should imo be enabl=
ed. <br><br>(obviously there are other incantations that don&#39;t require =
the additional record.. the A and SRV lookups in parallel for instance.. bu=
t that&#39;s all implementation dependent.).<br>
<br>I dare say we&#39;ve been over all this ground. To move things forward =
on my part, I have a PoC implementation as a todo item but its going to hav=
e to wait several weeks for other prior commitments to clear.<br><br><br>
</div></div>

--e89a8fb1f754cfffbd04ce7c455f--


From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 14:48:43 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 62B6C21F88A8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 14:48:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.33
X-Spam-Level: 
X-Spam-Status: No, score=-7.33 tagged_above=-999 required=5 tests=[AWL=3.268, BAYES_00=-2.599, NORMAL_HTTP_TO_IP=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6k3C-hlqDKKM for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 14:48:42 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id C1C9221F889D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 14:48:42 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYlkp-0004Bh-8q for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 22:48:19 +0000
Resent-Date: Wed, 14 Nov 2012 22:48:19 +0000
Resent-Message-Id: <E1TYlkp-0004Bh-8q@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TYlkl-0004Ay-60 for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 22:48:15 +0000
Received: from 1wt.eu ([62.212.114.60]) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TYlkk-0002nd-47 for ietf-http-wg@w3.org; Wed, 14 Nov 2012 22:48:15 +0000
Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id qAEMlkHb025146; Wed, 14 Nov 2012 23:47:46 +0100
Date: Wed, 14 Nov 2012 23:47:46 +0100
From: Willy Tarreau <w@1wt.eu>
To: "Adrien W. de Croy" <adrien@qbik.com>
Cc: Eliot Lear <lear@cisco.com>, Martin Thomson <martin.thomson@gmail.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Message-ID: <20121114224746.GO18082@1wt.eu>
References: <20121114221015.GK18082@1wt.eu> <ema69a971f-c1a7-4b84-8646-d5b8d8a312da@bombed>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <ema69a971f-c1a7-4b84-8646-d5b8d8a312da@bombed>
User-Agent: Mutt/1.4.2.3i
Received-SPF: pass client-ip=62.212.114.60; envelope-from=w@1wt.eu; helo=1wt.eu
X-W3C-Hub-Spam-Status: No, score=-4.0
X-W3C-Hub-Spam-Report: AWL=-1.910, BAYES_00=-1.9, NORMAL_HTTP_TO_IP=0.001, RP_MATCHES_RCVD=-0.188, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TYlkk-0002nd-47 a2868a52c9b870f19efe05825b42ec3c
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/20121114224746.GO18082@1wt.eu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15610
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Wed, Nov 14, 2012 at 10:30:21PM +0000, Adrien W. de Croy wrote:
> 
> If we had change of scheme on the table (which I don't think we do), 
> and possible change of port, then need it be http at all?
> 
> e.g. are we then talking about new protocol on new port?

yes, raw HTTP2 on dedicated default port.

> I'd suggest "http2://" as a scheme name will be unpopular, maybe 
> something more user-friendly for example "web://"

Possibly, yes.

> I think also in the unlikely event that such a proposal went any 
> further, we could look at a new way to determine how to connect etc.
> 
> Web content authors don't want to be concerned about the protocol used 
> to deliver their pages.

But they already do. I really think that's a wrong argument we've already
read here, because many of them are already used to have their application
frameworks build the URLs automatically. They even ask us (the reverse-proxy
guys) to provide some "X-Protocol: https" or "X-SSL: yes" to help them
decide whether to emit "http://" or "https://" in all the pages the build.
So the scheme is not that much of an issue, and certainly not a show-stopper.

> So any new scheme would need to take that out of the hands of the 
> content author, and would therefore need to allow use of http/1.1, 
> http/1.1/tls, http2, ftp, ldap, newproto etc etc.

I'm not sure I'm following you here :-/

> If the spec required that to connect for a web:// URL the client must 
> do a DNS WEB (new RR) record lookup, which could then specify 
> transport, port and server name then all this could be published by the 
> site operator.

We should really not put a MUST here, because it is already incompatible
with plain IP addresses. How did you configure your WiFi router at home ?
You certainly connected to http://192.168.1.1/ and you did not have a
DNS yet. Quite frankly, I don't see what this DNS mess will bring, because
everything is contained in the URI and the DNS only knows how the site is
connected to the net, not how to reach it.

> This would then be extensible, and allow for other transport or 
> transfer protocols to be used for the web in future.

That's precisely what the scheme was made for ! Define what transport
protocol to use to fetch the resource.

Willy



From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 14:58:42 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AB4C721F8850 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 14:58:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.147
X-Spam-Level: 
X-Spam-Status: No, score=-8.147 tagged_above=-999 required=5 tests=[AWL=2.452, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FIN7xi9kSagQ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 14:58:41 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id D6BF121F886A for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 14:58:41 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYlu9-0007SH-Mf for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 22:57:57 +0000
Resent-Date: Wed, 14 Nov 2012 22:57:57 +0000
Resent-Message-Id: <E1TYlu9-0007SH-Mf@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TYlu5-0007Rc-8W for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 22:57:53 +0000
Received: from 1wt.eu ([62.212.114.60]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TYlu4-0005PI-5W for ietf-http-wg@w3.org; Wed, 14 Nov 2012 22:57:53 +0000
Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id qAEMvMal025296; Wed, 14 Nov 2012 23:57:22 +0100
Date: Wed, 14 Nov 2012 23:57:22 +0100
From: Willy Tarreau <w@1wt.eu>
To: James M Snell <jasnell@gmail.com>
Cc: Eliot Lear <lear@cisco.com>, Martin Thomson <martin.thomson@gmail.com>, "Adrien W. de Croy" <adrien@qbik.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Message-ID: <20121114225722.GP18082@1wt.eu>
References: <em0d5ce79f-10c2-40d3-af17-372199e38ab6@bombed> <50A38CDF.8040802@cisco.com> <CABkgnnXE1iW_COaqu-e_OK=y0ZE3Ry1YvtX6Vsq3vjvY3Tghrw@mail.gmail.com> <50A3EC60.7070703@cisco.com> <CABkgnnUicPmyt3Y+c2Kiy36oKo2_XPXeyG3m2umO9VJbFm_LxA@mail.gmail.com> <50A3EE95.5090905@cisco.com> <20121114221015.GK18082@1wt.eu> <CABP7Rbe9mgY+xa=TNw7a8wuEHiw5a_S8xvz02z+kqcX93Ui2sw@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CABP7Rbe9mgY+xa=TNw7a8wuEHiw5a_S8xvz02z+kqcX93Ui2sw@mail.gmail.com>
User-Agent: Mutt/1.4.2.3i
Received-SPF: pass client-ip=62.212.114.60; envelope-from=w@1wt.eu; helo=1wt.eu
X-W3C-Hub-Spam-Status: No, score=-3.2
X-W3C-Hub-Spam-Report: AWL=-2.966, RP_MATCHES_RCVD=-0.188, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TYlu4-0005PI-5W 4802786bebbbb20f99b6a984647beba2
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/20121114225722.GP18082@1wt.eu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15611
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Wed, Nov 14, 2012 at 02:37:51PM -0800, James M Snell wrote:
> On Wed, Nov 14, 2012 at 2:10 PM, Willy Tarreau <w@1wt.eu> wrote:
> 
> > [snip]
> >
> > Thus it's foolish to assume that a different protocol can be talked on port
> > 80 without prior upgrade.
> >
> > Using DNS to advertise a different port could be a solution to avoid the
> > HTTP Upgrade, because it could allow users to detect that HTTP/2.0 is
> > spoken natively on a specific port on the server. However it would still
> > not take into account the fact that client-side filtering on firewalls
> > and proxies generally don't allow unknown ports to pass.
> >
> >
> What I'm failing to understand is why the latter is really a problem. If we
> say that http/2 requires a new port, no matter what, the stuff in the
> middle is going to have to be reconfigured anyway to support http/2.
> Otherwise, we just fall back to http/1.

In how much time do you fall back ? That's the issue. For example, at
a customer, I was used to read my yahoo mails using http:// instead of
https:// because the https scheme was redirected to a dirty auth page
on the proxy. This is not a failure for the browser, there was some
valid contents in return for the request.

Fortunately I (the user) was offered the choice to click on the URL bar
and type "http://mail.yahoo.fr/" instead of letting the browser decide
for me. And being offered the choice is important.

Similarly, I've been used to click links to github which were https and
see them time out because the port was not opened. When I'm used to see
this from these locations, I know that I have to convert the link to http://
before even attempting to use https. If I let the browser try for me without
letting me choose, and each time I have to wait for a 10-second timeout, it
will be a terribly unpleasant experience.

> If the http/2 specific port is not
> open, then http/2 is not supported and that is that. It's a feature. Not a
> bug.

I'm not saying it's a bug either, I'm saying that I find it important that
the user is offered the choice of the transport to use to connect to the
site, as it has worked well for ages now.

> I guess I just don't buy in to the whole "It's gotta be port 80"
> argument.

I'm not saying this, I'm saying that on port 80 we must speak an HTTP/1
compatible protocol. HTTP/1 can fortunately be upgraded to 2.0 so we
should have no reason no to offer this since it significantly improves
end-user experience. We have possibilities to offer several ways to
connect at the user's choice and without breaking protocols nor triggering
issues with invisible products. Let's just assume that users know better
what site they can connect to than the hundred of engineers here.

Regards,
Willy



From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 15:06:56 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CC7DA21F8612 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 15:06:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.638
X-Spam-Level: 
X-Spam-Status: No, score=-8.638 tagged_above=-999 required=5 tests=[AWL=1.961, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TOrs0tiyq4XU for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 15:06:56 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 09B9D21F862C for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 15:06:55 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYm1j-0004Rj-Am for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 23:05:47 +0000
Resent-Date: Wed, 14 Nov 2012 23:05:47 +0000
Resent-Message-Id: <E1TYm1j-0004Rj-Am@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TYm1f-0004Qz-9r for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 23:05:43 +0000
Received: from 1wt.eu ([62.212.114.60]) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TYm1d-0003L1-RY for ietf-http-wg@w3.org; Wed, 14 Nov 2012 23:05:43 +0000
Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id qAEN5ANd025349; Thu, 15 Nov 2012 00:05:10 +0100
Date: Thu, 15 Nov 2012 00:05:10 +0100
From: Willy Tarreau <w@1wt.eu>
To: Patrick McManus <pmcmanus@mozilla.com>
Cc: Eliot Lear <lear@cisco.com>, Martin Thomson <martin.thomson@gmail.com>, "Adrien W. de Croy" <adrien@qbik.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Message-ID: <20121114230510.GQ18082@1wt.eu>
References: <em0d5ce79f-10c2-40d3-af17-372199e38ab6@bombed> <50A38CDF.8040802@cisco.com> <CABkgnnXE1iW_COaqu-e_OK=y0ZE3Ry1YvtX6Vsq3vjvY3Tghrw@mail.gmail.com> <50A3EC60.7070703@cisco.com> <CABkgnnUicPmyt3Y+c2Kiy36oKo2_XPXeyG3m2umO9VJbFm_LxA@mail.gmail.com> <50A3EE95.5090905@cisco.com> <20121114221015.GK18082@1wt.eu> <CAOdDvNoN58a=b_00+QQytLMhbnCMBRMTLTiO0xfwo0n89HxZ6w@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAOdDvNoN58a=b_00+QQytLMhbnCMBRMTLTiO0xfwo0n89HxZ6w@mail.gmail.com>
User-Agent: Mutt/1.4.2.3i
Received-SPF: pass client-ip=62.212.114.60; envelope-from=w@1wt.eu; helo=1wt.eu
X-W3C-Hub-Spam-Status: No, score=-3.9
X-W3C-Hub-Spam-Report: AWL=-1.814, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.188, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TYm1d-0003L1-RY 322143675c691097f6ec2b8a692e8280
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/20121114230510.GQ18082@1wt.eu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15612
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Hi Pat,

On Wed, Nov 14, 2012 at 05:44:09PM -0500, Patrick McManus wrote:
> On Wed, Nov 14, 2012 at 5:10 PM, Willy Tarreau <w@1wt.eu> wrote:
> 
> >
> >
> > That was one of the issue I raised several times a few months ago
> > explaining why I think DNS alone cannot be a solution.
> >
> >
> it cannot do the job alone - but it can provide the best service (i.e.
> similar level of service as NPN on tls)

Except that NPN is not mangled by invisible intermediaries.

> for many best-practice use cases of
> http://. Other cases can use an additional approach (alternate-protocol,
> upgrade, etc..) which will certainly be necessary to fill in the gaps. SRV
> is essentially a routing mechanism, if you're doing routing some other way
> (i.e. a proxy, or a port in the URL, or something that manipulates your
> dns) then don't use it. We'll need to also provide another option.

But the problem is that you don't know that you're passing through proxies,
otherwise I would have no problem with this.

> But it is totally forseeable to see http://www.example.com/ generate
> 
> A? www.example.com
> 
> return
> A = 10.10.10.10
> Additional Records: {SRV _http2-npn._tcp.www.example.com port=443 host=
> www.example.com ,
>                               SRV
> _http2-cleartext._tcp.www.example.comport=81 host=
> www.example.com}
> 
> and that's a pretty darn powerful sequence that should imo be enabled.

I don't claim it's not powerful, I'm saying that it does not offer benefits
from a deployment point of view above other solutions, but it comes with a
whole bunch of new issues.

After how long do you decide that port 81 fails to connect ? And how do
you offer the end-user the possibility to connect via port 80 which he
*knows* works ? Does "http://www.example.com:80/" suffice to force HTTP/1
over port 80 or will some browsers just attempt raw http2 over that port ?

Also the other issue here is that the web becomes totally fragmented, with
any user advertising random ports, including the port 6000 range that is
well-known to pass through many firewalls due to some X11 pass-through,
etc... In the end, for proxy and firewall admins, it becomes a nightmare
to minimally secure their installations.

You see, all these are issues that are overlooked from the DNS admin, but
which are realities on the end-user side. This is why I don't believe that
the server-side admin knows better than his visitors how they should connect
to the net.

Regards,
Willy



From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 15:20:56 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 18BCC21F8510 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 15:20:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.598
X-Spam-Level: 
X-Spam-Status: No, score=-10.598 tagged_above=-999 required=5 tests=[AWL=-0.000, BAYES_00=-2.599, NORMAL_HTTP_TO_IP=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o3ueZUyIbAGE for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 15:20:55 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id EF95921F850E for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 15:20:54 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYmEl-00019d-Q6 for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 23:19:15 +0000
Resent-Date: Wed, 14 Nov 2012 23:19:15 +0000
Resent-Message-Id: <E1TYmEl-00019d-Q6@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <adrien@qbik.com>) id 1TYmEg-00018x-Eu for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 23:19:10 +0000
Received: from smtp.qbik.com ([210.55.214.35]) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <adrien@qbik.com>) id 1TYmEf-0003ke-35 for ietf-http-wg@w3.org; Wed, 14 Nov 2012 23:19:10 +0000
Received: From [192.168.0.10] (unverified [192.168.0.10]) by SMTP Server [192.168.0.1] (WinGate SMTP Receiver v7.3.0 (Build 3464)) with SMTP id <0019357747@smtp.qbik.com>; Thu, 15 Nov 2012 12:19:11 +1300
From: "Adrien W. de Croy" <adrien@qbik.com>
To: "Willy Tarreau" <w@1wt.eu>
Cc: "Eliot Lear" <lear@cisco.com>, "Martin Thomson" <martin.thomson@gmail.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Date: Wed, 14 Nov 2012 23:18:59 +0000
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; format=flowed; charset=utf-8
In-Reply-To: <20121114224746.GO18082@1wt.eu>
Message-Id: <em0818b488-02a9-4467-a2ae-f4766c8e0398@bombed>
Mime-Version: 1.0
Reply-To: "Adrien W. de Croy" <adrien@qbik.com>
User-Agent: eM_Client/4.0.15145.0
Received-SPF: pass client-ip=210.55.214.35; envelope-from=adrien@qbik.com; helo=smtp.qbik.com
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: AWL=-1.968, BAYES_00=-1.9, NORMAL_HTTP_TO_IP=0.001, RP_MATCHES_RCVD=-0.188, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TYmEf-0003ke-35 be6c3d4676989676a403e1d098cac5c6
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/em0818b488-02a9-4467-a2ae-f4766c8e0398@bombed>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15613
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

------ Original Message ------
From: "Willy Tarreau" <w@1wt.eu>
>On Wed, Nov 14, 2012 at 10:30:21PM +0000, Adrien W. de Croy wrote:
>
>>
>>
>>If we had change of scheme on the table (which I don't think we do),
>>and possible change of port, then need it be http at all?
>>
>>e.g. are we then talking about new protocol on new port?
>>
>
>
>yes, raw HTTP2 on dedicated default port.
>
>
>>
>>I'd suggest "http2://" as a scheme name will be unpopular, maybe
>>something more user-friendly for example "web://"
>>
>
>
>Possibly, yes.
>
>
>>
>>I think also in the unlikely event that such a proposal went any
>>further, we could look at a new way to determine how to connect etc.
>>
>>Web content authors don't want to be concerned about the protocol used
>>to deliver their pages.
>>
>
>
>But they already do. I really think that's a wrong argument we've already
>read here, because many of them are already used to have their application
>frameworks build the URLs automatically. They even ask us (the reverse-pro=
xy
>guys) to provide some "X-Protocol: https" or "X-SSL: yes" to help them
>decide whether to emit "http://" or "https://" in all the pages the build.
>So the scheme is not that much of an issue, and certainly not a show-stopp=
er.
>
>
>>
>>So any new scheme would need to take that out of the hands of the
>>content author, and would therefore need to allow use of http/1.1,
>>http/1.1/tls, http2, ftp, ldap, newproto etc etc.
>>
>
>
>I'm not sure I'm following you here :-/
>
>
>>
>>If the spec required that to connect for a web:// URL the client must
>>do a DNS WEB (new RR) record lookup, which could then specify
>>transport, port and server name then all this could be published by the
>>site operator.
>>
>
>
>We should really not put a MUST here, because it is already incompatible
>with plain IP addresses. How did you configure your WiFi router at home=
 ?
>You certainly connected to http://192.168.1.1/ and you did not have a
>DNS yet. Quite frankly, I don't see what this DNS mess will bring, because
>everything is contained in the URI and the DNS only knows how the site =
is
>connected to the net, not how to reach it.
>
>
>>
>>This would then be extensible, and allow for other transport or
>>transfer protocols to be used for the web in future.
>>
>
>
>That's precisely what the scheme was made for ! Define what transport
>protocol to use to fetch the resource.
>

this just comes down to who should define the transport / protocol and=20
when.

If you say the protocol and transport are defined in the URI, then it's=20
fixed, and if you wish to change protocol or transport, you need to=20
change your URIs.

If you adopt an approach where transport and protocol can be=20
discovered, then you can change protocol or transport without needing=20
to change URIs.

My proposal was just a way of making transport and transfer protocol be=20
discoverable (e.g. queried by DNS).  This way a server operator can=20
upgrade their server without involving the people who have content=20
hosted on it.

Adrien
>
>
>Willy
>
>
>
>



From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 15:27:07 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 13D9A21F8575 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 15:27:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.964
X-Spam-Level: 
X-Spam-Status: No, score=-8.964 tagged_above=-999 required=5 tests=[AWL=1.635, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eIpJtIvx4mBC for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 15:27:06 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 873D421F854F for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 15:27:06 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYmLd-0004aH-O8 for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 23:26:21 +0000
Resent-Date: Wed, 14 Nov 2012 23:26:21 +0000
Resent-Message-Id: <E1TYmLd-0004aH-O8@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TYmLZ-0004YL-Ss for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 23:26:17 +0000
Received: from 1wt.eu ([62.212.114.60]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TYmLY-0006ji-R9 for ietf-http-wg@w3.org; Wed, 14 Nov 2012 23:26:17 +0000
Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id qAENMfdY025473; Thu, 15 Nov 2012 00:22:41 +0100
Date: Thu, 15 Nov 2012 00:22:41 +0100
From: Willy Tarreau <w@1wt.eu>
To: "Adrien W. de Croy" <adrien@qbik.com>
Cc: Eliot Lear <lear@cisco.com>, Martin Thomson <martin.thomson@gmail.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Message-ID: <20121114232241.GT18082@1wt.eu>
References: <20121114224746.GO18082@1wt.eu> <em0818b488-02a9-4467-a2ae-f4766c8e0398@bombed>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <em0818b488-02a9-4467-a2ae-f4766c8e0398@bombed>
User-Agent: Mutt/1.4.2.3i
Received-SPF: pass client-ip=62.212.114.60; envelope-from=w@1wt.eu; helo=1wt.eu
X-W3C-Hub-Spam-Status: No, score=-3.0
X-W3C-Hub-Spam-Report: AWL=-2.810, RP_MATCHES_RCVD=-0.188, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TYmLY-0006ji-R9 02860b209bcc5388073a0527e28d54e1
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/20121114232241.GT18082@1wt.eu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15614
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Wed, Nov 14, 2012 at 11:18:59PM +0000, Adrien W. de Croy wrote:
> this just comes down to who should define the transport / protocol and 
> when.
> 
> If you say the protocol and transport are defined in the URI, then it's 
> fixed, and if you wish to change protocol or transport, you need to 
> change your URIs.
> 
> If you adopt an approach where transport and protocol can be 
> discovered, then you can change protocol or transport without needing 
> to change URIs.
> 
> My proposal was just a way of making transport and transfer protocol be 
> discoverable (e.g. queried by DNS).  This way a server operator can 
> upgrade their server without involving the people who have content 
> hosted on it.

I'm well aware of this, but the issue comes down to how do we allow
end users to fix the mess we deploy and which prevents them from
connecting ?

Also, having the HTTP upgrade supported by default allows all site
owners to support HTTP/2 transparently by the way of an upgrade. A
new scheme would simply allow them to provide their users with a
way to connect with raw frames and skip the upgrade. But that way
nothing is mandatory and each side adopts http/2 at its pace.

Willy



From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 15:35:10 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3B82E21F84F1 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 15:35:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.139
X-Spam-Level: 
X-Spam-Status: No, score=-7.139 tagged_above=-999 required=5 tests=[AWL=3.459, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TFq7RMIoP1Wu for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 15:35:09 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 2F82321F84EC for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 15:35:09 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYmTH-0007w8-Oy for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 23:34:15 +0000
Resent-Date: Wed, 14 Nov 2012 23:34:15 +0000
Resent-Message-Id: <E1TYmTH-0007w8-Oy@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1TYmTD-0007vT-1N for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 23:34:11 +0000
Received: from mail-oa0-f43.google.com ([209.85.219.43]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1TYmTB-0004Cj-NW for ietf-http-wg@w3.org; Wed, 14 Nov 2012 23:34:10 +0000
Received: by mail-oa0-f43.google.com with SMTP id k1so1099350oag.2 for <ietf-http-wg@w3.org>; Wed, 14 Nov 2012 15:33:43 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=B0Q1CiykNFu0y5qwxmIriwZPc/yuEE7HDAxdekgNBh4=; b=e0gOglNah0oYLcvR6U3D6qN3rKtacOa+cNj/2Da3wLK9MYpjVVxKWGW1YG2rvVzxlx LAlYyPrSwB8fkw2TZoVu4VCw/czESZGSQ5XDD1sOdI3My6OBxERhldGFY6dAGKPSFpE+ 3TWRIRav83a3Iut32lpTyBSgtFQA0v7BkaJ9qRZ3antAdJJK2xuxi6Ast9qPigMWKr+x Q02mNxUZIuRrE2Izf9ASAM7ap26WpufVP0zqZ5DOYkVGRaF6fP6xOJL+79XpW5ILwfGV CRSndCo3XRf/YMD6X6u2Bzx+Yn6ROei99+okskzUa/dVf9RGdWoQpDh9Yb/M5cPHMJF6 VRbg==
Received: by 10.60.27.39 with SMTP id q7mr21115474oeg.109.1352932691431; Wed, 14 Nov 2012 14:38:11 -0800 (PST)
MIME-Version: 1.0
Received: by 10.76.68.37 with HTTP; Wed, 14 Nov 2012 14:37:51 -0800 (PST)
In-Reply-To: <20121114221015.GK18082@1wt.eu>
References: <em0d5ce79f-10c2-40d3-af17-372199e38ab6@bombed> <50A38CDF.8040802@cisco.com> <CABkgnnXE1iW_COaqu-e_OK=y0ZE3Ry1YvtX6Vsq3vjvY3Tghrw@mail.gmail.com> <50A3EC60.7070703@cisco.com> <CABkgnnUicPmyt3Y+c2Kiy36oKo2_XPXeyG3m2umO9VJbFm_LxA@mail.gmail.com> <50A3EE95.5090905@cisco.com> <20121114221015.GK18082@1wt.eu>
From: James M Snell <jasnell@gmail.com>
Date: Wed, 14 Nov 2012 14:37:51 -0800
Message-ID: <CABP7Rbe9mgY+xa=TNw7a8wuEHiw5a_S8xvz02z+kqcX93Ui2sw@mail.gmail.com>
To: Willy Tarreau <w@1wt.eu>
Cc: Eliot Lear <lear@cisco.com>, Martin Thomson <martin.thomson@gmail.com>,  "Adrien W. de Croy" <adrien@qbik.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=e89a8fb206ce7a53b804ce7c3053
Received-SPF: pass client-ip=209.85.219.43; envelope-from=jasnell@gmail.com; helo=mail-oa0-f43.google.com
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-1.714, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TYmTB-0004Cj-NW c23a91167b6e1115cefbdc30237582ad
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/CABP7Rbe9mgY+xa=TNw7a8wuEHiw5a_S8xvz02z+kqcX93Ui2sw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15615
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--e89a8fb206ce7a53b804ce7c3053
Content-Type: text/plain; charset=UTF-8

On Wed, Nov 14, 2012 at 2:10 PM, Willy Tarreau <w@1wt.eu> wrote:

> [snip]
>
> Thus it's foolish to assume that a different protocol can be talked on port
> 80 without prior upgrade.
>
> Using DNS to advertise a different port could be a solution to avoid the
> HTTP Upgrade, because it could allow users to detect that HTTP/2.0 is
> spoken natively on a specific port on the server. However it would still
> not take into account the fact that client-side filtering on firewalls
> and proxies generally don't allow unknown ports to pass.
>
>
What I'm failing to understand is why the latter is really a problem. If we
say that http/2 requires a new port, no matter what, the stuff in the
middle is going to have to be reconfigured anyway to support http/2.
Otherwise, we just fall back to http/1. If the http/2 specific port is not
open, then http/2 is not supported and that is that. It's a feature. Not a
bug. I guess I just don't buy in to the whole "It's gotta be port 80"
argument.

- James


> A new problem with advertising random ports in DNS records is that it
> would be much harder to gain unfiltered access than by advertising only
> a standardized port. And if we have a standard port we don't need to
> advertise the port in the DNS record.
>
> Ports still cause two new troubles :
>   - how to decide what protocol version to use on port XYZ ? (I've seen
>     Phillip's proposal, I still think that another natural solution would
>     be a dedicated scheme)
>
>   - how can we know that the new port it controlled by the same authorities
>     as ports 80/443 along the whole path ?
>
> I'm still thinking that we should do more research on the scheme :
>
>    - keep "http://" as the default scheme which MUST only speak HTTP/1.x
>      because that has always been the case. A temptative Upgrade to 2.0
>      is encouraged but both the clients and the server know that this
>      upgrade is optional, may fail and the traffic may remain HTTP/1.
>
>    - have "https://" use the TLS NPN extension to announce support for
>      the protocol on both sides. I should say on "all" sides, because TLS
>      is a transport protocol and as such is hop-by-hop : if intercepted,
>      the interceptor's capabilities are used. At least this has proved to
>      work well for SPDY and I don't see why we should refrain from using
>      this for HTTP/2.
>
>    - have "http2://" as the optimal replacement scheme for the long term,
>      on a dedicated well-known port. To the opponents of the new scheme,
>      I would say that this has worked for http->https, and I don't see
>      any reason for this not to work again, quite the opposite. In fact,
>      there would be much incentive to migrate to support this scheme as
>      there would possibly be some performance benefits by doing so. And
>      just like many web sites still support https and http for the few
>      https-impaired users, we would have https/http2 by default, and
>      http as the fallback for those who can only use port 80.
>
> Obviously the switch will take time, a few years to get a fairly common
> adoption, but this way we're sure to always provide an upgradable path
> from HTTP/1, and without breaking what has been assumed for decades (eg:
> http://x.y.z:port/ is http and not anything else, then we'd equally
> have http2://x.y.z:port/ be http2 and not http).
>
> So in the end, we'd get the following possibilities to connect to a web
> site from a user agent :
>
>   - if scheme is "https://", use the best HTTP version advertised as NPN
>     by the server ;
>
>   - if scheme is "http2://", use raw HTTP/2 exclusively over the designated
>     port and report an error if it fails (as we do right now with https).
>     THIS is what will drive quick opening of the new port on the client
> side.
>
>   - if scheme is "http://", attempt an 1.1->2.0 Upgrade over the
> designated
>     port, with the possibility that it will remain 1.x only.
>
> Regards,
> Willy
>
>
>

--e89a8fb206ce7a53b804ce7c3053
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Wed, Nov 14, 2=
012 at 2:10 PM, Willy Tarreau <span dir=3D"ltr">&lt;<a href=3D"mailto:w@1wt=
.eu" target=3D"_blank">w@1wt.eu</a>&gt;</span> wrote:<br><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex">

<div class=3D"HOEnZb"><div class=3D"h5">[snip]</div></div>
<br>
Thus it&#39;s foolish to assume that a different protocol can be talked on =
port<br>
80 without prior upgrade.<br>
<br>
Using DNS to advertise a different port could be a solution to avoid the<br=
>
HTTP Upgrade, because it could allow users to detect that HTTP/2.0 is<br>
spoken natively on a specific port on the server. However it would still<br=
>
not take into account the fact that client-side filtering on firewalls<br>
and proxies generally don&#39;t allow unknown ports to pass.<br>
<br></blockquote><div><br></div><div>What I&#39;m failing to understand is =
why the latter is really a problem. If we say that http/2 requires a new po=
rt, no matter what, the stuff in the middle is going to have to be reconfig=
ured anyway to support http/2. Otherwise, we just fall back to http/1. If t=
he http/2 specific port is not open, then http/2 is not supported and that =
is that. It&#39;s a feature. Not a bug. I guess I just don&#39;t buy in to =
the whole &quot;It&#39;s gotta be port 80&quot; argument.</div>

<div><br></div><div>- James</div><div>=C2=A0</div><blockquote class=3D"gmai=
l_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left=
:1ex">
A new problem with advertising random ports in DNS records is that it<br>
would be much harder to gain unfiltered access than by advertising only<br>
a standardized port. And if we have a standard port we don&#39;t need to<br=
>
advertise the port in the DNS record.<br>
<br>
Ports still cause two new troubles :<br>
=C2=A0 - how to decide what protocol version to use on port XYZ ? (I&#39;ve=
 seen<br>
=C2=A0 =C2=A0 Phillip&#39;s proposal, I still think that another natural so=
lution would<br>
=C2=A0 =C2=A0 be a dedicated scheme)<br>
<br>
=C2=A0 - how can we know that the new port it controlled by the same author=
ities<br>
=C2=A0 =C2=A0 as ports 80/443 along the whole path ?<br>
<br>
I&#39;m still thinking that we should do more research on the scheme :<br>
<br>
=C2=A0 =C2=A0- keep &quot;http://&quot; as the default scheme which MUST on=
ly speak HTTP/1.x<br>
=C2=A0 =C2=A0 =C2=A0because that has always been the case. A temptative Upg=
rade to 2.0<br>
=C2=A0 =C2=A0 =C2=A0is encouraged but both the clients and the server know =
that this<br>
=C2=A0 =C2=A0 =C2=A0upgrade is optional, may fail and the traffic may remai=
n HTTP/1.<br>
<br>
=C2=A0 =C2=A0- have &quot;https://&quot; use the TLS NPN extension to annou=
nce support for<br>
=C2=A0 =C2=A0 =C2=A0the protocol on both sides. I should say on &quot;all&q=
uot; sides, because TLS<br>
=C2=A0 =C2=A0 =C2=A0is a transport protocol and as such is hop-by-hop : if =
intercepted,<br>
=C2=A0 =C2=A0 =C2=A0the interceptor&#39;s capabilities are used. At least t=
his has proved to<br>
=C2=A0 =C2=A0 =C2=A0work well for SPDY and I don&#39;t see why we should re=
frain from using<br>
=C2=A0 =C2=A0 =C2=A0this for HTTP/2.<br>
<br>
=C2=A0 =C2=A0- have &quot;http2://&quot; as the optimal replacement scheme =
for the long term,<br>
=C2=A0 =C2=A0 =C2=A0on a dedicated well-known port. To the opponents of the=
 new scheme,<br>
=C2=A0 =C2=A0 =C2=A0I would say that this has worked for http-&gt;https, an=
d I don&#39;t see<br>
=C2=A0 =C2=A0 =C2=A0any reason for this not to work again, quite the opposi=
te. In fact,<br>
=C2=A0 =C2=A0 =C2=A0there would be much incentive to migrate to support thi=
s scheme as<br>
=C2=A0 =C2=A0 =C2=A0there would possibly be some performance benefits by do=
ing so. And<br>
=C2=A0 =C2=A0 =C2=A0just like many web sites still support https and http f=
or the few<br>
=C2=A0 =C2=A0 =C2=A0https-impaired users, we would have https/http2 by defa=
ult, and<br>
=C2=A0 =C2=A0 =C2=A0http as the fallback for those who can only use port 80=
.<br>
<br>
Obviously the switch will take time, a few years to get a fairly common<br>
adoption, but this way we&#39;re sure to always provide an upgradable path<=
br>
from HTTP/1, and without breaking what has been assumed for decades (eg:<br=
>
http://x.y.z:port/ is http and not anything else, then we&#39;d equally<br>
have http2://x.y.z:port/ be http2 and not http).<br>
<br>
So in the end, we&#39;d get the following possibilities to connect to a web=
<br>
site from a user agent :<br>
<br>
=C2=A0 - if scheme is &quot;https://&quot;, use the best HTTP version adver=
tised as NPN<br>
=C2=A0 =C2=A0 by the server ;<br>
<br>
=C2=A0 - if scheme is &quot;http2://&quot;, use raw HTTP/2 exclusively over=
 the designated<br>
=C2=A0 =C2=A0 port and report an error if it fails (as we do right now with=
 https).<br>
=C2=A0 =C2=A0 THIS is what will drive quick opening of the new port on the =
client side.<br>
<br>
=C2=A0 - if scheme is &quot;http://&quot;, attempt an 1.1-&gt;2.0 Upgrade o=
ver the designated<br>
=C2=A0 =C2=A0 port, with the possibility that it will remain 1.x only.<br>
<br>
Regards,<br>
Willy<br>
<br>
<br>
</blockquote></div><br></div>

--e89a8fb206ce7a53b804ce7c3053--


From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 15:42:23 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A704821F862A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 15:42:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.976
X-Spam-Level: 
X-Spam-Status: No, score=-9.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Lqp1el43IPq8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 15:42:22 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 528D221F85DF for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 15:42:15 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYmaK-0002oE-MA for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 23:41:32 +0000
Resent-Date: Wed, 14 Nov 2012 23:41:32 +0000
Resent-Message-Id: <E1TYmaK-0002oE-MA@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <gregw@intalio.com>) id 1TYmaG-0002nV-L2 for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 23:41:28 +0000
Received: from mail-qa0-f50.google.com ([209.85.216.50]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <gregw@intalio.com>) id 1TYmaF-0007Iu-G6 for ietf-http-wg@w3.org; Wed, 14 Nov 2012 23:41:28 +0000
Received: by mail-qa0-f50.google.com with SMTP id k1so863128qaf.2 for <ietf-http-wg@w3.org>; Wed, 14 Nov 2012 15:41:01 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=xtqna1eUyrnOUeNf2QvgJv5vNTW8Js9auxvFSgXVjZM=; b=ABeeNz5F5H9iUC1QAIW4zR1jYque9Qsm4XMAutdsGq1Wzzamx/WlQ7im91i/MUfoE0 E4k2RXaaNamJ/lCBKGyPoc/jrr12G/jixLcvYOdpEBy9Ovq7+lEXl/2meRWfanKAhDvE DYUvj4nIsZMMzafF8F4l0/pQ3UdpziY9wHg8J4CAe6ru30fFm88KsIZYXs5I37m2CYN+ Y9udNm+7eORahVgJibH9D4G2aI6zcTyQEREzmtjHKtiM14jyFv7MzD/6Vh32YzFZZYxv 6kmtFBfUKuLPihyiLMFsc5sOtKXksVjUUsizLwKYsOVuS72hupOsOGz9I8x3MGf2dL8h gytA==
MIME-Version: 1.0
Received: by 10.224.180.205 with SMTP id bv13mr26758199qab.7.1352936461456; Wed, 14 Nov 2012 15:41:01 -0800 (PST)
Received: by 10.49.35.129 with HTTP; Wed, 14 Nov 2012 15:41:01 -0800 (PST)
In-Reply-To: <ema69a971f-c1a7-4b84-8646-d5b8d8a312da@bombed>
References: <20121114221015.GK18082@1wt.eu> <ema69a971f-c1a7-4b84-8646-d5b8d8a312da@bombed>
Date: Thu, 15 Nov 2012 10:41:01 +1100
Message-ID: <CAH_y2NGNV8oeOnR7N5jAgjocYFuz114mgbf7bJHvC9-R79-BBQ@mail.gmail.com>
From: Greg Wilkins <gregw@intalio.com>
To: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=20cf30363f8d3054e904ce7d11e0
X-Gm-Message-State: ALoCoQkdFHk4FbkgePrrm3ZPpyyCs9GSjPUt8vPJISO0Ncc19Js1QVgaVy1Z3sYfY3FNsos/dWKR
Received-SPF: pass client-ip=209.85.216.50; envelope-from=gregw@intalio.com; helo=mail-qa0-f50.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.768, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TYmaF-0007Iu-G6 e4a22e581e66ba9e812a3dbf07b42fd6
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/CAH_y2NGNV8oeOnR7N5jAgjocYFuz114mgbf7bJHvC9-R79-BBQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15616
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--20cf30363f8d3054e904ce7d11e0
Content-Type: text/plain; charset=ISO-8859-1

On 15 November 2012 09:30, Adrien W. de Croy <adrien@qbik.com> wrote:

>
> If we had change of scheme on the table (which I don't think we do), and
> possible change of port, then need it be http at all?
>
> e.g. are we then talking about new protocol on new port?
>
> I'd suggest "http2://" as a scheme name will be unpopular, maybe something
> more user-friendly for example "web://"


A URI scheme is not a protocol.    In terms of the web, when a browser
address line starts with "http://", that is specifying how the rest of the
URI should be interpreted, which together with the method and optional
content, defines the semantic of the operation the client is initiating.
That is a separate thing to the wire protocol used to transfer that
request, it just so happens that for the web both are called http (unless
you are using spdy as the wire protocol to transfer http semantics).

We want a upgrade wire protocol, not upgraded semantics.

Well actually we want both - as eventually I'd like to see other semantics
(eg websockets) transported over the HTTP/2.0 wire protocol.

cheers


-- 
Greg Wilkins <gregw@intalio.com>
http://www.webtide.com
Developer advice and support from the Jetty & CometD experts.

--20cf30363f8d3054e904ce7d11e0
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote">On 15 November 2012 09:30, Adrien W. de =
Croy <span dir=3D"ltr">&lt;<a href=3D"mailto:adrien@qbik.com" target=3D"_bl=
ank">adrien@qbik.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex=
">
<div class=3D"adM"><br></div>
If we had change of scheme on the table (which I don&#39;t think we do), an=
d possible change of port, then need it be http at all?<br>
<br>
e.g. are we then talking about new protocol on new port?<br>
<br>
I&#39;d suggest &quot;http2://&quot; as a scheme name will be unpopular, ma=
ybe something more user-friendly for example &quot;web://&quot;</blockquote=
></div><br>A URI scheme is not a protocol.=A0=A0=A0 In terms of the web, wh=
en a browser address line starts with &quot;http://&quot;, that is specifyi=
ng how the rest of the URI should be interpreted, which together with the m=
ethod and optional content, defines the semantic of the operation the clien=
t is initiating.=A0=A0 That is a separate thing to the wire protocol used t=
o transfer that request, it just so happens that for the web both are calle=
d http (unless you are using spdy as the wire protocol to transfer http sem=
antics).<br>
<br>We want a upgrade wire protocol, not upgraded semantics.<br><br>Well ac=
tually we want both - as eventually I&#39;d like to see other semantics (eg=
 websockets) transported over the HTTP/2.0 wire protocol.<br><br>cheers<br>
<br clear=3D"all"><br>-- <br>Greg Wilkins &lt;<a href=3D"mailto:gregw@intal=
io.com" target=3D"_blank">gregw@intalio.com</a>&gt; <br><a href=3D"http://w=
ww.webtide.com" target=3D"_blank">http://www.webtide.com</a><br>Developer a=
dvice and support from the Jetty &amp; CometD experts.<br>


--20cf30363f8d3054e904ce7d11e0--


From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 15:44:31 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0090F21F86D1 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 15:44:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.701
X-Spam-Level: 
X-Spam-Status: No, score=-8.701 tagged_above=-999 required=5 tests=[AWL=1.898, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id whKXjFVznYl0 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 15:44:30 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id EB72421F862A for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 15:44:29 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYmcj-00037D-Al for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 23:44:01 +0000
Resent-Date: Wed, 14 Nov 2012 23:44:01 +0000
Resent-Message-Id: <E1TYmcj-00037D-Al@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TYmcf-00036O-PA for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 23:43:57 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TYmce-0004Su-VL for ietf-http-wg@w3.org; Wed, 14 Nov 2012 23:43:57 +0000
Received: from [192.168.1.64] (unknown [118.209.81.233]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 7F5AA509B7 for <ietf-http-wg@w3.org>; Wed, 14 Nov 2012 18:43:35 -0500 (EST)
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <CAH_y2NGNV8oeOnR7N5jAgjocYFuz114mgbf7bJHvC9-R79-BBQ@mail.gmail.com>
Date: Thu, 15 Nov 2012 10:43:31 +1100
Content-Transfer-Encoding: 7bit
Message-Id: <472BDBBF-E00F-4737-B665-4A0599DCC19D@mnot.net>
References: <20121114221015.GK18082@1wt.eu> <ema69a971f-c1a7-4b84-8646-d5b8d8a312da@bombed> <CAH_y2NGNV8oeOnR7N5jAgjocYFuz114mgbf7bJHvC9-R79-BBQ@mail.gmail.com>
To: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: AWL=-2.173, BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TYmce-0004Su-VL 76fa7e48b4cab0805ea512fdb887167c
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/472BDBBF-E00F-4737-B665-4A0599DCC19D@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15618
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Let's keep this discussion focused on DNS records, not URI schemes.

Thanks,


--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 15:44:31 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0CFE021F862A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 15:44:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.847
X-Spam-Level: 
X-Spam-Status: No, score=-8.847 tagged_above=-999 required=5 tests=[AWL=1.752, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id smfUgoi06wqm for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 15:44:30 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id EB7A121F8634 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 15:44:29 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYmcd-00035U-QU for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 23:43:55 +0000
Resent-Date: Wed, 14 Nov 2012 23:43:55 +0000
Resent-Message-Id: <E1TYmcd-00035U-QU@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TYmcZ-00034d-B4 for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 23:43:51 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TYmcY-0004Sk-6h for ietf-http-wg@w3.org; Wed, 14 Nov 2012 23:43:51 +0000
Received: from [192.168.1.64] (unknown [118.209.81.233]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 78E6A509B6; Wed, 14 Nov 2012 18:43:27 -0500 (EST)
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <50A26226.10906@cisco.com>
Date: Thu, 15 Nov 2012 10:43:28 +1100
Cc: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <90BB8922-9DBA-44C7-BBB3-2B5993F05D04@mnot.net>
References: <50A26226.10906@cisco.com>
To: Eliot Lear <lear@cisco.com>
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: AWL=-2.212, BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TYmcY-0004Sk-6h 4b1bbea24e7a8517e4f976b77728470d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/90BB8922-9DBA-44C7-BBB3-2B5993F05D04@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15617
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 14/11/2012, at 2:07 AM, Eliot Lear <lear@cisco.com> wrote:

> As I promised last week, I've substantially developed a draft (and =
some code) to look more closely at whether a DNS record can be helpful.  =
Before I get it out there, I wanted to check goals.  The situation is =
this: there is a 2.0-enabled client and it must determine whether or not =
the other end can speak 2.0.  Gabriel and Willy have already shown us =
that it can be done INSIDE the protocol at the expense of one roundtrip, =
but at the risk of a proxy doing the wrong thing (a classic case being =
that it allows an Upgrade: header but then barfs all over the upgrade).  =
So let's state our goals:
>=20
> 1.  Keep latency down.
> 	=95 First, is this a reasonable goal?

Safe assumption that it is.


> 	=95 Can it reasonably be done better than what Willy & Gabriel =
have laid out?

That's what we're here to find out -- keeping in mind that we're looking =
for an *optimisation* over the upgrade mechanism at this point, not a =
replacement for it.


> 2.  Transport Protocol Discovery
> 	=95 Some have suggested that it would be useful to do HTTP over =
UDP or SCTP.  Is that something that is a reasonable goal?

Based on the conversations I've heard, yes.


> 3.  Handle the case where multiple instances of the same application =
protocol reside on the same host, but on different ports.
> 	=95 Is this a reasonable goal?

Nice-to-have at most, I'd say. I.e., I personally would be OK saying =
that the DNS-based optimisation doesn't work for HTTP URIs that specify =
a non-default port. Yes, we may not be able to get the first round-trip =
to our router configuration page perfectly optimised, but that's a =
reasonable price to pay for simplicity. What do others think?


> 4.  No new URI schema
> 	=95 Address the 'side of the bus' problem.
> 	=95 Is this a reasonable goal?

Treat it as a fundamental constraint, at least for now.


> Does this about cover it?  I claim we can solve all four, but not =
easily with SRV.

One other requirement is that it's capable of advertising a range of =
options, not just binary "use HTTP2?". Doesn't have to be an infinite =
range, small set will do, I think.

A few more things to tease out:

- Are we advertising that port 80 is capable of HTTP/2, or an alternate =
port for HTTP/2, or (capable of) both?
- Are we allowing the advertisement to resolve to a different host, or =
restricting to the named host (a la Alternate-Protocol)?

Regards,

--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 15:55:30 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id ADD7D21F84FC for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 15:55:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.048
X-Spam-Level: 
X-Spam-Status: No, score=-9.048 tagged_above=-999 required=5 tests=[AWL=1.251, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, SARE_WEOFFER=0.3]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Q58R9hlOi00t for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 15:55:27 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 0520321F84DF for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 15:55:26 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYmmT-000050-Eb for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 23:54:05 +0000
Resent-Date: Wed, 14 Nov 2012 23:54:05 +0000
Resent-Message-Id: <E1TYmmT-000050-Eb@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TYmmP-0008W1-Uq for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 23:54:01 +0000
Received: from 1wt.eu ([62.212.114.60]) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TYmmO-0004lO-Oh for ietf-http-wg@w3.org; Wed, 14 Nov 2012 23:54:01 +0000
Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id qAENrYWq025598; Thu, 15 Nov 2012 00:53:34 +0100
Date: Thu, 15 Nov 2012 00:53:34 +0100
From: Willy Tarreau <w@1wt.eu>
To: Mark Nottingham <mnot@mnot.net>
Cc: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Message-ID: <20121114235334.GU18082@1wt.eu>
References: <20121114221015.GK18082@1wt.eu> <ema69a971f-c1a7-4b84-8646-d5b8d8a312da@bombed> <CAH_y2NGNV8oeOnR7N5jAgjocYFuz114mgbf7bJHvC9-R79-BBQ@mail.gmail.com> <472BDBBF-E00F-4737-B665-4A0599DCC19D@mnot.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <472BDBBF-E00F-4737-B665-4A0599DCC19D@mnot.net>
User-Agent: Mutt/1.4.2.3i
Received-SPF: pass client-ip=62.212.114.60; envelope-from=w@1wt.eu; helo=1wt.eu
X-W3C-Hub-Spam-Status: No, score=-3.8
X-W3C-Hub-Spam-Report: AWL=-1.728, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.188, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TYmmO-0004lO-Oh c545d08afb82976b1b3bd0ffed286763
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/20121114235334.GU18082@1wt.eu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15619
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Thu, Nov 15, 2012 at 10:43:31AM +1100, Mark Nottingham wrote:
> Let's keep this discussion focused on DNS records, not URI schemes.

OK but then what solution do we offer to end-users to fix the mess
the DNS will announce to their browsers ?

I'm quite certain many of us won't find it fun to have to wait for a
(say) 10 seconds timeout for each site we try to visit just because
what is advertised via the DNS is blocked at our location.

Willy



From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 15:55:46 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EDE0E21F85DF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 15:55:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.822
X-Spam-Level: 
X-Spam-Status: No, score=-8.822 tagged_above=-999 required=5 tests=[AWL=1.477, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, SARE_WEOFFER=0.3]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3L0AzcqGu1Yo for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 15:55:46 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 371D521F868D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 15:55:46 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYmnh-0001VQ-Tb for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2012 23:55:21 +0000
Resent-Date: Wed, 14 Nov 2012 23:55:21 +0000
Resent-Message-Id: <E1TYmnh-0001VQ-Tb@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TYmnc-0001Tp-QH for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2012 23:55:16 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TYmnb-0007iv-MD for ietf-http-wg@w3.org; Wed, 14 Nov 2012 23:55:16 +0000
Received: from [192.168.1.64] (unknown [118.209.81.233]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 277D6509B5; Wed, 14 Nov 2012 18:54:52 -0500 (EST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <20121114235334.GU18082@1wt.eu>
Date: Thu, 15 Nov 2012 10:54:54 +1100
Cc: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Transfer-Encoding: 7bit
Message-Id: <D066E53E-F865-4172-B2A7-BADAF2E1F6C0@mnot.net>
References: <20121114221015.GK18082@1wt.eu> <ema69a971f-c1a7-4b84-8646-d5b8d8a312da@bombed> <CAH_y2NGNV8oeOnR7N5jAgjocYFuz114mgbf7bJHvC9-R79-BBQ@mail.gmail.com> <472BDBBF-E00F-4737-B665-4A0599DCC19D@mnot.net> <20121114235334.GU18082@1wt.eu>
To: Willy Tarreau <w@1wt.eu>
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-3.2
X-W3C-Hub-Spam-Report: AWL=-3.162, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TYmnb-0007iv-MD c37b76add0f892b58e520d8ff01f230b
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/D066E53E-F865-4172-B2A7-BADAF2E1F6C0@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15620
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 15/11/2012, at 10:53 AM, Willy Tarreau <w@1wt.eu> wrote:

> On Thu, Nov 15, 2012 at 10:43:31AM +1100, Mark Nottingham wrote:
>> Let's keep this discussion focused on DNS records, not URI schemes.
> 
> OK but then what solution do we offer to end-users to fix the mess
> the DNS will announce to their browsers ?
> 
> I'm quite certain many of us won't find it fun to have to wait for a
> (say) 10 seconds timeout for each site we try to visit just because
> what is advertised via the DNS is blocked at our location.

We'll get there. 


--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 16:05:37 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9A17E21F8543 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 16:05:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.729
X-Spam-Level: 
X-Spam-Status: No, score=-9.729 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, SARE_MLH_Stock1=0.87]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LTeEAYweN+z2 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 16:05:37 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 1868A21F8542 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 16:05:37 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYmwd-0006Ns-Bx for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 00:04:35 +0000
Resent-Date: Thu, 15 Nov 2012 00:04:35 +0000
Resent-Message-Id: <E1TYmwd-0006Ns-Bx@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <sludin@akamai.com>) id 1TYmwZ-0006MZ-CS for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 00:04:31 +0000
Received: from prod-mail-xrelay05.akamai.com ([96.6.114.97]) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <sludin@akamai.com>) id 1TYmwY-00053W-Bz for ietf-http-wg@w3.org; Thu, 15 Nov 2012 00:04:31 +0000
Received: from prod-mail-xrelay05.akamai.com (localhost.localdomain [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id 0BB671C49E9; Thu, 15 Nov 2012 00:04:03 +0000 (GMT)
Received: from prod-mail-relay04.akamai.com (prod-mail-relay04.akamai.com [172.27.8.27]) by prod-mail-xrelay05.akamai.com (Postfix) with ESMTP id 00A711C49C4; Thu, 15 Nov 2012 00:04:03 +0000 (GMT)
Received: from ustx2ex-cashub.dfw01.corp.akamai.com (ustx2ex-cashub5.dfw01.corp.akamai.com [172.27.33.71]) by prod-mail-relay04.akamai.com (Postfix) with ESMTP id EBB0A47BD2; Thu, 15 Nov 2012 00:04:02 +0000 (GMT)
Received: from USMBX2.msg.corp.akamai.com ([169.254.1.93]) by ustx2ex-cashub5.dfw01.corp.akamai.com ([172.27.33.71]) with mapi; Wed, 14 Nov 2012 18:04:02 -0600
From: "Ludin, Stephen" <sludin@akamai.com>
To: Eitan Adler <lists@eitanadler.com>
CC: Ilya Grigorik <ilya@igvita.com>, John Kemp <john@jkemp.net>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Date: Wed, 14 Nov 2012 18:03:51 -0600
Thread-Topic: RFC: draft-brown-device-stock-ua-00.txt
Thread-Index: Ac3CxLfN/Nne1TBqQ8WTkrnb0F+vJA==
Message-ID: <CCC96FED.6A3A9%sludin@akamai.com>
In-Reply-To: <CAF6rxgm8H2wj+Nu9y-mcosRj=Hy7xJ2j2v-YtiHtQvBzhSNPNA@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/14.2.4.120824
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Received-SPF: none client-ip=96.6.114.97; envelope-from=sludin@akamai.com; helo=prod-mail-xrelay05.akamai.com
X-W3C-Hub-Spam-Status: No, score=-2.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, RP_MATCHES_RCVD=-0.188
X-W3C-Scan-Sig: maggie.w3.org 1TYmwY-00053W-Bz 0b4c2cff856a90b188eba0b5d71c2a89
X-Original-To: ietf-http-wg@w3.org
Subject: Re: RFC: draft-brown-device-stock-ua-00.txt
Archived-At: <http://www.w3.org/mid/CCC96FED.6A3A9%25sludin@akamai.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15621
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

I am not certain I understand the question, but I'll answer with where the
'situational' part could come in.  The two simplest are:

1) Origin outputs device specific content and uses the intermediary simply
to accelerate and/or cache
2) Origin serve generic content and the intermediary performs the
appropriate adaptation

I the latter example, the origin dose not necessarily need to know the
device details and removing or changing the header may be appropriate.  In
the former the header is less important to the intermediary though they
still may need to for caching the content appropriately of so desired by
the origin.

-stephen

On 11/13/12 7:30 PM, "Eitan Adler" <lists@eitanadler.com> wrote:

>On 13 November 2012 17:26, Ludin, Stephen <sludin@akamai.com> wrote:
>> As an intermediary/surrogate, this makes a lot of sense.  I can see the
>> specific behavior required being very situational.
>
>When might I ask, would Akamai want to take action based on a browser
>the user not using and may not even be installed?
>
>
>--=20
>Eitan Adler



From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 16:19:23 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 608E821F8701 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 16:19:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.949
X-Spam-Level: 
X-Spam-Status: No, score=-9.949 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HELO_EQ_FR=0.35, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jMhe80OV3UCk for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 16:19:22 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 7059321F86E9 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 16:19:22 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYn9Z-00050m-6W for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 00:17:57 +0000
Resent-Date: Thu, 15 Nov 2012 00:17:57 +0000
Resent-Message-Id: <E1TYn9Z-00050m-6W@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <f.kayser@free.fr>) id 1TYn9U-000500-WC for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 00:17:53 +0000
Received: from smtp5-g21.free.fr ([212.27.42.5]) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <f.kayser@free.fr>) id 1TYn9Q-0005Ow-Db for ietf-http-wg@w3.org; Thu, 15 Nov 2012 00:17:50 +0000
Received: from [192.168.0.1] (unknown [81.56.127.176]) by smtp5-g21.free.fr (Postfix) with ESMTP id EC646D48067; Thu, 15 Nov 2012 01:17:21 +0100 (CET)
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset=iso-8859-1
From: =?iso-8859-1?Q?Fr=E9d=E9ric_Kayser?= <f.kayser@free.fr>
In-Reply-To: <CABP7Rbfkvc_gsSESd2mHiLaYO5Ng2g0JZ4VYB2kYQcY2OX+aLg@mail.gmail.com>
Date: Thu, 15 Nov 2012 01:17:20 +0100
Cc: James M Snell <jasnell@gmail.com>
Content-Transfer-Encoding: quoted-printable
Message-Id: <D65DBD3C-730B-49AF-846E-3413BD27D37D@free.fr>
References: <CABP7Rbfkvc_gsSESd2mHiLaYO5Ng2g0JZ4VYB2kYQcY2OX+aLg@mail.gmail.com>
To: ietf-http-wg@w3.org
X-Mailer: Apple Mail (2.1084)
Received-SPF: none client-ip=212.27.42.5; envelope-from=f.kayser@free.fr; helo=smtp5-g21.free.fr
X-W3C-Hub-Spam-Status: No, score=-1.9
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001
X-W3C-Scan-Sig: maggie.w3.org 1TYn9Q-0005Ow-Db ddf9af950d068b00ba126e66b3f9286f
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Updated Binary Optimized Header Encoding Draft
Archived-At: <http://www.w3.org/mid/D65DBD3C-730B-49AF-846E-3413BD27D37D@free.fr>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15622
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Hi,
could you precise some points regarding UTF-8 encoding ?=20

"The next bit (E) indicates, when set, that the header field value =
contains UTF-8 encoded character content."

- is a BOM allowed?
- are there restrictions concerning Unicode Normalizations Forms, NFC is =
used most of the time but NFD could lead to smaller compressed results

And since UTF-8 is used why stick to generic zlib/deflate for =
compression?
UTF-8 encoding has some inherent characteristics =
http://en.wikipedia.org/wiki/UTF-8#Description
A compression algorithm aware of those would be more efficient than =
deflate, Huffman encoding in deflate is context unaware (order 0) =
contrary to PPM (Prediction by partial matching) based algorithms.

By today standards zlib/deflate is totally outdated: search window =
limited to 32k Bytes (can you imagine how ridiculous this is when used =
in nowadays PNG files, look what Google did in WebP lossless), it's dog =
slow to compress/decompress compared to LZ4, compressed size is far from =
being on par with LZMA or even bzip2, OK running an LZMA decoder is =
probably not the best thing to do on power and memory limited =
smartphones, but I wouldn't mind moving away from zlib/deflate for =
something closer to the compressed size vs. compression time Pareto =
frontier.

Regards
--=20
Fr=E9d=E9ric Kayser

Le 3 oct. 2012 =E0 19:07, James M Snell a =E9crit :

> FYI.. I have submitted an updated draft for the proposed Binary =
Optimized Header Encoding mechanism for the http2 effort.=20
>=20
>   http://www.ietf.org/id/draft-snell-httpbis-bohe-01.txt
>=20
> A number of fairly significant changes have been made:
>=20
>   1. The codepage identifier for registered header tokens has been =
removed.
>   2. The Per-header flags field has been removed and replaced with =
specific individual bits to indicate character-based values and multiple =
values
>   3. Value lengths have been increased from max 16-bit length to a max =
22-bit length.=20
>=20
> The encoding itself remains just as compact with these changes. With =
the http version header field, for example, requiring no more than 6 =
uncompressed bytes to represent.
>=20
> As always, feedback is more than welcome.
>=20
> - James



From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 16:36:48 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9651921F8772 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 16:36:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.976
X-Spam-Level: 
X-Spam-Status: No, score=-9.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cLxJ0ueB+rBf for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 16:36:47 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 78DDC21F86E4 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 16:36:47 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYnQX-0004bW-Av for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 00:35:29 +0000
Resent-Date: Thu, 15 Nov 2012 00:35:29 +0000
Resent-Message-Id: <E1TYnQX-0004bW-Av@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <gregw@intalio.com>) id 1TYnQS-0004aC-Aa for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 00:35:24 +0000
Received: from mail-qa0-f50.google.com ([209.85.216.50]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <gregw@intalio.com>) id 1TYnQQ-0005qb-SH for ietf-http-wg@w3.org; Thu, 15 Nov 2012 00:35:24 +0000
Received: by mail-qa0-f50.google.com with SMTP id k1so888774qaf.2 for <ietf-http-wg@w3.org>; Wed, 14 Nov 2012 16:34:56 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=vuXrurNV99NpVBZfj+v+dbFgQP+7IDYv6ZQioC0tFss=; b=geX6KUdvzWMMOANumAH0b3zNr8uP0JuxgJJowz81lTxbDcq+DE9kFqO2xpjTkN4i8W YobYq9Y+wTPY9YB8KhcdkrwK3Ihj5K6+WImKBbuFyWfoXwpBATqz6gHh7E9ICDvYE0zq r2HxmkzIdPCeWuRULkr70xUUepyN8S9yECtqgNDWcXU6eqK5PVmKLMy+wOflSDpVsyW+ 8mSd3CczYahWYR50NpZf1MGYMWkPLyWf5YxBvF+0DSdegRIhu74bBlONQy187DCSfVvl X+g9nHs/uwZMcsP11ZFsTe4ZKnBDwaDDLp0KU0Ash7eB3+eWJ6I4LzP7dK5QuayJvs6w 92ig==
MIME-Version: 1.0
Received: by 10.49.118.200 with SMTP id ko8mr32444679qeb.63.1352939696632; Wed, 14 Nov 2012 16:34:56 -0800 (PST)
Received: by 10.49.35.129 with HTTP; Wed, 14 Nov 2012 16:34:56 -0800 (PST)
In-Reply-To: <0BFC4563-2283-4C5C-9856-2FDC9343ACFF@mnot.net>
References: <37965570-0B05-4928-A04F-82B8C8C5E74A@mnot.net> <CABP7RbdE3g8T7P70=wgN6nJaOTRDLSNK_FJHjKFvf1JWB3=0Xg@mail.gmail.com> <0BFC4563-2283-4C5C-9856-2FDC9343ACFF@mnot.net>
Date: Thu, 15 Nov 2012 11:34:56 +1100
Message-ID: <CAH_y2NEehU+AHoWdROqK6ZXaS30tj7suzn-zEUJ0xxk2TpMCjw@mail.gmail.com>
From: Greg Wilkins <gregw@intalio.com>
To: Mark Nottingham <mnot@mnot.net>
Cc: James M Snell <jasnell@gmail.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=047d7b67886405341104ce7dd20c
X-Gm-Message-State: ALoCoQmWFzCEHyvgzia+js6HF+TnWhsnmu0JML+IxoQimJjSyBtdKBYg3dbYpkUQU0lUaeiLC0oW
Received-SPF: pass client-ip=209.85.216.50; envelope-from=gregw@intalio.com; helo=mail-qa0-f50.google.com
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-1.818, BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TYnQQ-0005qb-SH 802b18e7c400796fb57bce160c627155
X-Original-To: ietf-http-wg@w3.org
Subject: Re: #385: HTTP2 Upgrade / Negotiation
Archived-At: <http://www.w3.org/mid/CAH_y2NEehU+AHoWdROqK6ZXaS30tj7suzn-zEUJ0xxk2TpMCjw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15623
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--047d7b67886405341104ce7dd20c
Content-Type: text/plain; charset=ISO-8859-1

On 24 October 2012 14:44, Mark Nottingham <mnot@mnot.net> wrote:

>
> > One possible way to mitigate this would be to combine the Upgrade header
> approach with a new Expect token. For instance...
> >
> >   POST /default.htm HTTP/1.1
> >   Host: server.example.com
> >   Connection: Upgrade
> >   Upgrade: HTTP/2.0
> >   Expect: 101-upgrade
> >
> > The addition of the Expect header does two things...
> >
> > 1. It makes the upgrade a requirement rather than optional...
> > 2. The client would then wait as reasonable time for the 101 Switching
> Protocols before it proceeds to send the http/2.0 encoded data...
> >
> > When the client does start sending the data (after receiving the 101
> response), it would do so by first sending a SYN_STREAM.. To http/1.1
> servers, this would appear to be nothing more than regular POST payload
> data. For http/2 traffic, this requires an initial round trip but it
> addresses the upgrade on payload-bearing request issue... and is exactly
> the kind of thing the Expect header was intended for. The scheme is
> obviously far from perfect, however.
>
> Hm. I'd be interested to hear from implementers on this. The only
> advantage that I see is that you'd be able to start multiplexing other
> requests on the same connection sooner. However, you could also just use
> SRV, or a different connection if it's not available.



Sorry for slow response - been out of the loop for a few weeks.

As an implementer, this kind of upgrade is fine for new server
implementations, but I don't think it helps much.

If the client wants to assume success of the upgrade and start sending
http/2 frames before the 101, then that could easily be handled by a new
server regardless of METHOD.    Having the POST there does not really
change the situation, and I'd actually prefer it if the method was left to
be the real method, so that the server could send a valid response after
the 101 as a http/2 frame (eg if the upgrade is in a GET /index.html
request then the first frames back could be a push of the index.html
content or a 304 etc.).

Using a POST to make subsequent HTTP/2 frames sent by the client look like
a body to a HTTP/1 server/infrastructure is fraught with issues and buys us
very little. Most site interactions commence with a single request and it
is only once content for that request is received that the client will
start generating demand for more requests in parallel.  So that demand
coincides with knowing if the upgrade was successful or not, so the
protocol is known.

So let's totally avoid sending http/2 frames to http/1 servers and getting
into the whole how-might-it-be-interpreted debate that stalled the hybi-wg
for over a year.

So long as the server is able to push a response to the upgraded request
immediately after the 101 (along with a push of any other expected
content), then I think upgrade along the lines of
http://tools.ietf.org/html/draft-montenegro-httpbis-http2-negotiation-00can
be a good low latency way to establish a HTTP/2 connection.

There may be some other use-cases that do need to open many http/2 mux
streams in parallel immediately, but they are not from normal browsers, so
I think we can address them with the optimisation ideas for making direct
HTTP/2 connections (DNS, new port etc.).

cheers





-- 
Greg Wilkins <gregw@intalio.com>
http://www.webtide.com
Developer advice and support from the Jetty & CometD experts.

--047d7b67886405341104ce7dd20c
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote">On 24 October 2012 14:44, Mark Nottingha=
m <span dir=3D"ltr">&lt;<a href=3D"mailto:mnot@mnot.net" target=3D"_blank">=
mnot@mnot.net</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class=3D"im"><br>
&gt; One possible way to mitigate this would be to combine the Upgrade head=
er approach with a new Expect token. For instance...<br>
&gt;<br>
&gt; =A0 POST /default.htm HTTP/1.1<br>
&gt; =A0 Host: <a href=3D"http://server.example.com" target=3D"_blank">serv=
er.example.com</a><br>
&gt; =A0 Connection: Upgrade<br>
&gt; =A0 Upgrade: HTTP/2.0<br>
&gt; =A0 Expect: 101-upgrade<br>
&gt;<br>
&gt; The addition of the Expect header does two things...<br>
&gt;<br>
&gt; 1. It makes the upgrade a requirement rather than optional...<br>
&gt; 2. The client would then wait as reasonable time for the 101 Switching=
 Protocols before it proceeds to send the http/2.0 encoded data...<br>
&gt;<br>
&gt; When the client does start sending the data (after receiving the 101 r=
esponse), it would do so by first sending a SYN_STREAM.. To http/1.1 server=
s, this would appear to be nothing more than regular POST payload data. For=
 http/2 traffic, this requires an initial round trip but it addresses the u=
pgrade on payload-bearing request issue... and is exactly the kind of thing=
 the Expect header was intended for. The scheme is obviously far from perfe=
ct, however.<br>

<br>
</div>Hm. I&#39;d be interested to hear from implementers on this. The only=
 advantage that I see is that you&#39;d be able to start multiplexing other=
 requests on the same connection sooner. However, you could also just use S=
RV, or a different connection if it&#39;s not available.</blockquote>
</div><br><br>Sorry for slow response - been out of the loop for a few week=
s.<br><br>As an implementer, this kind of upgrade is fine for new server im=
plementations, but I don&#39;t think it helps much.=A0 <br><br>If the clien=
t wants to assume success of the upgrade and start sending http/2 frames be=
fore the 101, then that could easily be handled by a new server regardless =
of METHOD. =A0=A0 Having the POST there does not really change the situatio=
n, and I&#39;d actually prefer it if the method was left to be the real met=
hod, so that the server could send a valid response after the 101 as a http=
/2 frame (eg if the upgrade is in a GET /index.html request then the first =
frames back could be a push of the index.html content or a 304 etc.).<br>
<br>Using a POST to make subsequent HTTP/2 frames sent by the client look l=
ike a body to a HTTP/1 server/infrastructure is fraught with issues and buy=
s us very little. Most site interactions commence with a single request and=
 it is only=20
once content for that request is received that the client will start=20
generating demand for more requests in parallel.=A0 So that demand=20
coincides with knowing if the upgrade was successful or not, so the protoco=
l is known.<br><br>So let&#39;s totally avoid sending http/2 frames to http=
/1 servers and getting into the whole how-might-it-be-interpreted debate th=
at stalled the hybi-wg for over a year.<br>
<br>So long as the server is able to push a response to the upgraded reques=
t immediately after the 101 (along with a push of any other expected conten=
t), then I think upgrade along the lines of <a href=3D"http://tools.ietf.or=
g/html/draft-montenegro-httpbis-http2-negotiation-00">http://tools.ietf.org=
/html/draft-montenegro-httpbis-http2-negotiation-00</a> can be a good low l=
atency way to establish a HTTP/2 connection.<br>
<br>There may be some other use-cases that do need to open many http/2 mux =
streams in parallel immediately, but they are not from normal browsers, so =
I think we can address them with the optimisation ideas for making direct H=
TTP/2 connections (DNS, new port etc.).<br>
<br>cheers<br><br><br><br><br clear=3D"all"><br>-- <br>Greg Wilkins &lt;<a =
href=3D"mailto:gregw@intalio.com" target=3D"_blank">gregw@intalio.com</a>&g=
t; <br><a href=3D"http://www.webtide.com" target=3D"_blank">http://www.webt=
ide.com</a><br>
Developer advice and support from the Jetty &amp; CometD experts.<br>

--047d7b67886405341104ce7dd20c--


From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 16:56:07 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 67C6621F866E for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 16:56:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.976
X-Spam-Level: 
X-Spam-Status: No, score=-9.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0EK2r64Fh-nC for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 16:56:06 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 78ED621F8646 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 16:56:06 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYnjM-0005RM-EU for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 00:54:56 +0000
Resent-Date: Thu, 15 Nov 2012 00:54:56 +0000
Resent-Message-Id: <E1TYnjM-0005RM-EU@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <patrick.ducksong@gmail.com>) id 1TYnjI-0005Qc-Am for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 00:54:52 +0000
Received: from mail-ob0-f171.google.com ([209.85.214.171]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <patrick.ducksong@gmail.com>) id 1TYnjH-0006Qb-0R for ietf-http-wg@w3.org; Thu, 15 Nov 2012 00:54:52 +0000
Received: by mail-ob0-f171.google.com with SMTP id dn14so1170493obc.2 for <ietf-http-wg@w3.org>; Wed, 14 Nov 2012 16:54:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=4N8LLRAwjGBNw+61prC+Tkac+Ekc2fXF3CfYHiHlwj8=; b=tWB7nWd3Q0lm2p1cafNZdpmQhaWsIu1JadPBKB80icbHGUA09AOdkvXt1VSkvgngVS L/CuisoVaJuI5982o072DnVssIIh3iVsgbNTREWQTbsO6lFMJD4DlbjhoIydiRCV6N77 gnJkiDRsHqYqoRgCvzxmCuH2R2Kp5XxoXsc1933WxsN/2hs32gKFqWPRSooj6H36p0ff aMSr7jKE2b7Ea3p/6MnN3sNnosERCeuZl2MamOiPehBJ62JDb5iZwg1OUZ84VfrjTWvG zd5RdKacwFkcLXxR7cHc16k9Woy9uu4ywZtkuCKYlkaEFxO1kjAomkmOdytYLqUWE1bH YuBQ==
MIME-Version: 1.0
Received: by 10.60.26.72 with SMTP id j8mr22114757oeg.68.1352940864898; Wed, 14 Nov 2012 16:54:24 -0800 (PST)
Sender: patrick.ducksong@gmail.com
Received: by 10.76.82.71 with HTTP; Wed, 14 Nov 2012 16:54:24 -0800 (PST)
In-Reply-To: <90BB8922-9DBA-44C7-BBB3-2B5993F05D04@mnot.net>
References: <50A26226.10906@cisco.com> <90BB8922-9DBA-44C7-BBB3-2B5993F05D04@mnot.net>
Date: Wed, 14 Nov 2012 19:54:24 -0500
X-Google-Sender-Auth: KCqlYjvKZhKneSZI_0CSvCC8y6Q
Message-ID: <CAOdDvNo=3WBNOnibNKAGyS_VBz3inBG5KRJGfP4U3-FxpS7X9g@mail.gmail.com>
From: Patrick McManus <pmcmanus@mozilla.com>
To: Mark Nottingham <mnot@mnot.net>
Cc: Eliot Lear <lear@cisco.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=e89a8fb1f8d2a7857704ce7e1785
Received-SPF: pass client-ip=209.85.214.171; envelope-from=patrick.ducksong@gmail.com; helo=mail-ob0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-1.760, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TYnjH-0006Qb-0R 46a5e0bf4c930315aa1bf5ac854b4e6f
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/CAOdDvNo=3WBNOnibNKAGyS_VBz3inBG5KRJGfP4U3-FxpS7X9g@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15624
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--e89a8fb1f8d2a7857704ce7e1785
Content-Type: text/plain; charset=ISO-8859-1

On Wed, Nov 14, 2012 at 6:43 PM, Mark Nottingham <mnot@mnot.net> wrote:



> , I personally would be OK saying that the DNS-based optimisation doesn't
> work for HTTP URIs that specify a non-default port. Yes, we may not be able
> to get the first round-trip to our router configuration page perfectly
> optimised, but that's a reasonable price to pay for simplicity. What do
> others think?
>
>
That's my assumption too - I'm fine with that.

>
> - Are we advertising that port 80 is capable of HTTP/2, or an alternate
> port for HTTP/2, or (capable of) both?
>

imo it has to be an arbitrary port.. if you send anything other than http/1
on port 80 across the general internet you'll get some breakage.

--e89a8fb1f8d2a7857704ce7e1785
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote">On Wed, Nov 14, 2012 at 6:43 PM, Mark No=
ttingham <span dir=3D"ltr">&lt;<a href=3D"mailto:mnot@mnot.net" target=3D"_=
blank">mnot@mnot.net</a>&gt;</span> wrote:<br><div><br>=A0</div><blockquote=
 class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc soli=
d;padding-left:1ex">
, I personally would be OK saying that the DNS-based optimisation doesn&#39=
;t work for HTTP URIs that specify a non-default port. Yes, we may not be a=
ble to get the first round-trip to our router configuration page perfectly =
optimised, but that&#39;s a reasonable price to pay for simplicity. What do=
 others think?<br>

<br></blockquote><div><br>That&#39;s my assumption too - I&#39;m fine with =
that. <br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8e=
x;border-left:1px #ccc solid;padding-left:1ex">
<br>
- Are we advertising that port 80 is capable of HTTP/2, or an alternate por=
t for HTTP/2, or (capable of) both?<br></blockquote><div><br>imo it has to =
be an arbitrary port.. if you send anything other than http/1 on port 80 ac=
ross the general internet you&#39;ll get some breakage.<br>
<br><br></div></div>

--e89a8fb1f8d2a7857704ce7e1785--


From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 16:57:12 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8929321F866E for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 16:57:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.916
X-Spam-Level: 
X-Spam-Status: No, score=-8.916 tagged_above=-999 required=5 tests=[AWL=1.683, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9h6iemeKSLI2 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 16:57:12 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id E373721F8646 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 16:57:11 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYnky-00070N-3t for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 00:56:36 +0000
Resent-Date: Thu, 15 Nov 2012 00:56:36 +0000
Resent-Message-Id: <E1TYnky-00070N-3t@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TYnkt-0006zG-Rb for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 00:56:31 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TYnks-0001H1-Pz for ietf-http-wg@w3.org; Thu, 15 Nov 2012 00:56:31 +0000
Received: from [192.168.1.64] (unknown [118.209.81.233]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 127CA509B6; Wed, 14 Nov 2012 19:56:07 -0500 (EST)
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <CAOdDvNo=3WBNOnibNKAGyS_VBz3inBG5KRJGfP4U3-FxpS7X9g@mail.gmail.com>
Date: Thu, 15 Nov 2012 11:56:10 +1100
Cc: Eliot Lear <lear@cisco.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <4FC84233-30D4-4D45-87CC-302C9E5044B4@mnot.net>
References: <50A26226.10906@cisco.com> <90BB8922-9DBA-44C7-BBB3-2B5993F05D04@mnot.net> <CAOdDvNo=3WBNOnibNKAGyS_VBz3inBG5KRJGfP4U3-FxpS7X9g@mail.gmail.com>
To: Patrick McManus <pmcmanus@mozilla.com>
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-3.0
X-W3C-Hub-Spam-Report: AWL=-2.999, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TYnks-0001H1-Pz da65065545704745c4fd3d791a726c65
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/4FC84233-30D4-4D45-87CC-302C9E5044B4@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15625
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 15/11/2012, at 11:54 AM, Patrick McManus <pmcmanus@mozilla.com> =
wrote:
>=20
> - Are we advertising that port 80 is capable of HTTP/2, or an =
alternate port for HTTP/2, or (capable of) both?
>=20
> imo it has to be an arbitrary port.. if you send anything other than =
http/1 on port 80 across the general internet you'll get some breakage.

Agreed... however, I don't see a reason to make it impossible to say "I =
support HTTP/2 on port 80 too", so the client can optimistically try to =
use it first (as long as it can handle breakage).

Cheers,



--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 17:02:50 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1056321F87A5 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 17:02:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.976
X-Spam-Level: 
X-Spam-Status: No, score=-9.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fhSQCmAe1cNO for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 17:02:49 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 17BC021F87C6 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 17:02:49 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYnq1-0002vd-8A for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 01:01:49 +0000
Resent-Date: Thu, 15 Nov 2012 01:01:49 +0000
Resent-Message-Id: <E1TYnq1-0002vd-8A@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <patrick.ducksong@gmail.com>) id 1TYnpw-0002uy-LV for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 01:01:44 +0000
Received: from mail-oa0-f43.google.com ([209.85.219.43]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <patrick.ducksong@gmail.com>) id 1TYnpv-0006b0-Ox for ietf-http-wg@w3.org; Thu, 15 Nov 2012 01:01:44 +0000
Received: by mail-oa0-f43.google.com with SMTP id k1so1162850oag.2 for <ietf-http-wg@w3.org>; Wed, 14 Nov 2012 17:01:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=I1RAYeEYPdc5o0UhMUhSWuy3xcziMuS4BuzsuUNT9ic=; b=I+Xt+r2N/8ANaxeZpJCIruSOB5PxvIphVjy7FMpLjYlwXxFKQ28xOs9digwofjugT9 hC5DqtgHdOQasVxRCuc/srAIfI1Gd5+KU39lEmZc20Dz+dDMymD5TlkV2bapREPpRmA8 6B7CE5VCZb5EQYgm9O69Yrxv/YOeO28Wp62vag8dNnLVrDZzGdNV/1z5MPK0ZqjS7Ywf 769WjH54st6xWz0Y50DMJG1q/3iGY7nQuX0LOrdrdkpD3dotXrNkQq/ZxTOGs4VWWtBm jDZt0NURbkW/MBqo/ELajlARaFNeTD901hkFCK2riceLrdtntB2wzIqQ1BhIo6cAP/B6 OS1A==
MIME-Version: 1.0
Received: by 10.182.1.72 with SMTP id 8mr22258348obk.61.1352941277830; Wed, 14 Nov 2012 17:01:17 -0800 (PST)
Sender: patrick.ducksong@gmail.com
Received: by 10.76.82.71 with HTTP; Wed, 14 Nov 2012 17:01:17 -0800 (PST)
In-Reply-To: <4FC84233-30D4-4D45-87CC-302C9E5044B4@mnot.net>
References: <50A26226.10906@cisco.com> <90BB8922-9DBA-44C7-BBB3-2B5993F05D04@mnot.net> <CAOdDvNo=3WBNOnibNKAGyS_VBz3inBG5KRJGfP4U3-FxpS7X9g@mail.gmail.com> <4FC84233-30D4-4D45-87CC-302C9E5044B4@mnot.net>
Date: Wed, 14 Nov 2012 20:01:17 -0500
X-Google-Sender-Auth: nyrbG_eKFP-HIS3rd91hBUpKIt0
Message-ID: <CAOdDvNpAcDzFT6ekfNa9tL3Bum1pmeHCbCw2h1CGJGjmJFfLWg@mail.gmail.com>
From: Patrick McManus <pmcmanus@mozilla.com>
To: Mark Nottingham <mnot@mnot.net>
Cc: Eliot Lear <lear@cisco.com>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=f46d04462fe0445f8004ce7e3087
Received-SPF: pass client-ip=209.85.219.43; envelope-from=patrick.ducksong@gmail.com; helo=mail-oa0-f43.google.com
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: AWL=-1.467, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TYnpv-0006b0-Ox 705833134c843771037375da5cedf931
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/CAOdDvNpAcDzFT6ekfNa9tL3Bum1pmeHCbCw2h1CGJGjmJFfLWg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15626
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--f46d04462fe0445f8004ce7e3087
Content-Type: text/plain; charset=ISO-8859-1

multiple ports are fine by me.. just not limited to 80.

in general, whether this is a-p, upgrade, or srv, this is also the spot to
mux between tls as well as draft versions of the protocol. (i.e. upgrade:
http2-draft-00-tls)

On Wed, Nov 14, 2012 at 7:56 PM, Mark Nottingham <mnot@mnot.net> wrote:

>
> On 15/11/2012, at 11:54 AM, Patrick McManus <pmcmanus@mozilla.com> wrote:
> >
> > - Are we advertising that port 80 is capable of HTTP/2, or an alternate
> port for HTTP/2, or (capable of) both?
> >
> > imo it has to be an arbitrary port.. if you send anything other than
> http/1 on port 80 across the general internet you'll get some breakage.
>
> Agreed... however, I don't see a reason to make it impossible to say "I
> support HTTP/2 on port 80 too", so the client can optimistically try to use
> it first (as long as it can handle breakage).
>
> Cheers,
>
>
>
> --
> Mark Nottingham   http://www.mnot.net/
>
>
>
>

--f46d04462fe0445f8004ce7e3087
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

multiple ports are fine by me.. just not limited to 80.<br><br>in general, =
whether this is a-p, upgrade, or srv, this is also the spot to mux between =
tls as well as draft versions of the protocol. (i.e. upgrade: http2-draft-0=
0-tls)<br>
<br><div class=3D"gmail_quote">On Wed, Nov 14, 2012 at 7:56 PM, Mark Nottin=
gham <span dir=3D"ltr">&lt;<a href=3D"mailto:mnot@mnot.net" target=3D"_blan=
k">mnot@mnot.net</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote"=
 style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On 15/11/2012, at 11:54 AM, Patrick McManus &lt;<a href=3D"mailto:pmcmanus@=
mozilla.com">pmcmanus@mozilla.com</a>&gt; wrote:<br>
&gt;<br>
&gt; - Are we advertising that port 80 is capable of HTTP/2, or an alternat=
e port for HTTP/2, or (capable of) both?<br>
&gt;<br>
&gt; imo it has to be an arbitrary port.. if you send anything other than h=
ttp/1 on port 80 across the general internet you&#39;ll get some breakage.<=
br>
<br>
Agreed... however, I don&#39;t see a reason to make it impossible to say &q=
uot;I support HTTP/2 on port 80 too&quot;, so the client can optimistically=
 try to use it first (as long as it can handle breakage).<br>
<br>
Cheers,<br>
<br>
<br>
<br>
--<br>
Mark Nottingham =A0 <a href=3D"http://www.mnot.net/" target=3D"_blank">http=
://www.mnot.net/</a><br>
<br>
<br>
<br>
</blockquote></div><br>

--f46d04462fe0445f8004ce7e3087--


From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 17:03:12 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5F84D21F87A9 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 17:03:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.019
X-Spam-Level: 
X-Spam-Status: No, score=-10.019 tagged_above=-999 required=5 tests=[AWL=-0.290, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, SARE_MLH_Stock1=0.87]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PCI1YY7T6j9X for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 17:03:11 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id BF58721F87A5 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 17:03:11 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYnqx-0002yP-NG for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 01:02:47 +0000
Resent-Date: Thu, 15 Nov 2012 01:02:47 +0000
Resent-Message-Id: <E1TYnqx-0002yP-NG@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1TYnqt-0002wA-7B for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 01:02:43 +0000
Received: from ip-58-28-153-233.static-xdsl.xnet.co.nz ([58.28.153.233] helo=treenet.co.nz) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1TYnqs-0006bw-0l for ietf-http-wg@w3.org; Thu, 15 Nov 2012 01:02:43 +0000
Received: by treenet.co.nz (Postfix, from userid 33) id 9196AE7043; Thu, 15 Nov 2012 14:02:12 +1300 (NZDT)
To: <ietf-http-wg@w3.org>
X-PHP-Originating-Script: 0:main.inc
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Date: Thu, 15 Nov 2012 14:02:11 +1300
From: Amos Jeffries <squid3@treenet.co.nz>
In-Reply-To: <CCC96FED.6A3A9%sludin@akamai.com>
References: <CCC96FED.6A3A9%sludin@akamai.com>
Message-ID: <e8bdb69a82d82618220c0c3c3bfd1ede@treenet.co.nz>
X-Sender: squid3@treenet.co.nz
User-Agent: Roundcube Webmail/0.7.2
Received-SPF: pass client-ip=58.28.153.233; envelope-from=squid3@treenet.co.nz; helo=treenet.co.nz
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-2.499, BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TYnqs-0006bw-0l 7932ec242197a73f97d59aac0b5695e1
X-Original-To: ietf-http-wg@w3.org
Subject: Re: RFC: draft-brown-device-stock-ua-00.txt
Archived-At: <http://www.w3.org/mid/e8bdb69a82d82618220c0c3c3bfd1ede@treenet.co.nz>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15627
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 15.11.2012 13:03, Ludin, Stephen wrote:
> I am not certain I understand the question, but I'll answer with 
> where the
> 'situational' part could come in.  The two simplest are:
>
> 1) Origin outputs device specific content and uses the intermediary 
> simply
> to accelerate and/or cache
> 2) Origin serve generic content and the intermediary performs the
> appropriate adaptation
>
> I the latter example, the origin dose not necessarily need to know 
> the
> device details and removing or changing the header may be 
> appropriate.  In
> the former the header is less important to the intermediary though 
> they
> still may need to for caching the content appropriately of so desired 
> by
> the origin.
>
> -stephen

Example (using the draft -00 definition):

   Device-Stock-UA: Chrome-Mobile/16.0

How does that determine what screen size is being viewed on:
  * 1-inch mobile
  * 5-inch mobile
  * 7-inch tablet
  * 10.2 inch tablet
  * 10.4 inch tablet
  * netbook
  * virtualized mobile device running in embeded 640x480 window frame
  * USB-enabled 1640x1280 monitor plugged into one of the above
  * ... the list goes on, and on...

How does it determine CPU capacity of the above?

How does it determine graphics capability of the above?

  ... etc.

The simple answer is that it cannot. Stock UA detail is a completely 
useless metric to be announcing for this and the other adaptation 
parameters important to both origins and surrogates.

I realize you said you would be re-writing the draft and gave some 
hints that you would be sending feature-based hints instead of UA 
strings. Looking forward to seeing that update, the -00 draft is not 
useful beyond gathering marketing statistics on non-removable stock 
browsers (ala ChromeOS, Windows MSIE, FirefoxOS). I posit that when you 
put useful device metrics into it instead of UA garbage you will find 
that simplifying the header name to just "Device:" makes a lot more 
sense and the privacy issues decrease (but not disappear).

AYJ

>
> On 11/13/12 7:30 PM, "Eitan Adler" wrote:
>
>>On 13 November 2012 17:26, Ludin, Stephen wrote:
>>> As an intermediary/surrogate, this makes a lot of sense.  I can see 
>>> the
>>> specific behavior required being very situational.
>>
>>When might I ask, would Akamai want to take action based on a browser
>>the user not using and may not even be installed?
>>
>>
>>--
>>Eitan Adler



From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 17:34:16 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2519821F844B for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 17:34:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.413
X-Spam-Level: 
X-Spam-Status: No, score=-10.413 tagged_above=-999 required=5 tests=[AWL=0.186, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B5czi5s+5PYn for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 17:34:15 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 8A1BE21F8444 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 17:34:15 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYoK2-0007qX-Va for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 01:32:51 +0000
Resent-Date: Thu, 15 Nov 2012 01:32:50 +0000
Resent-Message-Id: <E1TYoK2-0007qX-Va@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1TYoJo-0007oE-3u for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 01:32:36 +0000
Received: from ip-58-28-153-233.static-xdsl.xnet.co.nz ([58.28.153.233] helo=treenet.co.nz) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1TYoJj-0002qv-JS for ietf-http-wg@w3.org; Thu, 15 Nov 2012 01:32:36 +0000
Received: by treenet.co.nz (Postfix, from userid 33) id BA460E704F; Thu, 15 Nov 2012 14:31:58 +1300 (NZDT)
To: <ietf-http-wg@w3.org>
X-PHP-Originating-Script: 0:main.inc
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Date: Thu, 15 Nov 2012 14:31:58 +1300
From: Amos Jeffries <squid3@treenet.co.nz>
In-Reply-To: <20121114224746.GO18082@1wt.eu>
References: <20121114221015.GK18082@1wt.eu> <ema69a971f-c1a7-4b84-8646-d5b8d8a312da@bombed> <20121114224746.GO18082@1wt.eu>
Message-ID: <09d68b67b831d7604ab22527e15108c5@treenet.co.nz>
X-Sender: squid3@treenet.co.nz
User-Agent: Roundcube Webmail/0.7.2
Received-SPF: pass client-ip=58.28.153.233; envelope-from=squid3@treenet.co.nz; helo=treenet.co.nz
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-3.449, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TYoJj-0002qv-JS b8d916b0a74d9fcde2625504ece4c6d9
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/09d68b67b831d7604ab22527e15108c5@treenet.co.nz>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15628
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 15.11.2012 11:47, Willy Tarreau wrote:
> On Wed, Nov 14, 2012 at 10:30:21PM +0000, Adrien W. de Croy wrote:
>>
>> If we had change of scheme on the table (which I don't think we do),

Maybe. If so it is on another table over that way --->

This thread needs to handle the case that the client for whatever 
reason has chosen to use only an http:// URL and DNS to fetch the 
content *and* opts not to Upgrade:.

>> and possible change of port, then need it be http at all?
>>
>> e.g. are we then talking about new protocol on new port?
>
> yes, raw HTTP2 on dedicated default port.
>
>> I'd suggest "http2://" as a scheme name will be unpopular, maybe
>> something more user-friendly for example "web://"
>
> Possibly, yes.
>

Might as well redefine HTML to use gopher:// to fetch that XML/JSON 
data, and urn:// on multimedia then. No I'm not joking. Both are 
individually more efficient at that type of transfer than HTTP 
messaging. What is the use of retaining HTTP/1.x semantics if a 
completely different protocol, different scheme, different port is going 
to be the outcome?


>> I think also in the unlikely event that such a proposal went any
>> further, we could look at a new way to determine how to connect etc.
>>
>> Web content authors don't want to be concerned about the protocol 
>> used
>> to deliver their pages.
>
> But they already do. I really think that's a wrong argument we've 
> already
> read here, because many of them are already used to have their 
> application
> frameworks build the URLs automatically. They even ask us (the 
> reverse-proxy
> guys) to provide some "X-Protocol: https" or "X-SSL: yes" to help 
> them
> decide whether to emit "http://" or "https://" in all the pages the 
> build.
> So the scheme is not that much of an issue, and certainly not a 
> show-stopper.

The best one I have seen was a request for "Via: 1.1 example.com:443 
(HTTPS)" - which *is* a reasonable extension of Via when you think about 
it being completely agnostic to the particular port in use. Although 
even better would be: "Via: HTTP/1.1 example.com:443 (TLS)" which gives 
transparency about the scheme and transport layer combinations as well.

That said the "//example.com/" page URL syntax is a wonderful boon to 
my developer side-life. Unfortunately RFC 2616 requires an absolute URL 
in Location: headers, so a lot of frameworks and custom scripts do not 
support sending it back on redirects.

AYJ



From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 17:35:43 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6B60E21F8545 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 17:35:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.881
X-Spam-Level: 
X-Spam-Status: No, score=-8.881 tagged_above=-999 required=5 tests=[AWL=1.718, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QHIu2AA0PuOG for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 17:35:42 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 6911321F8536 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 17:35:42 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYoM9-000851-EZ for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 01:35:01 +0000
Resent-Date: Thu, 15 Nov 2012 01:35:01 +0000
Resent-Message-Id: <E1TYoM9-000851-EZ@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TYoM5-00083a-EJ for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 01:34:57 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TYoM4-0007ZG-By for ietf-http-wg@w3.org; Thu, 15 Nov 2012 01:34:57 +0000
Received: from [192.168.1.64] (unknown [118.209.81.233]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id AED7C509B5; Wed, 14 Nov 2012 20:34:33 -0500 (EST)
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <CAC8V0TXa3-+DytznfdoLms8xzEGx+3cQQs_Lvg5c81G_dx+3gw@mail.gmail.com>
Date: Thu, 15 Nov 2012 12:34:36 +1100
Cc: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <3196ADF7-9983-4590-B8B3-9F590236C16E@mnot.net>
References: <CAC8V0TXa3-+DytznfdoLms8xzEGx+3cQQs_Lvg5c81G_dx+3gw@mail.gmail.com>
To: Akon Dey <akon.dey@gmail.com>
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-3.9
X-W3C-Hub-Spam-Report: AWL=-2.015, BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TYoM4-0007ZG-By abdbfd333f720e6d5fc546fa26cd7744
X-Original-To: ietf-http-wg@w3.org
Subject: Re: High-resolution timestamp in HTTP response header
Archived-At: <http://www.w3.org/mid/3196ADF7-9983-4590-B8B3-9F590236C16E@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15629
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 15/11/2012, at 12:22 PM, Akon Dey <akon.dey@gmail.com> wrote:

> Hi,
>=20
> The current HTTP headers related to time have a time granularity of 1 =
second. This is fine when considering the update time of files on a UNIX =
filesystem on the HTTP-server but is insufficient when considering =
today's use cases where the resource is not limited to just files but =
data store objects or database columns.
>=20
> I would like to propose that the granularity of the data fields =
support higher time granularity given we are in the process of =
specifying the next version of the HTTP protocol.
>=20
> This will enable the use of HTTP to higher throughput "put =
if-unmodified-since X" type operations among other useful things.
>=20
> I would be glad to elaborate the use cases in more detail.


Hi Akon,

HTTP's granularity of time is very intentionally one second, because the =
clock skew that is prevalent on the Internet as well as the delay =
introduced by latency mean that an finer granularity is effectively an =
attractive nuisance; Web developers will believe that there is a degree =
of control offered that is in fact not available.

Additionally, changing the syntax to allow it in a backwards-compatible =
way isn't practical; this would have to be done with new headers.

When HTTP/1.1 was created, it was recognised that one-second granularity =
wasn't adequate for some use cases, especially validation. That's why =
ETags (along with If-None-Match) were created, to allow arbitrary and =
server-controlled granularity for validation.

Cheers,


--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 18:05:41 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2792821F8445 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 18:05:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.681
X-Spam-Level: 
X-Spam-Status: No, score=-7.681 tagged_above=-999 required=5 tests=[AWL=2.917, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dsXWcG49L2Ze for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 18:05:34 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 8F28D21F8448 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 18:05:33 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYona-0005DX-Kl for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 02:03:22 +0000
Resent-Date: Thu, 15 Nov 2012 02:03:22 +0000
Resent-Message-Id: <E1TYona-0005DX-Kl@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <hallam@gmail.com>) id 1TYonU-0005Co-AJ for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 02:03:16 +0000
Received: from mail-ob0-f171.google.com ([209.85.214.171]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <hallam@gmail.com>) id 1TYonT-0008PW-91 for ietf-http-wg@w3.org; Thu, 15 Nov 2012 02:03:16 +0000
Received: by mail-ob0-f171.google.com with SMTP id dn14so1216535obc.2 for <ietf-http-wg@w3.org>; Wed, 14 Nov 2012 18:02:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=AJyJ+sP/k2CLb0MwygmfPoSDCZLZfJLSw7Ce9dpDONw=; b=JA9Y312fXLCcaNL9yBjYfZHMhEHpofP2U8fceGAVdyRXmO2eHl3uFtUJhy0JqKSMax ce0LPMafVXdEwQGaHFbwFgPqdeetAFamlPqbk/1dq4oLHinNaa7PHJCN0vmkfeQKJjjD +GcijDDCTxDbw1s9vnXlgXW21aevgfXbbXzcSpMSiE8Kc+i67P19I4uqmn7OfWUGj7+r jjJZjxcsBS0jpiu0EiXgOu9hlqefDcm0h9SJovC0em7XV7E3Z4NhpXwcXaMqF/19Xkj6 4t1jZO0a4a2YA+UhrRpy8f/a0G9xS/6sukyYsThmbl2TL9cNFKW2Ey2/D5X4C5MflL2m vqnQ==
MIME-Version: 1.0
Received: by 10.182.111.104 with SMTP id ih8mr22853816obb.13.1352944969315; Wed, 14 Nov 2012 18:02:49 -0800 (PST)
Received: by 10.76.27.103 with HTTP; Wed, 14 Nov 2012 18:02:49 -0800 (PST)
Date: Wed, 14 Nov 2012 21:02:49 -0500
Message-ID: <CAMm+Lwgc8b0nShWa2O8HNBDFKkdcpS0Hj483Y0ix8L8jVeQZhg@mail.gmail.com>
From: Phillip Hallam-Baker <hallam@gmail.com>
To: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=14dae9340d5d4bf57c04ce7f0c07
Received-SPF: pass client-ip=209.85.214.171; envelope-from=hallam@gmail.com; helo=mail-ob0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: AWL=-1.420, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TYonT-0008PW-91 cbb3f9f04ad73f681a445606a3d98291
X-Original-To: ietf-http-wg@w3.org
Subject: HTTP Integrity Header / Session Continuation mechanism
Archived-At: <http://www.w3.org/mid/CAMm+Lwgc8b0nShWa2O8HNBDFKkdcpS0Hj483Y0ix8L8jVeQZhg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15630
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--14dae9340d5d4bf57c04ce7f0c07
Content-Type: text/plain; charset=ISO-8859-1

As people will have noticed, using cookies as bearer tokens for
authentication/authorization is a really bad idea. The fact that the
information is static means that the cookies are vulnerable to cookie
stealing through all sorts of weird and not-wonderful ways of which CRIME
and BEAST represent the hard way to do things.

WebSec is looking at mechanisms that shut down some of the most egregious
known vectors for cookie leakage but we are not going to have a
satisfactory Web authentication infrastructure unless we can stop using
bearer tokens for authentication.

I have updated my draft describing an approach to addressing this issue by
defining a new HTTP header whose purpose is to carry the session
continuation data once an authentication context has been established. The
means by which the session is established is out of scope for the document
though I have put in a sketch of a design for explanatory purposes. The
idea is that regardless of how the authentication session is established
(Kerberos, SAML, OpenID, WS-*, new HTTP schemes) the same mechanism can be
used to apply that context to subsequent messages.

http://tools.ietf.org/html/draft-hallambaker-httpintegrity-02


-- 
Website: http://hallambaker.com/

--14dae9340d5d4bf57c04ce7f0c07
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

As people will have noticed, using cookies as bearer tokens for authenticat=
ion/authorization is a really bad idea. The fact that the information is st=
atic means that the cookies are vulnerable to cookie stealing through all s=
orts of weird and not-wonderful ways of which CRIME and BEAST represent the=
 hard way to do things.<div>
<br></div><div>WebSec is looking at mechanisms that shut down some of the m=
ost egregious known vectors for cookie leakage but we are not going to have=
 a satisfactory Web authentication infrastructure unless we can stop using =
bearer tokens for authentication.</div>
<div><br></div><div>I have updated my draft describing an approach to addre=
ssing this issue by defining a new HTTP header whose purpose is to carry th=
e session continuation data once an authentication context has been establi=
shed. The means by which the session is established is out of scope for the=
 document though I have put in a sketch of a design for explanatory purpose=
s. The idea is that regardless of how the authentication session is establi=
shed (Kerberos, SAML, OpenID, WS-*, new HTTP schemes) the same mechanism ca=
n be used to apply that context to subsequent messages.</div>
<div><br></div><div><a href=3D"http://tools.ietf.org/html/draft-hallambaker=
-httpintegrity-02">http://tools.ietf.org/html/draft-hallambaker-httpintegri=
ty-02</a></div><div><br clear=3D"all"><div><br></div>-- <br>Website: <a hre=
f=3D"http://hallambaker.com/">http://hallambaker.com/</a><br>
<br>
</div>

--14dae9340d5d4bf57c04ce7f0c07--


From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 21:03:17 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7AEF81F041A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 21:03:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.555
X-Spam-Level: 
X-Spam-Status: No, score=-5.555 tagged_above=-999 required=5 tests=[AWL=4.744, BAYES_00=-2.599, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aJWzIr88VoPq for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 21:03:15 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 496DE21F84C8 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 21:03:15 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYrZM-0008Ow-Ro for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 05:00:52 +0000
Resent-Date: Thu, 15 Nov 2012 05:00:52 +0000
Resent-Message-Id: <E1TYrZM-0008Ow-Ro@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <duerst@it.aoyama.ac.jp>) id 1TYrZF-0008N4-Si for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 05:00:45 +0000
Received: from scintmta02.scbb.aoyama.ac.jp ([133.2.253.34]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <duerst@it.aoyama.ac.jp>) id 1TYrZD-0005js-FN for ietf-http-wg@w3.org; Thu, 15 Nov 2012 05:00:45 +0000
Received: from scmse02.scbb.aoyama.ac.jp ([133.2.253.231]) by scintmta02.scbb.aoyama.ac.jp (secret/secret) with SMTP id qAF50EWR031908 for <ietf-http-wg@w3.org>; Thu, 15 Nov 2012 14:00:14 +0900
Received: from (unknown [133.2.206.133]) by scmse02.scbb.aoyama.ac.jp with smtp id 6240_9fe0_579b7012_2ee1_11e2_a2cc_001d096c5782; Thu, 15 Nov 2012 14:00:13 +0900
Received: from [IPv6:::1] ([133.2.210.1]:57349) by itmail.it.aoyama.ac.jp with [XMail 1.22 ESMTP Server] id <S1614CDA> for <ietf-http-wg@w3.org> from <duerst@it.aoyama.ac.jp>; Thu, 15 Nov 2012 14:00:17 +0900
Message-ID: <50A476D9.8000204@it.aoyama.ac.jp>
Date: Thu, 15 Nov 2012 14:00:09 +0900
From: =?UTF-8?B?Ik1hcnRpbiBKLiBEw7xyc3Qi?= <duerst@it.aoyama.ac.jp>
Organization: Aoyama Gakuin University
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100722 Eudora/3.0.4
MIME-Version: 1.0
To: =?UTF-8?B?RnLDqWTDqXJpYyBLYXlzZXI=?= <f.kayser@free.fr>
CC: ietf-http-wg@w3.org, James M Snell <jasnell@gmail.com>
References: <CABP7Rbfkvc_gsSESd2mHiLaYO5Ng2g0JZ4VYB2kYQcY2OX+aLg@mail.gmail.com> <D65DBD3C-730B-49AF-846E-3413BD27D37D@free.fr>
In-Reply-To: <D65DBD3C-730B-49AF-846E-3413BD27D37D@free.fr>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Received-SPF: none client-ip=133.2.253.34; envelope-from=duerst@it.aoyama.ac.jp; helo=scintmta02.scbb.aoyama.ac.jp
X-W3C-Hub-Spam-Status: No, score=-5.6
X-W3C-Hub-Spam-Report: AWL=-1.197, BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.188
X-W3C-Scan-Sig: maggie.w3.org 1TYrZD-0005js-FN b5bb7d6f073fc66bbc134556db02dc7e
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Updated Binary Optimized Header Encoding Draft
Archived-At: <http://www.w3.org/mid/50A476D9.8000204@it.aoyama.ac.jp>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15631
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Hello FrÃ©dÃ©ric,

On 2012/11/15 9:17, FrÃ©dÃ©ric Kayser wrote:
> Hi,
> could you precise some points regarding UTF-8 encoding ?
>
> "The next bit (E) indicates, when set, that the header field value contains UTF-8 encoded character content."
>
> - is a BOM allowed?

It does not make any sense at all as an encoding signature (we already 
know it's UTF-8). In the (hopefully very rare) cases it's present, it 
should be taken as part of the data (i.e. a ZERO WIDTH NO-BREAK SPACE).

The "UTF-8 BOM" (it's actually not a BOM, because there's no need to 
distinguish byte orders in UTF-8) is used quite a bit as an encoding 
signature for whole files. For this use case, there are vastly differing 
opinions, from "extremely useful" (more on the Windows side) to "very 
bothering" (more on the Linux side).

But for fields in protocols and formats, it's totally unnecessary, I 
don't know of anybody who's using or pushing it, and as far as I know, 
the danger that it slips in is fortunately extremely low.


> - are there restrictions concerning Unicode Normalizations Forms,

There shouldn't be, because in some cases, it may be necessary to allow 
both forms. Imagine a service that converts data from one of these forms 
to the other.

On the other hand, recommending that NFC be used when there's a choice 
is a good idea (it will mostly happen even without this recommendation, 
but the recommendation will address questions like the ones in your email.


> NFC is used most of the time but NFD could lead to smaller compressed results

Do you have any data to back this up, or is this just a guess?

NFC (Composed) is by definition always at least as short as NFD 
(Decomposed). It is probably not impossible to construct data for which 
NFD compresses better than NFC (*), but I'm having a very hard time 
imagining that NFD would compress better than NFC for a wide range of data.


> And since UTF-8 is used why stick to generic zlib/deflate for compression?
> UTF-8 encoding has some inherent characteristics http://en.wikipedia.org/wiki/UTF-8#Description

(see also http://www.sw.it.aoyama.ac.jp/2012/pub/IUC11-UTF-8.pdf, a 
paper of mine from 1997 showing how this allows easy heuristic 
distinction between UTF-8 and other encodings)

> A compression algorithm aware of those would be more efficient than deflate, Huffman encoding in deflate is context unaware (order 0) contrary to PPM (Prediction by partial matching) based algorithms.
>
> By today standards zlib/deflate is totally outdated: search window limited to 32k Bytes (can you imagine how ridiculous this is when used in nowadays PNG files, look what Google did in WebP lossless), it's dog slow to compress/decompress compared to LZ4, compressed size is far from being on par with LZMA or even bzip2, OK running an LZMA decoder is probably not the best thing to do on power and memory limited smartphones, but I wouldn't mind moving away from zlib/deflate for something closer to the compressed size vs. compression time Pareto frontier.

Do you have any particular algorithm in mind? Ideally something that is 
well established, and works not only for UTF-8. Otherwise, we need two 
separate algorithms, one for UTF-8 and one for the rest of the data.


Regards,   Martin.


P.S. (*): One line worth trying may be a language where there is a 
strong correlation between a vowel and the previous consonant, and also 
a strong correlation between the accent (e.g. tone mark) on the vowel 
and following consonants.

Because NFD treats the vowel and the accent as as separate characters, 
both of these correlations can be picked up independently. On the other 
hand, in the case of NFC, the vowel and the accent are just one 
precomposed character, which may make it more difficult to pick up the 
correlations quickly.

But this is highly speculative, and depends quite a bit on the length of 
the input and the size of the tables used,...


From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 21:33:34 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6BD9621F8553 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 21:33:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.972
X-Spam-Level: 
X-Spam-Status: No, score=-8.972 tagged_above=-999 required=5 tests=[AWL=1.627, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PHLcf089EmsG for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 21:33:32 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 9D9BE21E8051 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 21:33:32 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYs3W-00059p-3i for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 05:32:02 +0000
Resent-Date: Thu, 15 Nov 2012 05:32:02 +0000
Resent-Message-Id: <E1TYs3W-00059p-3i@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TYs3Q-000595-OK for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 05:31:56 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TYs3P-0003w5-In for ietf-http-wg@w3.org; Thu, 15 Nov 2012 05:31:56 +0000
Received: from unknown040ccedb8222.mnot.net (unknown [118.209.81.233]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 13E7B509B8 for <ietf-http-wg@w3.org>; Thu, 15 Nov 2012 00:31:32 -0500 (EST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <7D2A809E-F3E0-4128-AFEA-8EEEBF3AC26E@mnot.net>
Date: Thu, 15 Nov 2012 16:31:29 +1100
Content-Transfer-Encoding: quoted-printable
Message-Id: <ACD069C6-1CD9-4CD1-9644-BA82C0B9DE84@mnot.net>
References: <7D2A809E-F3E0-4128-AFEA-8EEEBF3AC26E@mnot.net>
To: HTTP Working Group <ietf-http-wg@w3.org>
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-2.9
X-W3C-Hub-Spam-Report: AWL=-2.899, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TYs3P-0003w5-In 638d8a73e2475ee47693b7471b7c3f6f
X-Original-To: ietf-http-wg@w3.org
Subject: #401 /#402: Our old friends, weak ETags
Archived-At: <http://www.w3.org/mid/ACD069C6-1CD9-4CD1-9644-BA82C0B9DE84@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15632
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

We need to wrap this up. I've created =
<http://trac.tools.ietf.org/wg/httpbis/trac/ticket/401> and =
<http://trac.tools.ietf.org/wg/httpbis/trac/ticket/402> to track.

So far, I've seen a few complaints about Weak ETags in general, as well =
as the resolution of HTTP dates and unhappiness with content negotiation =
for compression, but no opinions about the questions at hand.

My proposals below --


On 20/07/2012, at 1:25 PM, Mark Nottingham wrote:

> I just received an interesting bug report on REDbot; =
<https://github.com/mnot/redbot/issues/109>
>=20
> """
> When an ETag is marked weak with "W/", it need not change across =
different content encodings. "Weak" means the entity is semantically =
equivalent but not bit-equivalent. But Redbot complains that it doesn't =
change with different content encodings.
> """
>=20
> Looking into this, a couple of things pop up:
>=20
> 1) The obvious question, whether two different *negotiated* =
representations of the same resource can (or should) have the same weak =
ETag. Our current definition is this:
>=20
> """
> In contrast, a "weak validator" is a representation metadata value =
that might not be changed for every change to the representation data. =
This weakness might be due to limitations in how the value is =
calculated, such as clock resolution or an inability to ensure =
uniqueness for all possible representations of the resource, or due to a =
desire by the resource owner to group representations by some =
self-determined set of equivalency rather than unique sequences of data. =
An origin server should change a weak entity-tag whenever it considers =
prior representations to be unacceptable as a substitute for the current =
representation. In other words, a weak entity-tag ought to change =
whenever the origin server wants caches to invalidate old responses.
> """ =
<https://svn.tools.ietf.org/svn/wg/httpbis/draft-ietf-httpbis/latest/p4-co=
nditional.html#weak.and.strong.validators>
>=20
> Strictly speaking, I don't think this is a problem for caches; =
following the rules for reusing a stored response =
<https://svn.tools.ietf.org/svn/wg/httpbis/draft-ietf-httpbis/latest/p6-ca=
che.html#constructing.responses.from.caches>, a cache doesn't use the =
ETag to select a representation (what we used to call a variant) from a =
pool of many.=20
>=20
> Having said that, I'm still a bit uneasy. An ETag is supposed to be =
scoped to an entire resource, not just the selected representation. =
Because the response is negotiated, I'm tempted to argue that a =
compressed response is NOT semantically equivalent to an uncompressed =
one, just as a French response isn't equivalent to an English one, =
because the client has stated they don't understand English.
>=20
> Thoughts? Is it worth clarifying this, or is it acceptable to have two =
different negotiated representations of the same resource share a weak =
ETag?

Thinking about this a bit more, I think my uneasiness stems from a =
situation where the server has sent these two responses (with the same =
target URI):

Vary: Accept-Encoding
Content-Encoding: gzip
ETag: W/"abc"

Vary: Accept-Encoding
ETag: W/"abc"

This is effectively contradicting itself; Vary indicates that the =
response differs based upon the Accept-Encoding request header (and =
Content-Encoding confirms that), but the ETag says that they're the same =
(albeit, only "semantically" the same).

OTOH, I don't see any hard requirements for ETag uniqueness within the =
scope of a resource -- either in 2616 or bis -- so technically, the =
example above could be with strong ETags and still be confomant. I think =
it'd still be functional within the caching spec as well (although some =
implementations may not behave well).

Both, however, conflict with our current description of ETag's semantics =
(or at least its spirit):

> An entity-tag is an opaque validator for differentiating between =
multiple representations of the same resource, regardless of whether =
those multiple representations are due to resource state changes over =
time, content negotiation resulting in multiple representations being =
valid at the same time, or both.=20

I see a couple of possible ways forward:

a) Require that ETags differ when the server performs selection / =
conneg, regardless of their strength.=20

b) Explain in prose that content negotiation usually affects the meaning =
of the response, therefore necessitating a different ETag.

c) Modify the definition of ETag to avoid this conflict

(Those are in my personal preference order; however, I'm more interested =
in getting the issue solved than any particular outcome)

Separate from that, I wonder if we should place specific requirements on =
ETag uniqueness across the representations of a resource. It'd likely be =
that strong ETags MUST differ when the body is byte-for-byte different, =
or there is a meaningful change in the representation's headers; for =
weak ETags, it'd be a meaningful change in the headers or body (when =
"meaningful" is defined by the server).=20

Thoughts?


> 2) In the definitions of If-Match and If-None-Match, we don't specify =
whether the weak or strong comparison function is to be used when these =
validations actually occur, although we spend a lot of text on when to =
use weak vs. strong ETags themselves.=20
>=20
> Now, you might say that an origin server can decide whether to use the =
weak or strong function, but an intermediary or client cache doesn't =
have license to do weak comparison, and could cause a lot of trouble if =
it did. AFAICT we don't specify this, but I think we should.


I propose we specify that proxy and client caches MUST use the strong =
comparison function with If-Match and If-None-Match.=20


--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 21:40:52 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8B27521E8051 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 21:40:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.595
X-Spam-Level: 
X-Spam-Status: No, score=-10.595 tagged_above=-999 required=5 tests=[AWL=0.003, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id co13FjMEK2vL for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 21:40:51 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 4801721F84EE for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 21:40:50 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYsAi-0006nE-2D for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 05:39:28 +0000
Resent-Date: Thu, 15 Nov 2012 05:39:28 +0000
Resent-Message-Id: <E1TYsAi-0006nE-2D@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <lear@cisco.com>) id 1TYsAe-0006mG-2g for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 05:39:24 +0000
Received: from ams-iport-3.cisco.com ([144.254.224.146]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <lear@cisco.com>) id 1TYsAc-0004Fe-VF for ietf-http-wg@w3.org; Thu, 15 Nov 2012 05:39:24 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1652; q=dns/txt; s=iport; t=1352957962; x=1354167562; h=message-id:date:from:mime-version:to:cc:subject: references:in-reply-to; bh=aHc/5b/rugDJBX3IJ+p4tNbOZvYFnGruw4njw+py0Fk=; b=LYjIt2G/N6WeNyO1r8J5/zGTbtpuiCmv2Dyc39R7HQ6updIDJiK1EmSD nUjacT/9GcmUTlDELcuyr9qZyoTcO5qu+H7KnYTj4miDSOPuhXkex/cVJ FdbxbqYGIQdkb6bC7RO/+CMiLUde9FQbihpjYY/ptrjM0NuP+GzLGWohx s=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AhgFAL9+pFCQ/khL/2dsb2JhbABEhh2FX7dLgQiCFQkBAQEEEgEQVQEQCwMBFAkWCwICCQMCAQIBRQYNAQcBAR6HaZttjSiSX4xBhQWBEwOVfI5YgWuCcIFaIA
X-IronPort-AV: E=McAfee;i="5400,1158,6896"; a="9582076"
Received: from ams-core-2.cisco.com ([144.254.72.75]) by ams-iport-3.cisco.com with ESMTP; 15 Nov 2012 05:38:56 +0000
Received: from dhcp-10-55-84-57.cisco.com (dhcp-10-55-84-57.cisco.com [10.55.84.57]) by ams-core-2.cisco.com (8.14.5/8.14.5) with ESMTP id qAF5ctfQ023448 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 15 Nov 2012 05:38:56 GMT
Message-ID: <50A47FF0.5030001@cisco.com>
Date: Thu, 15 Nov 2012 06:38:56 +0100
From: Eliot Lear <lear@cisco.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: Patrick McManus <pmcmanus@mozilla.com>
CC: Mark Nottingham <mnot@mnot.net>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
References: <50A26226.10906@cisco.com> <90BB8922-9DBA-44C7-BBB3-2B5993F05D04@mnot.net> <CAOdDvNo=3WBNOnibNKAGyS_VBz3inBG5KRJGfP4U3-FxpS7X9g@mail.gmail.com> <4FC84233-30D4-4D45-87CC-302C9E5044B4@mnot.net> <CAOdDvNpAcDzFT6ekfNa9tL3Bum1pmeHCbCw2h1CGJGjmJFfLWg@mail.gmail.com>
In-Reply-To: <CAOdDvNpAcDzFT6ekfNa9tL3Bum1pmeHCbCw2h1CGJGjmJFfLWg@mail.gmail.com>
X-Enigmail-Version: 1.4.5
Content-Type: multipart/alternative; boundary="------------010401060308080702040506"
Received-SPF: pass client-ip=144.254.224.146; envelope-from=lear@cisco.com; helo=ams-iport-3.cisco.com
X-W3C-Hub-Spam-Status: No, score=-13.2
X-W3C-Hub-Spam-Report: AWL=-0.393, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.188, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5
X-W3C-Scan-Sig: lisa.w3.org 1TYsAc-0004Fe-VF f93177900486e59e249b47ad073ed555
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/50A47FF0.5030001@cisco.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15633
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

This is a multi-part message in MIME format.
--------------010401060308080702040506
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit


On 11/15/12 2:01 AM, Patrick McManus wrote:
> multiple ports are fine by me.. just not limited to 80.
>
> in general, whether this is a-p, upgrade, or srv, this is also the
> spot to mux between tls as well as draft versions of the protocol.
> (i.e. upgrade: http2-draft-00-tls)

Be careful!  Different security properties would lead to downgrade
attacks without the proper use of DNSSEC!!

Eliot

--------------010401060308080702040506
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-cite-prefix">On 11/15/12 2:01 AM, Patrick McManus
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAOdDvNpAcDzFT6ekfNa9tL3Bum1pmeHCbCw2h1CGJGjmJFfLWg@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      multiple ports are fine by me.. just not limited to 80.<br>
      <br>
      in general, whether this is a-p, upgrade, or srv, this is also the
      spot to mux between tls as well as draft versions of the protocol.
      (i.e. upgrade: http2-draft-00-tls)<br>
    </blockquote>
    <br>
    Be careful!Â  Different security properties would lead to downgrade
    attacks without the proper use of DNSSEC!!<br>
    <br>
    Eliot<br>
  </body>
</html>

--------------010401060308080702040506--


From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 21:52:05 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6626321F85CB for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 21:52:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.053
X-Spam-Level: 
X-Spam-Status: No, score=-9.053 tagged_above=-999 required=5 tests=[AWL=1.546, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nFzuYX86Thb8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 21:52:04 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 9AD5C21F85C6 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 21:52:04 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYsLi-0000HR-1N for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 05:50:50 +0000
Resent-Date: Thu, 15 Nov 2012 05:50:50 +0000
Resent-Message-Id: <E1TYsLi-0000HR-1N@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TYsLc-0000Fn-NV for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 05:50:44 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TYsLb-0007X6-I9 for ietf-http-wg@w3.org; Thu, 15 Nov 2012 05:50:44 +0000
Received: from unknown040ccedb8222.mnot.net (unknown [118.209.81.233]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id D494F509B8; Thu, 15 Nov 2012 00:50:20 -0500 (EST)
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <507A332B.3020301@treenet.co.nz>
Date: Thu, 15 Nov 2012 16:50:16 +1100
Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <BD13C05A-992C-4EB9-874F-577F726CE6D9@mnot.net>
References: <507A332B.3020301@treenet.co.nz>
To: Amos Jeffries <squid3@treenet.co.nz>
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-3.9
X-W3C-Hub-Spam-Report: AWL=-1.982, BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TYsLb-0007X6-I9 71904fa3b7c04ade186a596fd906f586
X-Original-To: ietf-http-wg@w3.org
Subject: #403: cacheability of Authentication and no-cache
Archived-At: <http://www.w3.org/mid/BD13C05A-992C-4EB9-874F-577F726CE6D9@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15634
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Hi Amos,

I've created that as =
<http://trac.tools.ietf.org/wg/httpbis/trac/ticket/403>.

My .02 -- I seem to remember some discussion about this. While it's true =
that revalidation is necessary to make an authenticated, cached response =
work properly, it doesn't follow that every condition that would lead to =
mandatory revalidation is a signal from the origin server that it's OK =
to cache the response to an authenticated request. "no-cache" is a =
particularly poor example of such a signal, since it's often =
misunderstood.

IIRC this is why we left no-cache out.

While we're here -- I'd like to remove all of the caching information =
from p7 and replace it with a reference to p6 3.2. Make sense?


On 14/10/2012, at 2:36 PM, Amos Jeffries <squid3@treenet.co.nz> wrote:

> While reviewing the clauses for cacheability I find an undefined case =
which can reasonably be expected to appear in real-world traffic.
>=20
> Comparing p6 section 7.2.2.3 and 7.2.2.5 it is clear that response =
Cache-Control "no-cache" with no values is semantically equivalent to =
"must-revalidate, max-age=3D0".
>=20
> p7 section 4.1 clause 2 states that responses with "must-revalidate" =
MAY be cached for use on later requests provided revalidation is done.
>=20
> Assuming that p7 clause is true, I see no reason why "no-cache" =
response control cannot be also added to p7 section 4.1 list of =
exceptions along with must-revalidate.
>=20
> Amos
>=20
>=20

--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 22:01:41 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A90F221F866B for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 22:01:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.127
X-Spam-Level: 
X-Spam-Status: No, score=-9.127 tagged_above=-999 required=5 tests=[AWL=1.472, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pXzBXkYDlY+H for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 22:01:37 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 6129F21F865B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 22:01:37 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYsVO-0005lh-J0 for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 06:00:50 +0000
Resent-Date: Thu, 15 Nov 2012 06:00:50 +0000
Resent-Message-Id: <E1TYsVO-0005lh-J0@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TYsVK-0005ky-6a for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 06:00:46 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TYsVJ-000517-1q for ietf-http-wg@w3.org; Thu, 15 Nov 2012 06:00:46 +0000
Received: from unknown040ccedb8222.mnot.net (unknown [118.209.81.233]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 35BD6509BA; Thu, 15 Nov 2012 01:00:21 -0500 (EST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <DA86AAEF6E448540808AFA696EA47E5A40069EAF@EXB01-MLT.corp.velocix.com>
Date: Thu, 15 Nov 2012 17:00:18 +1100
Cc: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Transfer-Encoding: 7bit
Message-Id: <CB0DA05B-5B33-4D10-B051-8506AE9A606F@mnot.net>
References: <DA86AAEF6E448540808AFA696EA47E5A40069EAF@EXB01-MLT.corp.velocix.com>
To: Thomas Fossati <TFossati@velocix.com>
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-2.9
X-W3C-Hub-Spam-Report: AWL=-2.851, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TYsVJ-000517-1q 22a3d45e75ac20746414ce4c30444dc8
X-Original-To: ietf-http-wg@w3.org
Subject: Re: review of p5-latest 
Archived-At: <http://www.w3.org/mid/CB0DA05B-5B33-4D10-B051-8506AE9A606F@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15635
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Thanks, Thomas; now <http://trac.tools.ietf.org/wg/httpbis/trac/ticket/405>.


On 23/10/2012, at 1:51 AM, Thomas Fossati <TFossati@velocix.com> wrote:

> Hi, I've been reading from top to bottom the last version of p5, and got
> this small bunch of comments.
> 
> Cheers, Thomas.
> 
> 
> = Misc:
>  * I can't find an explicit "MUST not include Content-Range in a response
> header when Content-Type is multipart/byteranges"
>  * Sect. 3.2/5.2: is "*/*" an acceptable value for Content-Range + 416 ?
>  * Sect. 4.1: requirement to serve ranges in the order specified by the
> client could be in contrast with the suggestion, a couple of paragraphs
> afterwards, of combining overlapping ranges (which could imply reordering)
>  * Sect. 4.2, last paragraph: "... then the client MAY store ...", isn't
> it an implementation detail ?
>  * Sect. 7.1: the actual suggestion for reducing the security risk
> associated to overlapping ranges is not detailed (as promised in the first
> paragraph of Sect. 7).  Add a back-link to Sect. 4.1 ?  Or move the
> "Server MAY combine requested ranges ..." here ?  Further to this point,
> it would be nice to mandate some preferred behaviour on both senders
> and/or receivers to simplify interoperability (e.g. senders SHOULD not
> send overlapping ranges and/or receivers SHOULD always compute the minimum
> number of ranges needed to satisfy a given range request).
>  * Appendix A: I may be missing something obvious, but I can't find any
> good reason (i.e. one that is not listed in -p1 Sect. 3.3.2) to avoid
> stating the Content-Length in the examples.
> 
> = Editorial:
>  * Sect. 5.3: "... send me the part(s) that I'm missing ..." => "... send
> me the part(s) I'm requesting ..."
>  * Sect. 5.4.2: the preamble to the bulleted list has the attribute
> "appropriate" which could be substituted by a less generic wording, like
> e.g.: "... are all syntactically correct as defined in Section 5.4.1, and
> at least one of the ranges has non empty intersection with the current
> resource representation extent, then: ..."
>  * Sect. 5.2, last paragraph seems misplaced (does it belong to Sect. 5.4
> instead ?)
> 
> 
> = Typos:
>  * Sect. 4.2: "most header" => "most recent header"
>  * Sect. 5.2: "request: A" => "request: a"
> 
> 

--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 22:09:09 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6A17721F878C for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 22:09:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.193
X-Spam-Level: 
X-Spam-Status: No, score=-9.193 tagged_above=-999 required=5 tests=[AWL=1.406, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WhEDS6oFjywH for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 22:09:08 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 8DB7121F8532 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 22:09:08 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYsc8-0007Sr-5v for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 06:07:48 +0000
Resent-Date: Thu, 15 Nov 2012 06:07:48 +0000
Resent-Message-Id: <E1TYsc8-0007Sr-5v@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TYsc4-0007Rz-6S for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 06:07:44 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TYsc3-0005I5-33 for ietf-http-wg@w3.org; Thu, 15 Nov 2012 06:07:44 +0000
Received: from unknown040ccedb8222.mnot.net (unknown [118.209.81.233]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 237E4509B6; Thu, 15 Nov 2012 01:07:19 -0500 (EST)
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <5087DD2F.7000303@gmx.de>
Date: Thu, 15 Nov 2012 17:07:16 +1100
Cc: ietf-http-wg@w3.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <14525785-453B-4F7A-8803-2475FADA28DD@mnot.net>
References: <5087DD2F.7000303@gmx.de>
To: Julian Reschke <julian.reschke@gmx.de>
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-2.8
X-W3C-Hub-Spam-Report: AWL=-2.805, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TYsc3-0005I5-33 e0384886dc1747be763d50ca010e7ca4
X-Original-To: ietf-http-wg@w3.org
Subject: #407: draft-ietf-httpbis-p5-range-21, "3.2 416 Requested Range Not Satisfiable"
Archived-At: <http://www.w3.org/mid/14525785-453B-4F7A-8803-2475FADA28DD@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15636
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Now <http://trac.tools.ietf.org/wg/httpbis/trac/ticket/407>


On 24/10/2012, at 11:21 PM, Julian Reschke <julian.reschke@gmx.de> =
wrote:

> =
<http://greenbytes.de/tech/webdav/draft-ietf-httpbis-p5-range-21.html#stat=
us.416>:
>=20
> "When this status code is returned for a byte-range request, the =
response SHOULD include a Content-Range header field specifying the =
current length of the representation (see Section 5.2). This response =
MUST NOT use the multipart/byteranges content-type. For example,"
>=20
> What is this "MUST NOT" about? Are there clients that will ignore the =
status code and assume success if they see the expected content-type?
>=20
> Best regards, Julian
>=20

--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 22:51:54 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4B17221F8618 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 22:51:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.255
X-Spam-Level: 
X-Spam-Status: No, score=-9.255 tagged_above=-999 required=5 tests=[AWL=1.344, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id knw506Qr5n9V for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 22:51:49 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 32B7D21F8609 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 22:51:49 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYtGx-0000rK-3H for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 06:49:59 +0000
Resent-Date: Thu, 15 Nov 2012 06:49:59 +0000
Resent-Message-Id: <E1TYtGx-0000rK-3H@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TYtGs-0000q7-DX for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 06:49:54 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TYtGr-0000v0-6A for ietf-http-wg@w3.org; Thu, 15 Nov 2012 06:49:54 +0000
Received: from [192.168.1.71] (unknown [118.209.81.233]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 5F98B509B7; Thu, 15 Nov 2012 01:49:30 -0500 (EST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <DA86AAEF6E448540808AFA696EA47E5A4006A858@EXB01-MLT.corp.velocix.com>
Date: Thu, 15 Nov 2012 17:49:27 +1100
Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <27E7D5CC-C194-4472-8696-56A2819AF62F@mnot.net>
References: <DA86AAEF6E448540808AFA696EA47E5A4006A858@EXB01-MLT.corp.velocix.com>
To: Thomas Fossati <TFossati@velocix.com>
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-3.9
X-W3C-Hub-Spam-Report: AWL=-1.951, BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TYtGr-0000v0-6A 43f8106d41a6132d0bce2a266f976a78
X-Original-To: ietf-http-wg@w3.org
Subject: Re: draft-ietf-httpbis-p5-range-latest, "5.3 If-Range"
Archived-At: <http://www.w3.org/mid/27E7D5CC-C194-4472-8696-56A2819AF62F@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15637
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Hi Thomas,

On 25/10/2012, at 4:42 AM, Thomas Fossati <TFossati@velocix.com> wrote:

> =
<https://svn.tools.ietf.org/svn/wg/httpbis/draft-ietf-httpbis/latest/p5-ra=
n
> ge.html#header.if-range>:
>=20
> Last paragraph: what should be sent by the server in case the =
validator in
> the If-Range does not match, and the byte-range-set in the Range =
header
> has empty intersection with the current resource representation ?

The text in question:

> If the validator given in the If-Range header field matches the =
current validator for the selected representation of the target =
resource, then the server should send the specified sub-range of the =
representation using a 206 (Partial Content) response. If the validator =
does not match, then the server should send the entire representation =
using a 200 (OK) response.

It says that if the validator does not match, the entire representation =
should be sent; what's the issue?

Regards,


--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 23:12:42 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BBBE121F8614 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 23:12:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.311
X-Spam-Level: 
X-Spam-Status: No, score=-9.311 tagged_above=-999 required=5 tests=[AWL=1.288, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Qjd8l0YPWRpZ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 23:12:42 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id E1BEC21F87EA for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 23:12:41 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYtbK-0001v1-JC for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 07:11:02 +0000
Resent-Date: Thu, 15 Nov 2012 07:11:02 +0000
Resent-Message-Id: <E1TYtbK-0001v1-JC@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TYtbF-0001uC-Tj for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 07:10:57 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TYtbE-0001aW-Sz for ietf-http-wg@w3.org; Thu, 15 Nov 2012 07:10:57 +0000
Received: from [192.168.1.71] (unknown [118.209.81.233]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 85840509B5; Thu, 15 Nov 2012 02:10:32 -0500 (EST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <53FC21D0-DB87-41CC-98F8-8A059488CC3A@mnot.net>
Date: Thu, 15 Nov 2012 18:10:29 +1100
Cc: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <D0B04F58-823E-46EB-BC24-B47FE0619C8D@mnot.net>
References: <emba9537fd-77af-45fd-91b1-e42423af960e@bombed> <53FC21D0-DB87-41CC-98F8-8A059488CC3A@mnot.net>
To: "Adrien W. de Croy" <adrien@qbik.com>, Roy Fielding <fielding@gbiv.com>
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-3.2
X-W3C-Hub-Spam-Report: AWL=-3.206, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TYtbE-0001aW-Sz 68ae76ba417dc13bfd42df2632bf7c41
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Queries re P6
Archived-At: <http://www.w3.org/mid/D0B04F58-823E-46EB-BC24-B47FE0619C8D@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15638
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 12/11/2012, at 12:40 PM, Mark Nottingham <mnot@mnot.net> wrote:
>=20
>=20
>> I don't understand how "Not modified" can be compatible with "new =
selected response".
>=20
> I agree; I think we can change that language (which is explanatory, =
and doing a bad job of it) to: "If none of the stored responses contain =
the same strong validator, then the response MUST NOT be used to update =
any stored responses."

In -latest.

>=20
>=20
>> in 4.2.1,=20
>>=20
>> "If the new response does not include any form of validator, there
>> is only one stored response, and that stored response also lacks a
>> validator, then that stored response is selected."
>>=20
>> Firstly, there should be an "and" in there... e.g. it should read=20
>>=20
>> "If the new response does not include any form of validator, and =
there
>> is only one stored response which also lacks a validator, then that =
stored response is selected."
>>=20
>> But how can a server logically reply with 304 without a validator?=20
>>=20
>> A server can only reply with 304 if the request was conditional. For =
a request to be conditional, there must be a validator supplied with the =
request. But in this case the stored response had no validator. So where =
did the validator come from?
>>=20
>> Does this mean that it's compliant behaviour to make a conditional =
request with data that wasn't in the stored response? E.g. have a cache =
invent an If-Modified-Since based on something else (e.g. Date)? =
Presumably a cache can't invent an ETag where there was none. Also, 4.2 =
para 2 states the If-Modified-Since comes from Last-Modified and doesn't =
imply it can come from elsewhere.
>>=20
>> My initial reaction is to consider a 304 without validator to be a =
server bug.
>=20
> This text was introduced by Roy in =
<http://trac.tools.ietf.org/wg/httpbis/trac/changeset/1374/draft-ietf-http=
bis/latest/p6-cache.xml#L1096>. Roy, what was your thinking here?

Raised as <http://trac.tools.ietf.org/wg/httpbis/trac/ticket/406>.


>> in 4.3 may I clarify meaning of
>>=20
>> "If no selected response is available, the cache can forward the =
presented request to the origin server in a conditional request; see =
Section 4.2."
>>=20
>> "in a conditional request" is possibly ambiguous. To me this means =
the cache is entitled to make the request conditional by adding =
If-Modified-Since or If-None-Match etc. The request may have already =
been conditional (e.g. UA cache). So the purpose of the cache checking =
validity of something that failed selection is valid? E.g. the server =
gets the final say but may still choose to serve the same content (e.g. =
same ETag) even though it didn't match selectors?
>=20
> That was unintentional; IIRC we softened some of the language from =
2616 here, but didn't intend that reading.
>=20
> How about:
>=20
> "If no selected response is available, the cache cannot satisfy the =
presented request. Note that it can be forwarded to the origin server in =
a conditional request; see Section 4.2."
>=20
> E.g., the cache might include ETags it knows about in the INM to allow =
the server to select from one of them.

In -latest, with slight modifications.



>> in 4.2 may I suggest some wording changes.
>>=20
>> Para 2 does not indicate that it's not valid to add If-Modified-Since =
unless there was a Last-Modified header in the stored response.
>>=20
>> E.g. instead of=20
>>=20
>> "When sending such a conditional request, a cache adds an =
If-Modified-Since header field whose value is that of the Last-Modified =
header field from the selected (see Section 4.3) stored response, if =
available."
>>=20
>> maybe it should read something like
>>=20
>> "If the selected stored response contains a Last-Modified header, a =
cache SHOULD add an If-Modified-Since header field whose value is that =
of the Last-Modified header field from the selected stored response."
>>=20
>> Likewise Para 3 and If-None-Match. E.g instead of=20
>>=20
>> "Additionally, a cache can add an If-None-Match header field whose =
value is that of the ETag header field(s) from all responses stored for =
the requested URI, if present...."
>>=20
>> maybe
>>=20
>> "Additionally if any stored response contains an ETag header field, a =
cache SHOULD add an If-None-Match header whose value(s) are the ETag =
header field(s) from all stored responses for the requested URI."
>=20
> I don't object to doing this; does anyone else?


Looking at this again, I'm not sure what making them requirements really =
buys us here. I'd be OK with adding some prose that says that creating =
IMS from values other than the LM from the origin is problematic, if =
that would address your concern.

Cheers,


--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Wed Nov 14 23:31:47 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 422E121F859D for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 23:31:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.377
X-Spam-Level: 
X-Spam-Status: No, score=-7.377 tagged_above=-999 required=5 tests=[AWL=3.222, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gLaS3PgKs4XB for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2012 23:31:46 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id BB24C21F8598 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2012 23:31:46 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYtuI-0003su-Jl for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 07:30:38 +0000
Resent-Date: Thu, 15 Nov 2012 07:30:38 +0000
Resent-Message-Id: <E1TYtuI-0003su-Jl@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <julian.reschke@gmx.de>) id 1TYtuF-0003sF-1M for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 07:30:35 +0000
Received: from mailout-de.gmx.net ([213.165.64.22]) by lisa.w3.org with smtp (Exim 4.72) (envelope-from <julian.reschke@gmx.de>) id 1TYtuE-0008VH-7V for ietf-http-wg@w3.org; Thu, 15 Nov 2012 07:30:34 +0000
Received: (qmail invoked by alias); 15 Nov 2012 07:30:07 -0000
Received: from p5DD972C3.dip.t-dialin.net (EHLO [192.168.178.36]) [93.217.114.195] by mail.gmx.net (mp072) with SMTP; 15 Nov 2012 08:30:07 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1//gbVzKk3/PVN80++q4As0dyPqb8obfoTzIXBNar i+WAJojEx1K3QN
Message-ID: <50A499FD.6030402@gmx.de>
Date: Thu, 15 Nov 2012 08:30:05 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: Mark Nottingham <mnot@mnot.net>
CC: Amos Jeffries <squid3@treenet.co.nz>,  "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
References: <507A332B.3020301@treenet.co.nz> <BD13C05A-992C-4EB9-874F-577F726CE6D9@mnot.net>
In-Reply-To: <BD13C05A-992C-4EB9-874F-577F726CE6D9@mnot.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
Received-SPF: pass client-ip=213.165.64.22; envelope-from=julian.reschke@gmx.de; helo=mailout-de.gmx.net
X-W3C-Hub-Spam-Status: No, score=-3.4
X-W3C-Hub-Spam-Report: AWL=-3.393, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TYtuE-0008VH-7V 5baeafa00d7c512a7d2e1bc59ce1202a
X-Original-To: ietf-http-wg@w3.org
Subject: Re: #403: cacheability of Authentication and no-cache
Archived-At: <http://www.w3.org/mid/50A499FD.6030402@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15639
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 2012-11-15 06:50, Mark Nottingham wrote:
> ...
> While we're here -- I'd like to remove all of the caching information from p7 and replace it with a reference to p6 3.2. Make sense?
> ...

Absolutely.



From ietf-http-wg-request@listhub.w3.org  Thu Nov 15 01:32:44 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0966621F8467 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 01:32:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.266
X-Spam-Level: 
X-Spam-Status: No, score=-6.266 tagged_above=-999 required=5 tests=[AWL=4.332, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VTRscqKuiC8p for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 01:32:41 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 2C26421F8585 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 15 Nov 2012 01:32:40 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYvmQ-0000xW-Et for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 09:30:38 +0000
Resent-Date: Thu, 15 Nov 2012 09:30:38 +0000
Resent-Message-Id: <E1TYvmQ-0000xW-Et@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <roland@zinks.de>) id 1TYvmL-0000wq-EU for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 09:30:33 +0000
Received: from mo-p00-ob.rzone.de ([81.169.146.160]) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <roland@zinks.de>) id 1TYvmJ-0004RB-W9 for ietf-http-wg@w3.org; Thu, 15 Nov 2012 09:30:33 +0000
X-RZG-AUTH: :PmMIdE6sW+WWP9q/oR3Lt+I+9KAK33vRJaCwLQNJU2mlIkBC0t1G+0bSVECAiLyH+IyyhrC8CxTtTMlGQ1xJX358
X-RZG-CLASS-ID: mo00
Received: from [IPv6:2001:4dd0:ff67:0:60e7:b86b:9a57:638] ([2001:4dd0:ff67:0:60e7:b86b:9a57:638]) by smtp.strato.de (jorabe mo15) (RZmta 31.3 AUTH) with ESMTPA id U035ccoAF8dMpj for <ietf-http-wg@w3.org>; Thu, 15 Nov 2012 10:30:09 +0100 (CET)
Message-ID: <50A4B621.9090702@zinks.de>
Date: Thu, 15 Nov 2012 10:30:09 +0100
From: Roland Zink <roland@zinks.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: ietf-http-wg@w3.org
References: <em0d5ce79f-10c2-40d3-af17-372199e38ab6@bombed> <50A38CDF.8040802@cisco.com> <CABkgnnXE1iW_COaqu-e_OK=y0ZE3Ry1YvtX6Vsq3vjvY3Tghrw@mail.gmail.com> <50A3EC60.7070703@cisco.com> <CABkgnnUicPmyt3Y+c2Kiy36oKo2_XPXeyG3m2umO9VJbFm_LxA@mail.gmail.com> <50A3EE95.5090905@cisco.com> <20121114221015.GK18082@1wt.eu> <CABP7Rbe9mgY+xa=TNw7a8wuEHiw5a_S8xvz02z+kqcX93Ui2sw@mail.gmail.com>
In-Reply-To: <CABP7Rbe9mgY+xa=TNw7a8wuEHiw5a_S8xvz02z+kqcX93Ui2sw@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------060405070007000509040908"
Received-SPF: none client-ip=81.169.146.160; envelope-from=roland@zinks.de; helo=mo-p00-ob.rzone.de
X-W3C-Hub-Spam-Status: No, score=0.0
X-W3C-Hub-Spam-Report: HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001
X-W3C-Scan-Sig: lisa.w3.org 1TYvmJ-0004RB-W9 f0c3d7b5914c19b3bbb30b4f6d92dc52
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/50A4B621.9090702@zinks.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15640
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

This is a multi-part message in MIME format.
--------------060405070007000509040908
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

On 14.11.2012 23:37, James M Snell wrote:
>
> On Wed, Nov 14, 2012 at 2:10 PM, Willy Tarreau <w@1wt.eu 
> <mailto:w@1wt.eu>> wrote:
>
>     [snip]
>
>     Thus it's foolish to assume that a different protocol can be
>     talked on port
>     80 without prior upgrade.
>
>     Using DNS to advertise a different port could be a solution to
>     avoid the
>     HTTP Upgrade, because it could allow users to detect that HTTP/2.0 is
>     spoken natively on a specific port on the server. However it would
>     still
>     not take into account the fact that client-side filtering on firewalls
>     and proxies generally don't allow unknown ports to pass.
>
>
> What I'm failing to understand is why the latter is really a problem. 
> If we say that http/2 requires a new port, no matter what, the stuff 
> in the middle is going to have to be reconfigured anyway to support 
> http/2. Otherwise, we just fall back to http/1. If the http/2 specific 
> port is not open, then http/2 is not supported and that is that. It's 
> a feature. Not a bug. I guess I just don't buy in to the whole "It's 
> gotta be port 80" argument.
>
> - James
I think the argument is that with a default port for http/2 it is 
possible to reconfigure existing equipment like firewalls. With 
arbitrary ports the administrator has no possibility to allow direct 
http/2 traffic. For intermediaries which don't see the DNS traffic it 
will be difficult to detect http/2 without a known port for it.

- Roland

>     A new problem with advertising random ports in DNS records is that it
>     would be much harder to gain unfiltered access than by advertising
>     only
>     a standardized port. And if we have a standard port we don't need to
>     advertise the port in the DNS record.
>
>     Ports still cause two new troubles :
>       - how to decide what protocol version to use on port XYZ ? (I've
>     seen
>         Phillip's proposal, I still think that another natural
>     solution would
>         be a dedicated scheme)
>
>       - how can we know that the new port it controlled by the same
>     authorities
>         as ports 80/443 along the whole path ?
>
>     I'm still thinking that we should do more research on the scheme :
>
>        - keep "http://" as the default scheme which MUST only speak
>     HTTP/1.x
>          because that has always been the case. A temptative Upgrade
>     to 2.0
>          is encouraged but both the clients and the server know that this
>          upgrade is optional, may fail and the traffic may remain HTTP/1.
>
>        - have "https://" use the TLS NPN extension to announce support for
>          the protocol on both sides. I should say on "all" sides,
>     because TLS
>          is a transport protocol and as such is hop-by-hop : if
>     intercepted,
>          the interceptor's capabilities are used. At least this has
>     proved to
>          work well for SPDY and I don't see why we should refrain from
>     using
>          this for HTTP/2.
>
>        - have "http2://" as the optimal replacement scheme for the
>     long term,
>          on a dedicated well-known port. To the opponents of the new
>     scheme,
>          I would say that this has worked for http->https, and I don't see
>          any reason for this not to work again, quite the opposite. In
>     fact,
>          there would be much incentive to migrate to support this
>     scheme as
>          there would possibly be some performance benefits by doing
>     so. And
>          just like many web sites still support https and http for the few
>          https-impaired users, we would have https/http2 by default, and
>          http as the fallback for those who can only use port 80.
>
>     Obviously the switch will take time, a few years to get a fairly
>     common
>     adoption, but this way we're sure to always provide an upgradable path
>     from HTTP/1, and without breaking what has been assumed for
>     decades (eg:
>     http://x.y.z:port/ is http and not anything else, then we'd equally
>     have http2://x.y.z:port/ be http2 and not http).
>
>     So in the end, we'd get the following possibilities to connect to
>     a web
>     site from a user agent :
>
>       - if scheme is "https://", use the best HTTP version advertised
>     as NPN
>         by the server ;
>
>       - if scheme is "http2://", use raw HTTP/2 exclusively over the
>     designated
>         port and report an error if it fails (as we do right now with
>     https).
>         THIS is what will drive quick opening of the new port on the
>     client side.
>
>       - if scheme is "http://", attempt an 1.1->2.0 Upgrade over the
>     designated
>         port, with the possibility that it will remain 1.x only.
>
>     Regards,
>     Willy
>
>
>


--------------060405070007000509040908
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 14.11.2012 23:37, James M Snell
      wrote:<br>
    </div>
    <blockquote
cite="mid:CABP7Rbe9mgY+xa=TNw7a8wuEHiw5a_S8xvz02z+kqcX93Ui2sw@mail.gmail.com"
      type="cite">
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Nov 14, 2012 at 2:10 PM, Willy
          Tarreau <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:w@1wt.eu" target="_blank">w@1wt.eu</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div class="HOEnZb">
              <div class="h5">[snip]</div>
            </div>
            <br>
            Thus it's foolish to assume that a different protocol can be
            talked on port<br>
            80 without prior upgrade.<br>
            <br>
            Using DNS to advertise a different port could be a solution
            to avoid the<br>
            HTTP Upgrade, because it could allow users to detect that
            HTTP/2.0 is<br>
            spoken natively on a specific port on the server. However it
            would still<br>
            not take into account the fact that client-side filtering on
            firewalls<br>
            and proxies generally don't allow unknown ports to pass.<br>
            <br>
          </blockquote>
          <div><br>
          </div>
          <div>What I'm failing to understand is why the latter is
            really a problem. If we say that http/2 requires a new port,
            no matter what, the stuff in the middle is going to have to
            be reconfigured anyway to support http/2. Otherwise, we just
            fall back to http/1. If the http/2 specific port is not
            open, then http/2 is not supported and that is that. It's a
            feature. Not a bug. I guess I just don't buy in to the whole
            "It's gotta be port 80" argument.</div>
          <div><br>
          </div>
          <div>- James</div>
        </div>
      </div>
    </blockquote>
    I think the argument is that with a default port for http/2 it is
    possible to reconfigure existing equipment like firewalls. With
    arbitrary ports the administrator has no possibility to allow direct
    http/2 traffic. For intermediaries which don't see the DNS traffic
    it will be difficult to detect http/2 without a known port for it.<br>
    <br>
    - Roland<br>
    <br>
    <blockquote
cite="mid:CABP7Rbe9mgY+xa=TNw7a8wuEHiw5a_S8xvz02z+kqcX93Ui2sw@mail.gmail.com"
      type="cite">
      <div class="gmail_extra">
        <div class="gmail_quote">
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            A new problem with advertising random ports in DNS records
            is that it<br>
            would be much harder to gain unfiltered access than by
            advertising only<br>
            a standardized port. And if we have a standard port we don't
            need to<br>
            advertise the port in the DNS record.<br>
            <br>
            Ports still cause two new troubles :<br>
            Â  - how to decide what protocol version to use on port XYZ ?
            (I've seen<br>
            Â  Â  Phillip's proposal, I still think that another natural
            solution would<br>
            Â  Â  be a dedicated scheme)<br>
            <br>
            Â  - how can we know that the new port it controlled by the
            same authorities<br>
            Â  Â  as ports 80/443 along the whole path ?<br>
            <br>
            I'm still thinking that we should do more research on the
            scheme :<br>
            <br>
            Â  Â - keep <a class="moz-txt-link-rfc2396E" href="http://">"http://"</a> as the default scheme which MUST only
            speak HTTP/1.x<br>
            Â  Â  Â because that has always been the case. A temptative
            Upgrade to 2.0<br>
            Â  Â  Â is encouraged but both the clients and the server know
            that this<br>
            Â  Â  Â upgrade is optional, may fail and the traffic may
            remain HTTP/1.<br>
            <br>
            Â  Â - have <a class="moz-txt-link-rfc2396E" href="https://">"https://"</a> use the TLS NPN extension to announce
            support for<br>
            Â  Â  Â the protocol on both sides. I should say on "all"
            sides, because TLS<br>
            Â  Â  Â is a transport protocol and as such is hop-by-hop : if
            intercepted,<br>
            Â  Â  Â the interceptor's capabilities are used. At least this
            has proved to<br>
            Â  Â  Â work well for SPDY and I don't see why we should
            refrain from using<br>
            Â  Â  Â this for HTTP/2.<br>
            <br>
            Â  Â - have "http2://" as the optimal replacement scheme for
            the long term,<br>
            Â  Â  Â on a dedicated well-known port. To the opponents of the
            new scheme,<br>
            Â  Â  Â I would say that this has worked for http-&gt;https,
            and I don't see<br>
            Â  Â  Â any reason for this not to work again, quite the
            opposite. In fact,<br>
            Â  Â  Â there would be much incentive to migrate to support
            this scheme as<br>
            Â  Â  Â there would possibly be some performance benefits by
            doing so. And<br>
            Â  Â  Â just like many web sites still support https and http
            for the few<br>
            Â  Â  Â https-impaired users, we would have https/http2 by
            default, and<br>
            Â  Â  Â http as the fallback for those who can only use port
            80.<br>
            <br>
            Obviously the switch will take time, a few years to get a
            fairly common<br>
            adoption, but this way we're sure to always provide an
            upgradable path<br>
            from HTTP/1, and without breaking what has been assumed for
            decades (eg:<br>
            http://x.y.z:port/ is http and not anything else, then we'd
            equally<br>
            have http2://x.y.z:port/ be http2 and not http).<br>
            <br>
            So in the end, we'd get the following possibilities to
            connect to a web<br>
            site from a user agent :<br>
            <br>
            Â  - if scheme is <a class="moz-txt-link-rfc2396E" href="https://">"https://"</a>, use the best HTTP version
            advertised as NPN<br>
            Â  Â  by the server ;<br>
            <br>
            Â  - if scheme is "http2://", use raw HTTP/2 exclusively over
            the designated<br>
            Â  Â  port and report an error if it fails (as we do right now
            with https).<br>
            Â  Â  THIS is what will drive quick opening of the new port on
            the client side.<br>
            <br>
            Â  - if scheme is <a class="moz-txt-link-rfc2396E" href="http://">"http://"</a>, attempt an 1.1-&gt;2.0 Upgrade
            over the designated<br>
            Â  Â  port, with the possibility that it will remain 1.x only.<br>
            <br>
            Regards,<br>
            Willy<br>
            <br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>

--------------060405070007000509040908--


From ietf-http-wg-request@listhub.w3.org  Thu Nov 15 02:00:44 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D454E21F8461 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 02:00:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.873
X-Spam-Level: 
X-Spam-Status: No, score=-9.873 tagged_above=-999 required=5 tests=[AWL=-0.076, BAYES_00=-2.599, HELO_EQ_FR=0.35, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_HI=-8, SARE_SUB_ENC_UTF8=0.152]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EtbK0DfhHTkk for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 02:00:44 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id DB00D21F845B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 15 Nov 2012 02:00:43 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYwEA-0002tA-Cm for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 09:59:18 +0000
Resent-Date: Thu, 15 Nov 2012 09:59:18 +0000
Resent-Message-Id: <E1TYwEA-0002tA-Cm@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <f.kayser@free.fr>) id 1TYwE6-0002sV-8b for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 09:59:14 +0000
Received: from smtp5-g21.free.fr ([212.27.42.5]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <f.kayser@free.fr>) id 1TYwE4-0005Zy-PY for ietf-http-wg@w3.org; Thu, 15 Nov 2012 09:59:14 +0000
Received: from [192.168.0.1] (unknown [81.56.127.176]) by smtp5-g21.free.fr (Postfix) with ESMTP id 0BC2BD4804E; Thu, 15 Nov 2012 10:58:45 +0100 (CET)
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: multipart/mixed; boundary=Apple-Mail-4-1004169660
From: =?iso-8859-1?Q?Fr=E9d=E9ric_Kayser?= <f.kayser@free.fr>
In-Reply-To: <50A476D9.8000204@it.aoyama.ac.jp>
Date: Thu, 15 Nov 2012 10:58:44 +0100
Cc: =?iso-8859-1?Q?=22Martin_J=2E_D=FCrst=22?= <duerst@it.aoyama.ac.jp>
Message-Id: <B82B8D1A-4351-4DF4-8549-7694C6865068@free.fr>
References: <CABP7Rbfkvc_gsSESd2mHiLaYO5Ng2g0JZ4VYB2kYQcY2OX+aLg@mail.gmail.com> <D65DBD3C-730B-49AF-846E-3413BD27D37D@free.fr> <50A476D9.8000204@it.aoyama.ac.jp>
To: ietf-http-wg@w3.org
X-Mailer: Apple Mail (2.1084)
Received-SPF: none client-ip=212.27.42.5; envelope-from=f.kayser@free.fr; helo=smtp5-g21.free.fr
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-3.451, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001
X-W3C-Scan-Sig: lisa.w3.org 1TYwE4-0005Zy-PY 41f0fd9369883767115f3373e5f1e159
X-Original-To: ietf-http-wg@w3.org
Subject: UTF-8 NFC vs NFD compression, French sample (was: Updated Binary Optimized Header Encoding Draft)
Archived-At: <http://www.w3.org/mid/B82B8D1A-4351-4DF4-8549-7694C6865068@free.fr>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15641
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--Apple-Mail-4-1004169660
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=iso-8859-1

Hello Martin,
I have a short French text sample here, it's a small extract from =AB Le =
tour du monde en quatre-vingts jours =BB ("Around the World in Eighty =
Days") by Jules Verne.

The bzip2 compressed version of the NFD encoded text is smaller by 4 =
bytes.
Using gzip it looks like a draw but in fact the Deflate stream itself is =
4 bits shorter.
In the other hand when using xz (lzma2) NFC gives a better result.

2553 tdm80j-french-utf8-nfc.txt
2625 tdm80j-french-utf8-nfd.txt

1312 tdm80j-french-utf8-nfc.txt.bz2
1308 tdm80j-french-utf8-nfd.txt.bz2

1352 tdm80j-french-utf8-nfc.txt.gz
1352 tdm80j-french-utf8-nfd.txt.gz

defdb -s tdm80j-french-utf8-nfc.txt.gz
10671 bits

defdb -s tdm80j-french-utf8-nfd.txt.gz
10667 bits

Compressed files are enclosed in the zip archive attached to this email.

--Apple-Mail-4-1004169660
Content-Disposition: attachment;
	filename=French_NFCvsNFD.zip
Content-Type: application/zip;
	name="French_NFCvsNFD.zip"
Content-Transfer-Encoding: base64

UEsDBBQAAAAAAGRTb0HlsJ5/IAUAACAFAAAeAAAAdGRtODBqLWZyZW5jaC11dGY4LW5mYy50eHQu
YnoyQlpoOTFBWSZTWWml/VwAAPNX/AAQYIU/NkwAP/f/4EAACABQ8QQgGgBQBd7OBuWru0HZMt0a
XKDTRACGgmplPJPSaaNB6hoADVPaT0QmogA0AAAAADU8KNE0JSZqNGQAGIA00BgABoAAyaAAANAJ
TIQpT01PJqMhtTQA0DQ0NBYKF2+UcBaPXPwUi7Ow237rqpqlXtOToxYyVmzOXMS7zRSwq6ErwqWp
795ixRZxDmEl0kOqOO1pVAqlxQhnrGQKTNF5dR2OMVIgFkHNOHqYNmCScWGsSNM4lrtRY72dmXNQ
minAH3yJwOcZmTy/19s7N103rXwS0DdEXKPOb9kV1VcdcOcrJLO9TP7YGqt4w4SkQUgoCeJnTm7t
Ju6tQ5mLx42cTV6Duc9NgnJDCmbZ/JVvOiWQUKAZuTe+0t8ey9pOWQJGrJoptVQRNsngQpHMj7Vv
K6lG7QhHtLHkCNEjWONTjwzPLkHJQJQ1DUBjgj3MO1DUZvbivnWzc2410hedZcOGWLgOfCd/MvoR
EKJRqziJsj2iqg/dsTPupa9z28js4bDC+qXOjrZUBYZUHbIJvdbGcHsj8uPoI5p0HhnUdRvrab7O
lbEtzxxPA5OtjEM60Xy1ZaXyCfcXYD1yuZ6WFRGiBush2lYOoANKNSyGggWxoWlEOamrqWoGWzgW
jybm4LFdTzPvz39JyOTIs0jxTqIFdu2GtNAN7wNTEVM1IRFw9LV0XFs21VtabvjZGMYTQ4OpZWph
CtGk3CVBYZoaUc7ddGfCW+kkcpQTCqScDbBqOjdCrj0TpzpOU31uwms1vvfm4ylDt4oEAlG5STlJ
bpC7l5Z5unXSrPBKILr9MlW7ZsJsLCsjjMNRA4i5wI4kbcaBg/ksXiIo6A4GLVMVWGCtmilAa6TF
gLHai6sGeK71hWcXE0wADLlnLB+Gq2twBI9FTaWwjKMPGsmyAsohmriGkg1eNYBcn6bPF8DkWQbw
ri4JAoJlERYUtrJ8cFFcmOxB3TsSeBUiSVREoDl4jmd7rqmCaYujE8+5hmsyGVmeVkaHBWDZgoas
1lc9CfyeTbeqHHx+8pogcVTXaYwpZt5aIctsyMgxNIMklNFBIxlVxlnBVdyTz41RiNCzqaVisZNv
RInklzLJGiVKGiGgSQhKUSglJTKnDvjmkx9RsMSG1OfZR0QccEKenlQc4GCqRhj0a7Opjz6KOljk
6iLQQB6lGYmmrOtuOJUJE2PJCBzVUkRAnUWueTKDShq72SYFFqk4bNmGRa6lHRhlXPbAwK2MkZZT
KKPEQJP4DtHsjxkZ49Gji4CF1QOxaAS+u3ykeGdhZBC2tppoi+csFpM2u87atXJ7mRwNLRRsE7GO
TIq2eM0PiPg+DotoDkk1ddEXNhyRcOPBsPlNRQ4pUkLkQ8gFuyPisqd++9Ty0GuDZohEFgoEA+OW
ATILYMIUgxbQkyV91GsjzmY0lcO3cPuTJFCSJJFkSQcnDCIMWmwY1DAUCSE39kHZPZJFURB47Wuj
x0JrWppeequdWGK62N1WAvgoLrvJ0TG9M2rXTzcN+DIeOs4ctJHeBwkGHEhHAs7RiQFh8yzdOuep
8ChI07+qyGxRTspB8G8aOMIe2Dy2aPx/eo6x1KMUml+9xIVSPUzKrcngt66pclQnhrS0X0rjY1/f
8gj/KIIjxd20jzI8CKMLmyjfdvQwf3CQ6ec3eyUSPY9ot/sXNVsYyKut3QCg2mNxfeH/F3JFOFCQ
aaX9XFBLAwQUAAAAAACMU29B3dESb0gFAABIBQAAHQAAAHRkbTgwai1mcmVuY2gtdXRmOC1uZmMu
dHh0Lmd6H4sIAAAAAAAAA1VWS44bNxDdzymYlTaC7mA7CeDABgw4Fyh1s1sc8NPmpzOzyx1ygUE2
trzIKpts08i98l6xpTiLGahbZLHq/ag31ovxzZlFsrhSxFXj4srPNpy9nL09mR+qGexi4yixmuxs
NKM1i2/F5O1q/d8v35l3qJKGFFJ1qz2a0WU34zuWNd6ac5ZixkOLJmzXQaIbWEXi7HGQsah/kTZN
3IHSl9Scx679e9TzErfP7K2ImVrgutJYuaAPdCXVpVi4dxBUcTaXI59CK4OM98fZ5TT5++OS3Jr5
ZHJqsy0njrHKYlG6oFSKNbUceS66LYvLwhOl8TUKFDNj42L14EV86JVtrNmyt0/Neixf7tjiG13q
ak1Zvy/m3OIsPv2CjVyv71Z3kezwpqRce/mQopS6fcls4CxxTDFuV55WtZNqw8Lmgs2rJXrtCfUO
NmY3XHZi/cFhz9JcIa8m5WiD3cHjGf4gGYurHWrDBC4CuRghgA+NzYwHF7C+4JTtWiGH1lurNmO+
SMjQSXGxD7q9mMWifS5ZG0WB5Y+Ylm2m7S8TMZXET60vj07pLDZDabXcnqubOTJGQeeprSRb1/PL
C9rDbDoFWmmmshHFxMbJRT1ySnn7WtH/tLe8axJrh+2qc4P15CyZG8CLueAQSIyK3a4e5/KF8uOO
XcX//OY8povFTUeT7Sx57F0tgna0PNSDokBquNjVosrp4WH71QQ3us5ZQLHeBrED9GxTCBv6Kf+x
8rrliwTMnnWwDzwBI0CDOA5/5fBslpwGUJYV9Oye0GXKpkXK0mWl4Czn1NAL5pAZviVmfUhLngjn
JA21ddAD5qMnIRwjqx1QC9TE6oJqGLisbsRHUAs3V53uHZWbnmWGf1B2uz7aFqlYpoYsWM/NOkTW
CZx+xcn+N/LhVYG55wsHliVvX6B4QMl5oEksw6Zh+7OmZ9CHjRmRQ/J/lqU+HzFMhdYnOACvQRk6
pDQfLXRqEGGFqM/JTwrLGwlneQb3/SC8+diyVIt53npjSzVpWeDCplxMiiaojbL9QZfTsppC0IKi
mYahLV0LcDVw8AdbQIka/1vuTuanVijrF7gcWZgxBnMNz68TezoacCArjTvkRtSWhk/J9WMRyQUU
JdoR6QSTYL7dGtvLybxnsgZoC04Vwj5aOn/ndnKehXEYe7G31ONzBt/a99s4ApfG2isOVeYLmK/c
OfGfosnu+4gn8xGfozA9vN4q2Gk1P6UZptxyMkA125ppZddd7EZFblJrF1f2xIPyKCAkilUolnwv
BaiR20g4hT4ncNu34PjQmdEtQOt5H5M62a7iqVWKBSzAf2AStYBmCHtkDdb0dG+MXNS0t9dBnlxo
oSdeWO42iZSFVzgXUd33EDiZ72EB7A3b19D7KQhgKHKHkOEEKJAdGCIhOBHKpcekDIPaq6iANfeU
WfgCgMIKZJzEKZ5QN72pSkmYBC7BlFBE4azkaLAVJM9qTasOBES83+/g7ALeZ+qyg97wDUoC4oAK
uUelXi+aosTbBXzibaR3yllGaaMFOyfzCukBjM9W2oBrEnjCvTTmHOB0Sph/7wHUj2meFaAdmfsW
/ZGhmNmqo7IZXaIhcn+iDh4TYwd5m5rXmzGgk9vNx8tCvCrrfkvguoNZS6cCS+AUEI/CZ7/9Hvov
IaZJTfcmuTAeehqRbAIDT2nQZmQjxfnNLxxtOVLK6y6P4/5raCUbefuc4nE3szK9z39Tg/7IgQEX
wZpzqqzlbw5UbPYFyPXgekJZpCboqEoV7nJIUWMM6sfNu6f+6eFfIMMl6vkJAABQSwMEFAAAAAAA
ZFNvQbMP2AccBQAAHAUAAB4AAAB0ZG04MGotZnJlbmNoLXV0ZjgtbmZkLnR4dC5iejJCWmg5MUFZ
JlNZVThTUwAA89f0ABBghT82TAA/9//gcAAIAECAEgRQBdgp5kbGqJi0mZLbDU9ExGhCNJpG1Aho
0NGnqYMAA0aaAMmgNBkBoDU8JNFGRTKB6T1A00b1QBpkMAA0aaAMmgNBkBoCU9RBEyTBU8majUDQ
DaQPSsEkH+fQLAFEe5/AsHx4HWv0qRyGe8eqkAZ8EsWwhR4JaavTepVkTcV2s/w1/XWs7WUWMtZq
q96DqMeDdQVpMSgwpqYVUTnpbNZ+EHGkHLSuihSpw8yzhgknOBvMjTOZimjM9h16qqNqI2VIA+3A
nQca4my3x1H7UyJfGUoBZCGKGYbJGHtF8SrYSxKnFoa3+QIppGdChIJRUBPSa2+soJMOiLHEzUee
eFddM6Do7SBNkaCmsa/VX10NhkFdP98c4qchxRtgFOYTXUlY3dSzMulrVynsl22W9SWT+Guypqpr
jtasdarv37sLAsSxLAYtzk+ch7JLF9rr/Vb6XzHPV+Jm2vLy3qB6eV+P4LXIwF0ai9sq5ErRldEB
9Xe/nfPHB+v7HXZh2G2eacHeuryFG8j67infgJu6WxUZY/oTesh4ViO5ytwOVzxdV3nHUkj2SydR
PwwSIyfevGaieE/At82iFj5Wzxt50TlNUOudCgtnDjS8QsTrJEoQOso6MRKNWq1Ro4CHmIRzzw3g
wXzPJ5+ivQ6HQyLVo9LdxApstHVLqgCrhw93eyRZA6CQt7bSL4PiLYiVz2Gc5YuoT0RqXywxNqr3
iRkdKHE1r5p1Vnt362pVCTQXCIcnOkCykNDDlV1XRSrqusUFb2jG2OJ0mbOxWMiCy3Y0tK1686z3
6dLa7dZ2uSxBzn03ROF6KEucjFjtcZhBthe8I2Roc9tS0QRxVX+letp2rwzozbfngkdtS1oLpt5+
Nap6JyEp73wa5JeB7DZXhA5718qKaA464zgEDpKcKFqMdsYi8VJnQAVN+kaY6TnOeQQR6oO1uwta
H+eLLuBlHJ6JUi1BzUcsE3br2YcaO5Wg9j42rQBzQXIFEeeY1fLxdD7uVmU8o+ip4sorURSB69hv
xtu2pkGWR8cVtvIZtmgy5rXbtxvsbmGdGKGTaKy/iRwRu8jX1WQmB1N2Rss8KDKmG3tohxvJBiaQ
ZJKaKCRjEnk0O7UpWX7LkFY0DemMunkHIQcWgyVkJNoPDLOGQyMIioi0kstIVNdMcNT2Ox4JXR6f
ST4wfDeGPt85Ho5dEI1t4Xj21bG/gjxk71miSHB+RoqkzPNWz6Hk5I0d3zhD4zMaphPQu86MoaMS
3vrUpgYusVJribpHdjxxJa7yoMGdlNE0pmmVDJqT+43Q7EcWFp5uXagYS1QpQuEReD9GZPEdGoIB
pXLQJ32jac4ghpSLyscpSMnathIuEuRgvBjhHke57kW2wNHmmxzFijgaIYcdHA9DZkV2raFEcAFV
hHvelO/xq59Ow10OGiERoZEHnvQxUxLaiMGEaCR2Cqck/VNMk5zUaNr3JmRSf7ZpWGZVSJFTScUI
gxbbEQcUILfug7E9iSLsiDv2W+T05E3vc2vO7aCAo7wM3z1HW7yFycCow7Dwyhs57cPDq2qWhT/Q
ONBIeSRYatPNUJx/LPf159D8DQkbjx77DoakE90I+C/KWLv+jsV6Ubb15HvjqaKcbwfZ6wkJEe1t
J+3ILn3VR9TQKpaWhX1nzoJ9yIA9/eTtwxEc+EkcQCFNdyex9hdyRThQkFU4U1NQSwMEFAAAAAAA
ZFNvQRbA+btIBQAASAUAAB0AAAB0ZG04MGotZnJlbmNoLXV0ZjgtbmZkLnR4dC5neh+LCAAAAAAA
AANVVkuu3DYQ3PsUzGo2g7mD7SSAAxsw4FygR2ppaPAj86P47WxfIRfILvcIkN07VKqamrGzePaI
IvtTVV3Uaw3iQvdukyK+VvHN+bTzt8ZrkGvQi/uluUk3TbOk5orX5GZ1W+jVFX3+quGfv35ybxEm
Tznm5nc9u9kXv/IlA7ug7lqkuvnUk4tYniT5iYEkrQG5nCLFTfqy2BmEv+XuA84dGxAySJqe/2aB
VdzSo+2sndErqkFt0nxOlacnYSCvpZ75GHudZH48rr7kJTwet+z3widXcl+1XtjMLpsidkWsnFru
JTEzKq6bL8KU0rmMANWtOLipZd4kxBFZUyvK4j51Ddi+PSDGG9vqW8vF3ld37WmVkP/AQe63td3f
pHis1FzaCB9zktr0+UthBVdJc04JrTJfs1qaxo3lRS27EsL+GRFPmoqfbgfD4eR5aOu+kmGXS9Ko
B4BME05SsLvp1Dqa8AngIc/Fve+sZz75iP0VaRCmQRl9lNe0oMdE2FBL9Wk0K89f3KbogXv2Tn1g
/0e0zEpzx+uE3iR96uNA8sZq1QLZtXp/bn5l32wH1ee+k3Q7wLc3lIgGrRNU011jLQaMpsUnS7oA
8edvDU0sR9mHQLF5QlTrHvRnr6RwwnZ3QxqqjQLG/4HJuWZc+fOQ9b9/+oAmU/XLGXOxSplHaZug
JksBJSEuIZtuuivjXF68eInuo5/9IDAi3qiGMIIGK1cMQtRVv3P0qpebRKBQrMX3TINeIErkxF89
Pbmt5AkElsFA8Z9Ray6uJwrVF+PjKtfcURC6kZUDTfyOdpW0EdtFOsJbwyf0yVmFlJzsOiEaiErN
R9M1Edr9zBgYouTb6PIt9ZyfZMVUMfDz14+KMihkmopsOMIA1kuxRry9YoP/6/z0smLq1xv7lg0F
f8EkAFe2BaViH05NGajlJxKKswWeREH8Llt7OqOnhiFYMBpYBoOok4r9qJCvg8lVMrDmsBg+ryVe
5QlqOHJh6UMv0hRdvQlOa3N52zCh3WhZDFdQDe2jhqI2z+ZRnBjDNU9T347RCBl4hJNW0GO28COR
F/dbhz+cSF9F85ADWqHxceVVZmVnB0Jk51xPpRO+reNX9iM1rLuCr2zDmgAt7KMcQ4MgF/eO/hsh
N8yxkIBZaQwH04sPjMx0LEjvxmgLBfxb9W/SDIA6w+/Ia0qoVELj4YX/GK7sYXR6cR/wOwn9JdgN
hKNqJivd0Qq3iwO8RVvhoPsx434eCC42+dXXwxehRdNT5U3BQSyPWMQc9g4bNBJKBs/jDAqIB0l2
CKA93ZulanBQggmY4gElmE0Qy4AANsa7tU3qxlXQ6c+IrI/1KJ997HF4Y9weA5QolGDQbjLmYfjE
xf3M2eBx3HDf4qiswrAh1DugNDIAA4tBQxk+CxOvw1Rlmmz4qgnbPNK4xsgAXgwJNUAiDV2onqNr
2sloyHkb/UIc2TU5m7SB9tUmV208gRe/Db4jdVf20dwQI1SIVwgLyCNilGGsdieZ6RJ/H/GLd5jd
Q1eZpc8Kti7uJQwGeF9V+oTbFchitjm0a4QRUNj8ewfAfs3raijd4XmcsW+UgVyzflmNbTGTeTxR
GB8zjYnenHsYN2pEMfcbk/eLBFPb42LBLYlBroMRbAF2UAFCAxxQN76l6DYtPwrlznQafkXmCQ6G
zRy5wEKp2B+/kKzsRIHvh1jOx+fUTlIKPolyOh+DbpzfUbgLw76RMJqbYNM1N0YLj9k0iI4duASi
HyamMFfQ0owyjAD0YE7HmcClfb8iLi/+AzYLA4FBCgAAUEsBAhQAFAAAAAAAZFNvQeWwnn8gBQAA
IAUAAB4AAAAAAAAAAAAgAAAAAAAAAHRkbTgwai1mcmVuY2gtdXRmOC1uZmMudHh0LmJ6MlBLAQIU
ABQAAAAAAIxTb0Hd0RJvSAUAAEgFAAAdAAAAAAAAAAAAIAAAAFwFAAB0ZG04MGotZnJlbmNoLXV0
ZjgtbmZjLnR4dC5nelBLAQIUABQAAAAAAGRTb0GzD9gHHAUAABwFAAAeAAAAAAAAAAAAIAAAAN8K
AAB0ZG04MGotZnJlbmNoLXV0ZjgtbmZkLnR4dC5iejJQSwECFAAUAAAAAABkU29BFsD5u0gFAABI
BQAAHQAAAAAAAAAAACAAAAA3EAAAdGRtODBqLWZyZW5jaC11dGY4LW5mZC50eHQuZ3pQSwUGAAAA
AAQABAAuAQAAuhUAAAAA

--Apple-Mail-4-1004169660
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=iso-8859-1


Regards
--=20
Fr=E9d=E9ric Kayser

Le 15 nov. 2012 =E0 06:00, Martin J. D=FCrst a =E9crit :

> Hello Fr=E9d=E9ric,
>=20
> On 2012/11/15 9:17, Fr=E9d=E9ric Kayser wrote:
>=20
>> NFC is used most of the time but NFD could lead to smaller compressed =
results
>=20
> Do you have any data to back this up, or is this just a guess?
>=20
> NFC (Composed) is by definition always at least as short as NFD =
(Decomposed). It is probably not impossible to construct data for which =
NFD compresses better than NFC (*), but I'm having a very hard time =
imagining that NFD would compress better than NFC for a wide range of =
data.

...

> P.S. (*): One line worth trying may be a language where there is a =
strong correlation between a vowel and the previous consonant, and also =
a strong correlation between the accent (e.g. tone mark) on the vowel =
and following consonants.
>=20
> Because NFD treats the vowel and the accent as as separate characters, =
both of these correlations can be picked up independently. On the other =
hand, in the case of NFC, the vowel and the accent are just one =
precomposed character, which may make it more difficult to pick up the =
correlations quickly.
>=20
> But this is highly speculative, and depends quite a bit on the length =
of the input and the size of the tables used,...

--Apple-Mail-4-1004169660--


From ietf-http-wg-request@listhub.w3.org  Thu Nov 15 02:22:33 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EBD8321F8613 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 02:22:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.999
X-Spam-Level: 
X-Spam-Status: No, score=-9.999 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_111=0.6, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9itnpOIA2gEZ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 02:22:33 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 7227C21F84C8 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 15 Nov 2012 02:22:33 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYwZG-0007Su-DA for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 10:21:06 +0000
Resent-Date: Thu, 15 Nov 2012 10:21:06 +0000
Resent-Message-Id: <E1TYwZG-0007Su-DA@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <ylafon@w3.org>) id 1TYwZC-0007QV-7P for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 10:21:02 +0000
Received: from jay.w3.org ([128.30.52.169]) by lisa.w3.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <ylafon@w3.org>) id 1TYwZB-0006zQ-FX for ietf-http-wg@w3.org; Thu, 15 Nov 2012 10:21:02 +0000
Received: from ylafon by jay.w3.org with local (Exim 4.69) (envelope-from <ylafon@w3.org>) id 1TYwZA-0005H0-QN; Thu, 15 Nov 2012 05:21:00 -0500
Date: Thu, 15 Nov 2012 05:21:00 -0500 (EST)
From: Yves Lafon <ylafon@w3.org>
To: Thomas Fossati <TFossati@velocix.com>
cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
In-Reply-To: <DA86AAEF6E448540808AFA696EA47E5A4006A858@EXB01-MLT.corp.velocix.com>
Message-ID: <alpine.DEB.1.10.1211150520170.17744@wnl.j3.bet>
References: <DA86AAEF6E448540808AFA696EA47E5A4006A858@EXB01-MLT.corp.velocix.com>
User-Agent: Alpine 1.10 (DEB 962 2008-03-14)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE
X-W3C-Hub-Spam-Status: No, score=-4.5
X-W3C-Hub-Spam-Report: ALL_TRUSTED=-1, AWL=-3.354, RP_MATCHES_RCVD=-0.115
X-W3C-Scan-Sig: lisa.w3.org 1TYwZB-0006zQ-FX 6a70fb099aafa0d8d67feb2a09abf843
X-Original-To: ietf-http-wg@w3.org
Subject: Re: draft-ietf-httpbis-p5-range-latest, "5.3 If-Range"
Archived-At: <http://www.w3.org/mid/alpine.DEB.1.10.1211150520170.17744@wnl.j3.bet>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15642
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Wed, 24 Oct 2012, Thomas Fossati wrote:

> <https://svn.tools.ietf.org/svn/wg/httpbis/draft-ietf-httpbis/latest/p5-r=
an
> ge.html#header.if-range>:
>
> Last paragraph: what should be sent by the server in case the validator i=
n
> the If-Range does not match, and the byte-range-set in the Range header
> has empty intersection with the current resource representation ?

The current text says:
<<
If the validator does not match, then the server should send the entire=20
representation using a 200 (OK) response.If the validator does not match,=
=20
then the server should send the entire representation using a 200 (OK)=20
response.
>>
So the Range header is ignored if If-Range is not matching.

--=20
Baroula que barouleras, au ti=E9u toujou t'entourneras.

         ~~Yves



From ietf-http-wg-request@listhub.w3.org  Thu Nov 15 02:30:24 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A623021F84DF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 02:30:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.128
X-Spam-Level: 
X-Spam-Status: No, score=-9.128 tagged_above=-999 required=5 tests=[AWL=1.019, BAYES_00=-2.599, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_HI=-8, SARE_SUB_ENC_UTF8=0.152]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dw52T41buzjh for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 02:30:23 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id CFCCD21F8457 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 15 Nov 2012 02:30:21 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYwhL-0000lU-Cg for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 10:29:27 +0000
Resent-Date: Thu, 15 Nov 2012 10:29:27 +0000
Resent-Message-Id: <E1TYwhL-0000lU-Cg@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TYwhH-0000kp-5C for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 10:29:23 +0000
Received: from 1wt.eu ([62.212.114.60]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TYwhG-0007K5-2I for ietf-http-wg@w3.org; Thu, 15 Nov 2012 10:29:23 +0000
Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id qAFASqW0029719; Thu, 15 Nov 2012 11:28:52 +0100
Date: Thu, 15 Nov 2012 11:28:52 +0100
From: Willy Tarreau <w@1wt.eu>
To: =?iso-8859-1?Q?Fr=E9d=E9ric?= Kayser <f.kayser@free.fr>
Cc: ietf-http-wg@w3.org, Martin =?iso-8859-1?Q?J=2E_D=FCrst?= <duerst@it.aoyama.ac.jp>
Message-ID: <20121115102852.GE29199@1wt.eu>
References: <CABP7Rbfkvc_gsSESd2mHiLaYO5Ng2g0JZ4VYB2kYQcY2OX+aLg@mail.gmail.com> <D65DBD3C-730B-49AF-846E-3413BD27D37D@free.fr> <50A476D9.8000204@it.aoyama.ac.jp> <B82B8D1A-4351-4DF4-8549-7694C6865068@free.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <B82B8D1A-4351-4DF4-8549-7694C6865068@free.fr>
User-Agent: Mutt/1.4.2.3i
Received-SPF: pass client-ip=62.212.114.60; envelope-from=w@1wt.eu; helo=1wt.eu
X-W3C-Hub-Spam-Status: No, score=-3.1
X-W3C-Hub-Spam-Report: AWL=-3.002, RP_MATCHES_RCVD=-0.115, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TYwhG-0007K5-2I e85ab29614385279a25a53d8ee34ebf6
X-Original-To: ietf-http-wg@w3.org
Subject: Re: UTF-8 NFC vs NFD compression, French sample (was: Updated Binary Optimized Header Encoding Draft)
Archived-At: <http://www.w3.org/mid/20121115102852.GE29199@1wt.eu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15643
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Hi Frederic,

On Thu, Nov 15, 2012 at 10:58:44AM +0100, Frédéric Kayser wrote:
> Hello Martin,
> I have a short French text sample here, it's a small extract from « Le tour du monde en quatre-vingts jours » ("Around the World in Eighty Days") by Jules Verne.
> 
> The bzip2 compressed version of the NFD encoded text is smaller by 4 bytes.
> Using gzip it looks like a draw but in fact the Deflate stream itself is 4 bits shorter.
> In the other hand when using xz (lzma2) NFC gives a better result.
> 
> 2553 tdm80j-french-utf8-nfc.txt
> 2625 tdm80j-french-utf8-nfd.txt
> 
> 1312 tdm80j-french-utf8-nfc.txt.bz2
> 1308 tdm80j-french-utf8-nfd.txt.bz2
> 
> 1352 tdm80j-french-utf8-nfc.txt.gz
> 1352 tdm80j-french-utf8-nfd.txt.gz
> 
> defdb -s tdm80j-french-utf8-nfc.txt.gz
> 10671 bits
> 
> defdb -s tdm80j-french-utf8-nfd.txt.gz
> 10667 bits
> 
> Compressed files are enclosed in the zip archive attached to this email.

Do not forget that the most important for HTTP is not the compression
ratio but the compression speed. If you need a whole datacenter to
compress 1000 streams, nobody will use it. If the compression induces
delays, it will not be used either. If you check around, you'll see that
HTTP compression engines right now compress at gzip-1 to achieve the best
compression speed allowed on HTTP. And I agree with your comment in a
previous mail that gzip is totally outdated. I'd like to have much faster
compression algos such as LZ4, fastlz, etc... which are 10-100 times faster
than gzip for around the same compression ratios as gzip-1.

Cheers,
Willy



From ietf-http-wg-request@listhub.w3.org  Thu Nov 15 02:31:31 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8F23221F869B for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 02:31:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.999
X-Spam-Level: 
X-Spam-Status: No, score=-9.999 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_111=0.6, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Pb85GvsUuKAq for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 02:31:29 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id C630D21F8644 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 15 Nov 2012 02:31:29 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYwil-0004GD-EY for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 10:30:55 +0000
Resent-Date: Thu, 15 Nov 2012 10:30:55 +0000
Resent-Message-Id: <E1TYwil-0004GD-EY@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <ylafon@w3.org>) id 1TYwih-0004FP-Fe for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 10:30:51 +0000
Received: from jay.w3.org ([128.30.52.169]) by lisa.w3.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <ylafon@w3.org>) id 1TYwig-0007Oc-KT for ietf-http-wg@w3.org; Thu, 15 Nov 2012 10:30:51 +0000
Received: from ylafon by jay.w3.org with local (Exim 4.69) (envelope-from <ylafon@w3.org>) id 1TYwif-0005sn-Dh; Thu, 15 Nov 2012 05:30:49 -0500
Date: Thu, 15 Nov 2012 05:30:49 -0500 (EST)
From: Yves Lafon <ylafon@w3.org>
To: Zhong Yu <zhong.j.yu@gmail.com>
cc: Julian Reschke <julian.reschke@gmx.de>, ietf-http-wg@w3.org
In-Reply-To: <CACuKZqHoiNmcfa=E1nRzGGrdh2i7EuBWBP01ehNk950WhNiVVg@mail.gmail.com>
Message-ID: <alpine.DEB.1.10.1211150525010.17744@wnl.j3.bet>
References: <5087DD2F.7000303@gmx.de> <CACuKZqHoiNmcfa=E1nRzGGrdh2i7EuBWBP01ehNk950WhNiVVg@mail.gmail.com>
User-Agent: Alpine 1.10 (DEB 962 2008-03-14)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: ALL_TRUSTED=-1, AWL=-3.326, RP_MATCHES_RCVD=-0.115
X-W3C-Scan-Sig: lisa.w3.org 1TYwig-0007Oc-KT 6fcdd78a11f973f8123306605bf64155
X-Original-To: ietf-http-wg@w3.org
Subject: Re: draft-ietf-httpbis-p5-range-21, "3.2 416 Requested Range Not  Satisfiable"
Archived-At: <http://www.w3.org/mid/alpine.DEB.1.10.1211150525010.17744@wnl.j3.bet>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15644
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Wed, 24 Oct 2012, Zhong Yu wrote:

> Wouldn't "Content-Type: multipart/byteranges" cause confusions if it's
> used anywhere other than in a 206 response?
>
> Suppose a representation itself has the content type of "multipart/bytera=
nges"
>
>    Get /slivers HTTP/1.1
>
>
>    HTTP/1.1 200 OK
>    Content-Type: multipart/byteranges
>
> That's pretty confusing for observers. Even more confusingly
>
>    Get/slivers HTTP/1.1
>    Range: bytes=3D0-499
>
>
>    HTTP/1.1 206 Partial Content
>    Content-Type: multipart/byteranges
>    Content-Range: bytes 0-499/1234
>
> Maybe we should strongly discourage the use of multipart/byteranges in
> any application except in a HTTP 206 response.

Note that you can't have Content-Range and Content-Type:=20
multipart/byteranges in a 206
From=203.1
<<
Either a Content-Range header field (Section 5.2) indicating the range=20
included with this response, or a multipart/byteranges Content-Type=20
including Content-Range fields for each part.
>>
Which is a XOR.
(This also address Thomas' first observation about MUST NOT in ticket=20
#405) [1]

[1] <http://trac.tools.ietf.org/wg/httpbis/trac/ticket/405>

> On Wed, Oct 24, 2012 at 7:21 AM, Julian Reschke <julian.reschke@gmx.de> w=
rote:
>> <http://greenbytes.de/tech/webdav/draft-ietf-httpbis-p5-range-21.html#st=
atus.416>:
>>
>> "When this status code is returned for a byte-range request, the respons=
e
>> SHOULD include a Content-Range header field specifying the current lengt=
h of
>> the representation (see Section 5.2). This response MUST NOT use the
>> multipart/byteranges content-type. For example,"
>>
>> What is this "MUST NOT" about? Are there clients that will ignore the st=
atus
>> code and assume success if they see the expected content-type?
>>
>> Best regards, Julian
>>
>
>

[1] <http://trac.tools.ietf.org/wg/httpbis/trac/ticket/405>

--=20
Baroula que barouleras, au ti=E9u toujou t'entourneras.

         ~~Yves



From ietf-http-wg-request@listhub.w3.org  Thu Nov 15 02:39:01 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0124721F854A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 02:39:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.999
X-Spam-Level: 
X-Spam-Status: No, score=-9.999 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_111=0.6, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id epo8Y3CfJIzx for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 02:39:00 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 4746521F8613 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 15 Nov 2012 02:39:00 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYwpI-00067x-AW for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 10:37:40 +0000
Resent-Date: Thu, 15 Nov 2012 10:37:40 +0000
Resent-Message-Id: <E1TYwpI-00067x-AW@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <ylafon@w3.org>) id 1TYwpE-00067I-Cj for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 10:37:36 +0000
Received: from jay.w3.org ([128.30.52.169]) by maggie.w3.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <ylafon@w3.org>) id 1TYwpD-0008Nt-M2 for ietf-http-wg@w3.org; Thu, 15 Nov 2012 10:37:36 +0000
Received: from ylafon by jay.w3.org with local (Exim 4.69) (envelope-from <ylafon@w3.org>) id 1TYwpD-0008Uy-9U; Thu, 15 Nov 2012 05:37:35 -0500
Date: Thu, 15 Nov 2012 05:37:35 -0500 (EST)
From: Yves Lafon <ylafon@w3.org>
To: Julian Reschke <julian.reschke@gmx.de>
cc: ietf-http-wg@w3.org
In-Reply-To: <5087DD2F.7000303@gmx.de>
Message-ID: <alpine.DEB.1.10.1211150533530.17744@wnl.j3.bet>
References: <5087DD2F.7000303@gmx.de>
User-Agent: Alpine 1.10 (DEB 962 2008-03-14)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE
X-W3C-Hub-Spam-Status: No, score=-4.5
X-W3C-Hub-Spam-Report: ALL_TRUSTED=-1, AWL=-3.354, RP_MATCHES_RCVD=-0.115
X-W3C-Scan-Sig: maggie.w3.org 1TYwpD-0008Nt-M2 e5394e15654ee16619f878189c20eab8
X-Original-To: ietf-http-wg@w3.org
Subject: Re: draft-ietf-httpbis-p5-range-21, "3.2 416 Requested Range Not  Satisfiable"
Archived-At: <http://www.w3.org/mid/alpine.DEB.1.10.1211150533530.17744@wnl.j3.bet>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15645
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Wed, 24 Oct 2012, Julian Reschke wrote:

> <http://greenbytes.de/tech/webdav/draft-ietf-httpbis-p5-range-21.html#sta=
tus.416>:
>
> "When this status code is returned for a byte-range request, the response=
=20
> SHOULD include a Content-Range header field specifying the current length=
 of=20
> the representation (see Section 5.2). This response MUST NOT use the=20
> multipart/byteranges content-type. For example,"
>
> What is this "MUST NOT" about? Are there clients that will ignore the sta=
tus=20
> code and assume success if they see the expected content-type?

It was present also in rfc2616, so nothing new. This is to enforce the=20
fact that multipart/byteranges contains a Content-Range header for each=20
part; An extra Content-Range would be like having two C-R with different=20
values, an error.

--=20
Baroula que barouleras, au ti=E9u toujou t'entourneras.

         ~~Yves



From ietf-http-wg-request@listhub.w3.org  Thu Nov 15 02:47:24 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3DE0821F8552 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 02:47:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.999
X-Spam-Level: 
X-Spam-Status: No, score=-9.999 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_111=0.6, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7pZCHPUSRNZb for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 02:47:23 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 6017221F8549 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 15 Nov 2012 02:47:23 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYwxj-0002Yh-8C for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 10:46:23 +0000
Resent-Date: Thu, 15 Nov 2012 10:46:23 +0000
Resent-Message-Id: <E1TYwxj-0002Yh-8C@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <ylafon@w3.org>) id 1TYwxf-0002Y2-4J for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 10:46:19 +0000
Received: from jay.w3.org ([128.30.52.169]) by maggie.w3.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <ylafon@w3.org>) id 1TYwxe-0000G6-Fc for ietf-http-wg@w3.org; Thu, 15 Nov 2012 10:46:19 +0000
Received: from ylafon by jay.w3.org with local (Exim 4.69) (envelope-from <ylafon@w3.org>) id 1TYwxb-0000V0-5O; Thu, 15 Nov 2012 05:46:15 -0500
Date: Thu, 15 Nov 2012 05:46:15 -0500 (EST)
From: Yves Lafon <ylafon@w3.org>
To: "Adrien W. de Croy" <adrien@qbik.com>
cc: Zhong Yu <zhong.j.yu@gmail.com>, Julian Reschke <julian.reschke@gmx.de>,  "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
In-Reply-To: <em0867683c-8daf-4aa5-a833-b26eb329123b@bombed>
Message-ID: <alpine.DEB.1.10.1211150542110.17744@wnl.j3.bet>
References: <em0867683c-8daf-4aa5-a833-b26eb329123b@bombed>
User-Agent: Alpine 1.10 (DEB 962 2008-03-14)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: ALL_TRUSTED=-1, AWL=-3.326, RP_MATCHES_RCVD=-0.115
X-W3C-Scan-Sig: maggie.w3.org 1TYwxe-0000G6-Fc 7ef2a692659aee48c995888c94a4d207
X-Original-To: ietf-http-wg@w3.org
Subject: Re: draft-ietf-httpbis-p5-range-21, "3.2 416 Requested Range Not  Satisfiable"
Archived-At: <http://www.w3.org/mid/alpine.DEB.1.10.1211150542110.17744@wnl.j3.bet>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15646
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Wed, 24 Oct 2012, Adrien W. de Croy wrote:

> I've always considered multipart/byteranges to be less than optimal desig=
n=20
> for the problem.
It might be useful for some video containers that contains significant=20
information at the beginning and the end (but it is bad design).

> A server should be able to send the byte ranges coalesced in a single mes=
sage=20
> body, since it advertised the ranges coming back it's possible to unpick =
it,=20
> and doesn't then require the part separators etc.

A server can also decide to support ranges but not support multiple ranges=
=20
requests.

> that way you don't need to overload the Content-Type which then removes y=
our=20
> ability to transfer the actual content type (although presumably this has=
=20
> been communicated earlier).

Strong +1 ot the pain of having th crack the multipart envelope to find=20
out the real CT.

> Does anyone actually use multiple ranges?

The main question is:
Should multipart/byteranges (and multiple ranges requests) be deprecated?

> ------ Original Message ------
> From: "Zhong Yu" <zhong.j.yu@gmail.com>
> To: "Julian Reschke" <julian.reschke@gmx.de>
> Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
> Sent: 25/10/2012 4:52:03 a.m.
> Subject: Re: draft-ietf-httpbis-p5-range-21, "3.2 416 Requested Range Not=
=20
> Satisfiable"
>> Wouldn't "Content-Type: multipart/byteranges" cause confusions if it's
>> used anywhere other than in a 206 response?
>>=20
>> Suppose a representation itself has the content type of=20
>> "multipart/byteranges"
>>
>>   Get /slivers HTTP/1.1
>>=20
>>
>>   HTTP/1.1 200 OK
>>   Content-Type: multipart/byteranges
>>=20
>> That's pretty confusing for observers. Even more confusingly
>>
>>   Get/slivers HTTP/1.1
>>   Range: bytes=3D0-499
>>=20
>>
>>   HTTP/1.1 206 Partial Content
>>   Content-Type: multipart/byteranges
>>   Content-Range: bytes 0-499/1234
>>=20
>> Maybe we should strongly discourage the use of multipart/byteranges in
>> any application except in a HTTP 206 response.
>>=20
>> Zhong Yu
>>=20
>>=20
>>=20
>> On Wed, Oct 24, 2012 at 7:21 AM, Julian Reschke <julian.reschke@gmx.de>=
=20
>> wrote:
>>=20
>>>=20
>>> <http://greenbytes.de/tech/webdav/draft-ietf-httpbis-p5-range-21.html#s=
tatus.416>:
>>>=20
>>> "When this status code is returned for a byte-range request, the respon=
se
>>> SHOULD include a Content-Range header field specifying the current leng=
th=20
>>> of
>>> the representation (see Section 5.2). This response MUST NOT use the
>>> multipart/byteranges content-type. For example,"
>>>=20
>>> What is this "MUST NOT" about? Are there clients that will ignore the=
=20
>>> status
>>> code and assume success if they see the expected content-type?
>>>=20
>>> Best regards, Julian
>>>=20
>>>=20
>>=20
>
>
>

--=20
Baroula que barouleras, au ti=C3=A9u toujou t'entourneras.

         ~~Yves



From ietf-http-wg-request@listhub.w3.org  Thu Nov 15 03:00:11 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2302D21F84C4 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 03:00:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uiQTIM5jSdG9 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 03:00:10 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 54F0321F88A0 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 15 Nov 2012 03:00:10 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYxAD-0006ed-IC for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 10:59:17 +0000
Resent-Date: Thu, 15 Nov 2012 10:59:17 +0000
Resent-Message-Id: <E1TYxAD-0006ed-IC@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1TYxA7-0006d9-PC for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 10:59:11 +0000
Received: from ip-58-28-153-233.static-xdsl.xnet.co.nz ([58.28.153.233] helo=treenet.co.nz) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1TYxA6-0000Dn-GU for ietf-http-wg@w3.org; Thu, 15 Nov 2012 10:59:11 +0000
Received: from [192.168.1.100] (unknown [101.98.102.102]) by treenet.co.nz (Postfix) with ESMTP id 00972E700A; Thu, 15 Nov 2012 23:58:45 +1300 (NZDT)
Message-ID: <50A4CADD.5070205@treenet.co.nz>
Date: Thu, 15 Nov 2012 23:58:37 +1300
From: Amos Jeffries <squid3@treenet.co.nz>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: Mark Nottingham <mnot@mnot.net>
CC: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
References: <507A332B.3020301@treenet.co.nz> <BD13C05A-992C-4EB9-874F-577F726CE6D9@mnot.net>
In-Reply-To: <BD13C05A-992C-4EB9-874F-577F726CE6D9@mnot.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=58.28.153.233; envelope-from=squid3@treenet.co.nz; helo=treenet.co.nz
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-3.449, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TYxA6-0000Dn-GU a22fc03b55f9697624745c9b9beb73ba
X-Original-To: ietf-http-wg@w3.org
Subject: Re: #403: cacheability of Authentication and no-cache
Archived-At: <http://www.w3.org/mid/50A4CADD.5070205@treenet.co.nz>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15647
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 15/11/2012 6:50 p.m., Mark Nottingham wrote:
> Hi Amos,
>
> I've created that as <http://trac.tools.ietf.org/wg/httpbis/trac/ticket/403>.
>
> My .02 -- I seem to remember some discussion about this. While it's true that revalidation is necessary to make an authenticated, cached response work properly, it doesn't follow that every condition that would lead to mandatory revalidation is a signal from the origin server that it's OK to cache the response to an authenticated request. "no-cache" is a particularly poor example of such a signal, since it's often misunderstood.
>
> IIRC this is why we left no-cache out.

I'm not quite sure I follow that. You left no-cache out of the list 
because it would be hard to explain rather than its semantics were wrong 
for the job?
  Or can anyone point me at a use case where no-cache would cause the 
wrong behaviour when storing an authenticated response?


>
> While we're here -- I'd like to remove all of the caching information from p7 and replace it with a reference to p6 3.2. Make sense?

Yes.

>
> On 14/10/2012, at 2:36 PM, Amos Jeffries <squid3@treenet.co.nz> wrote:
>
>> While reviewing the clauses for cacheability I find an undefined case which can reasonably be expected to appear in real-world traffic.
>>
>> Comparing p6 section 7.2.2.3 and 7.2.2.5 it is clear that response Cache-Control "no-cache" with no values is semantically equivalent to "must-revalidate, max-age=0".
>>
>> p7 section 4.1 clause 2 states that responses with "must-revalidate" MAY be cached for use on later requests provided revalidation is done.
>>
>> Assuming that p7 clause is true, I see no reason why "no-cache" response control cannot be also added to p7 section 4.1 list of exceptions along with must-revalidate.
>>
>> Amos
>>
>>
> --
> Mark Nottingham   http://www.mnot.net/
>
>
>
>



From ietf-http-wg-request@listhub.w3.org  Thu Nov 15 03:04:20 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B89A121F8899 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 03:04:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.433
X-Spam-Level: 
X-Spam-Status: No, score=-8.433 tagged_above=-999 required=5 tests=[AWL=2.167, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B388yBpxv+7s for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 03:04:20 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 05C2C21F8898 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 15 Nov 2012 03:04:20 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYxEH-0002Yo-8i for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 11:03:29 +0000
Resent-Date: Thu, 15 Nov 2012 11:03:29 +0000
Resent-Message-Id: <E1TYxEH-0002Yo-8i@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <roland@zinks.de>) id 1TYxEC-0002Y4-UI for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 11:03:24 +0000
Received: from mo-p00-ob.rzone.de ([81.169.146.162]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <roland@zinks.de>) id 1TYxEB-0000ya-V1 for ietf-http-wg@w3.org; Thu, 15 Nov 2012 11:03:24 +0000
X-RZG-AUTH: :PmMIdE6sW+WWP9q/oR3Lt+I+9KAK33vRJaCwLQNJU2mlIkBC0t1G+0bSVECAiLyH+IyyhrC8CxTtTMlGQ1xJX358
X-RZG-CLASS-ID: mo00
Received: from [IPv6:2001:4dd0:ff67:0:60e7:b86b:9a57:638] ([2001:4dd0:ff67:0:60e7:b86b:9a57:638]) by smtp.strato.de (joses mo49) (RZmta 31.4 AUTH) with ESMTPA id Y036f7oAFAtLjH for <ietf-http-wg@w3.org>; Thu, 15 Nov 2012 12:03:01 +0100 (CET)
Message-ID: <50A4CBE5.9020107@zinks.de>
Date: Thu, 15 Nov 2012 12:03:01 +0100
From: Roland Zink <roland@zinks.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: ietf-http-wg@w3.org
References: <50A26226.10906@cisco.com> <90BB8922-9DBA-44C7-BBB3-2B5993F05D04@mnot.net> <CAOdDvNo=3WBNOnibNKAGyS_VBz3inBG5KRJGfP4U3-FxpS7X9g@mail.gmail.com> <4FC84233-30D4-4D45-87CC-302C9E5044B4@mnot.net>
In-Reply-To: <4FC84233-30D4-4D45-87CC-302C9E5044B4@mnot.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: none client-ip=81.169.146.162; envelope-from=roland@zinks.de; helo=mo-p00-ob.rzone.de
X-W3C-Hub-Spam-Status: No, score=0.0
X-W3C-Hub-Spam-Report: RCVD_IN_DNSWL_NONE=-0.0001
X-W3C-Scan-Sig: maggie.w3.org 1TYxEB-0000ya-V1 fcae95b7d214b83e97fc7d86c765ef21
X-Original-To: ietf-http-wg@w3.org
Subject: Re: on DNS records
Archived-At: <http://www.w3.org/mid/50A4CBE5.9020107@zinks.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15648
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 15.11.2012 01:56, Mark Nottingham wrote:
> On 15/11/2012, at 11:54 AM, Patrick McManus <pmcmanus@mozilla.com> wrote:
>> - Are we advertising that port 80 is capable of HTTP/2, or an alternate port for HTTP/2, or (capable of) both?
>>
>> imo it has to be an arbitrary port.. if you send anything other than http/1 on port 80 across the general internet you'll get some breakage.
> Agreed... however, I don't see a reason to make it impossible to say "I support HTTP/2 on port 80 too", so the client can optimistically try to use it first (as long as it can handle breakage).
>
> Cheers,

When it can be determined from the first few bytes on the wire if it is 
HTTP/1 or HTTP/2 then servers and network elements could handle both 
protocols on the same port. The first bit may be enough for this (0 for 
ASCII HTTP and 1 for HTTP/2 control message?). However in the beginning 
there could be unnecessary breakages and a HTTP/2 default port may be a 
way around it. For example traffic may routed around HTTP/1 only network 
elements.

>
> --
> Mark Nottingham   http://www.mnot.net/
>
>
>
>
Roland Zink   http://home.zinks.de/



From ietf-http-wg-request@listhub.w3.org  Thu Nov 15 03:51:23 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DF3AE21F852D for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 03:51:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id juLTnkwedvEj for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 03:51:23 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 193CF21F81FF for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 15 Nov 2012 03:51:23 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TYxwR-0006IC-7E for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 11:49:07 +0000
Resent-Date: Thu, 15 Nov 2012 11:49:07 +0000
Resent-Message-Id: <E1TYxwR-0006IC-7E@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <adrien@qbik.com>) id 1TYxwM-0006HL-Ph for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 11:49:02 +0000
Received: from smtp.qbik.com ([210.55.214.35]) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <adrien@qbik.com>) id 1TYxwL-0002nM-10 for ietf-http-wg@w3.org; Thu, 15 Nov 2012 11:49:02 +0000
Received: From [192.168.0.10] (unverified [192.168.0.10]) by SMTP Server [192.168.0.1] (WinGate SMTP Receiver v7.2.8 (Build 3468)) with SMTP id <0019358359@smtp.qbik.com>; Fri, 16 Nov 2012 00:49:01 +1300
From: "Adrien W. de Croy" <adrien@qbik.com>
To: "Mark Nottingham" <mnot@mnot.net>, "Roy Fielding" <fielding@gbiv.com>
Cc: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Date: Thu, 15 Nov 2012 11:48:48 +0000
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; format=flowed; charset=utf-8
In-Reply-To: <D0B04F58-823E-46EB-BC24-B47FE0619C8D@mnot.net>
Message-Id: <eme9a254b9-1656-4cfb-9dd6-56f593cd5992@bombed>
Mime-Version: 1.0
Reply-To: "Adrien W. de Croy" <adrien@qbik.com>
User-Agent: eM_Client/4.0.15145.0
Received-SPF: pass client-ip=210.55.214.35; envelope-from=adrien@qbik.com; helo=smtp.qbik.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-3.392, RP_MATCHES_RCVD=-0.115, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TYxwL-0002nM-10 9abe67e9e0f921d5cdc269458d9ffdd4
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Queries re P6
Archived-At: <http://www.w3.org/mid/eme9a254b9-1656-4cfb-9dd6-56f593cd5992@bombed>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15649
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

=EF=BB=BFHi Mark

------ Original Message ------
From: "Mark Nottingham" <mnot@mnot.net>
>>>
>>>in 4.2 may I suggest some wording changes.
>>>
>>>Para 2 does not indicate that it's not valid to add If-Modified-Since=
 unless there was a Last-Modified header in the stored response.
>>>
>>>E.g. instead of
>>>
>>>"When sending such a conditional request, a cache adds an If-Modified-Si=
nce header field whose value is that of the Last-Modified header field from=
 the selected (see Section 4.3) stored response, if available."
>>>
>>>maybe it should read something like
>>>
>>>"If the selected stored response contains a Last-Modified header, a cach=
e SHOULD add an If-Modified-Since header field whose value is that of the=
 Last-Modified header field from the selected stored response."
>>>
>>>Likewise Para 3 and If-None-Match. E.g instead of
>>>
>>>"Additionally, a cache can add an If-None-Match header field whose value=
 is that of the ETag header field(s) from all responses stored for the requ=
ested URI, if present...."
>>>
>>>maybe
>>>
>>>"Additionally if any stored response contains an ETag header field, a=
 cache SHOULD add an If-None-Match header whose value(s) are the ETag heade=
r field(s) from all stored responses for the requested URI."
>>>
>>
>>
>>I don't object to doing this; does anyone else?
>>
>
>
>
>Looking at this again, I'm not sure what making them requirements really=
 buys us here. I'd be OK with adding some prose that says that creating =
IMS from values other than the LM from the origin is problematic, if that=
 would address your concern.
>
>
I'd tend to agree.  My main point was that it wasn't explicit that you=20
can't insert If-Modified-Since if you don't have a stored Last-Modifed=20
(e.g .could be construed to allow adding an empty If-Modified-Since and=20
If-None-Match), and likewise that you can't insert If-None-Match if you=20
have no Etags.

Cheers

Adrien
>
>Cheers,
>
>
>--
>Mark Nottingham   http://www.mnot.net/
>
>
>
>
>



From ietf-http-wg-request@listhub.w3.org  Thu Nov 15 06:36:20 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9C88721F88FA for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 06:36:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.446
X-Spam-Level: 
X-Spam-Status: No, score=-10.446 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8, SARE_SUB_ENC_UTF8=0.152]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id y+nhW1R3fuJG for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 06:36:20 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 5253521F88E9 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 15 Nov 2012 06:36:16 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TZ0US-00025F-Pz for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 14:32:24 +0000
Resent-Date: Thu, 15 Nov 2012 14:32:24 +0000
Resent-Message-Id: <E1TZ0US-00025F-Pz@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1TZ0UK-00022V-Cf for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 14:32:16 +0000
Received: from mail-la0-f43.google.com ([209.85.215.43]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1TZ0UJ-0000rP-DL for ietf-http-wg@w3.org; Thu, 15 Nov 2012 14:32:16 +0000
Received: by mail-la0-f43.google.com with SMTP id z14so1285997lag.2 for <ietf-http-wg@w3.org>; Thu, 15 Nov 2012 06:31:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=vL8j8GjY4mGMo5StlT8gxJq19F/bfl3a8rGOyKxslxY=; b=m+sN9EKV3ho4sOam4JQEP3r7i+NKgiZQGL5P0UfdQjm7w33pttBruXHcZqiq/AlnAp hcthBERN9BDK/s65p7F6AjLofezuTPNraJI+qYwV1vzZ3CXrYdMY9rK1FtrtIptMrGDy 6XhvYiC1YU9u3BqHNWr7rEhBNWe23LGP5K3PD0P+WwEYsMpcrnGP+iENssSTC30pzU6P tDCFToN6sWI3HO2LbsASeT1v+vwYhpPC4Cx1bQaj92upoS8H+xLak2zm1RAlMaXFmn9E 1Uor3YhK+jfUTMrGR/oRXpIa+MDX7AIw5V7fjKrhgCLNvChXzscN5y3k0hgs2Kr50RKz W4wQ==
MIME-Version: 1.0
Received: by 10.112.25.42 with SMTP id z10mr653950lbf.103.1352989908645; Thu, 15 Nov 2012 06:31:48 -0800 (PST)
Received: by 10.112.128.200 with HTTP; Thu, 15 Nov 2012 06:31:48 -0800 (PST)
Received: by 10.112.128.200 with HTTP; Thu, 15 Nov 2012 06:31:48 -0800 (PST)
In-Reply-To: <20121115102852.GE29199@1wt.eu>
References: <CABP7Rbfkvc_gsSESd2mHiLaYO5Ng2g0JZ4VYB2kYQcY2OX+aLg@mail.gmail.com> <D65DBD3C-730B-49AF-846E-3413BD27D37D@free.fr> <50A476D9.8000204@it.aoyama.ac.jp> <B82B8D1A-4351-4DF4-8549-7694C6865068@free.fr> <20121115102852.GE29199@1wt.eu>
Date: Thu, 15 Nov 2012 06:31:48 -0800
Message-ID: <CAP+FsNdtQNz68OT6g0Q8z=korxCrpQQV=VwAcZt9fZFoe7oDZA@mail.gmail.com>
From: Roberto Peon <grmocg@gmail.com>
To: Willy Tarreau <w@1wt.eu>
Cc: =?ISO-8859-1?Q?Martin_J=2E_D=FCrst?= <duerst@it.aoyama.ac.jp>,  HTTP Working Group <ietf-http-wg@w3.org>, =?ISO-8859-1?Q?Fr=E9d=E9ric_Kayser?= <f.kayser@free.fr>
Content-Type: multipart/alternative; boundary=bcaec555565ae3b9bc04ce89828e
Received-SPF: pass client-ip=209.85.215.43; envelope-from=grmocg@gmail.com; helo=mail-la0-f43.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.710, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TZ0UJ-0000rP-DL eaa5a68512b44e708a3fc5aba01824ce
X-Original-To: ietf-http-wg@w3.org
Subject: Re: UTF-8 NFC vs NFD compression, French sample (was: Updated Binary  Optimized Header Encoding Draft)
Archived-At: <http://www.w3.org/mid/CAP+FsNdtQNz68OT6g0Q8z=korxCrpQQV=VwAcZt9fZFoe7oDZA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15650
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--bcaec555565ae3b9bc04ce89828e
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Remember the CRIME exploit, guys. Stream compressors aren't very safe to
use...

-=3DR
On Nov 15, 2012 2:30 AM, "Willy Tarreau" <w@1wt.eu> wrote:

> Hi Frederic,
>
> On Thu, Nov 15, 2012 at 10:58:44AM +0100, Fr=E9d=E9ric Kayser wrote:
> > Hello Martin,
> > I have a short French text sample here, it's a small extract from =AB L=
e
> tour du monde en quatre-vingts jours =BB ("Around the World in Eighty Day=
s")
> by Jules Verne.
> >
> > The bzip2 compressed version of the NFD encoded text is smaller by 4
> bytes.
> > Using gzip it looks like a draw but in fact the Deflate stream itself i=
s
> 4 bits shorter.
> > In the other hand when using xz (lzma2) NFC gives a better result.
> >
> > 2553 tdm80j-french-utf8-nfc.txt
> > 2625 tdm80j-french-utf8-nfd.txt
> >
> > 1312 tdm80j-french-utf8-nfc.txt.bz2
> > 1308 tdm80j-french-utf8-nfd.txt.bz2
> >
> > 1352 tdm80j-french-utf8-nfc.txt.gz
> > 1352 tdm80j-french-utf8-nfd.txt.gz
> >
> > defdb -s tdm80j-french-utf8-nfc.txt.gz
> > 10671 bits
> >
> > defdb -s tdm80j-french-utf8-nfd.txt.gz
> > 10667 bits
> >
> > Compressed files are enclosed in the zip archive attached to this email=
.
>
> Do not forget that the most important for HTTP is not the compression
> ratio but the compression speed. If you need a whole datacenter to
> compress 1000 streams, nobody will use it. If the compression induces
> delays, it will not be used either. If you check around, you'll see that
> HTTP compression engines right now compress at gzip-1 to achieve the best
> compression speed allowed on HTTP. And I agree with your comment in a
> previous mail that gzip is totally outdated. I'd like to have much faster
> compression algos such as LZ4, fastlz, etc... which are 10-100 times fast=
er
> than gzip for around the same compression ratios as gzip-1.
>
> Cheers,
> Willy
>
>
>

--bcaec555565ae3b9bc04ce89828e
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<p dir=3D"ltr">Remember the CRIME exploit, guys. Stream compressors aren&#3=
9;t very safe to use...<br></p>
<p dir=3D"ltr">-=3DR</p>
<div class=3D"gmail_quote">On Nov 15, 2012 2:30 AM, &quot;Willy Tarreau&quo=
t; &lt;<a href=3D"mailto:w@1wt.eu">w@1wt.eu</a>&gt; wrote:<br type=3D"attri=
bution"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border=
-left:1px #ccc solid;padding-left:1ex">
Hi Frederic,<br>
<br>
On Thu, Nov 15, 2012 at 10:58:44AM +0100, Fr=E9d=E9ric Kayser wrote:<br>
&gt; Hello Martin,<br>
&gt; I have a short French text sample here, it&#39;s a small extract from =
=AB Le tour du monde en quatre-vingts jours =BB (&quot;Around the World in =
Eighty Days&quot;) by Jules Verne.<br>
&gt;<br>
&gt; The bzip2 compressed version of the NFD encoded text is smaller by 4 b=
ytes.<br>
&gt; Using gzip it looks like a draw but in fact the Deflate stream itself =
is 4 bits shorter.<br>
&gt; In the other hand when using xz (lzma2) NFC gives a better result.<br>
&gt;<br>
&gt; 2553 tdm80j-french-utf8-nfc.txt<br>
&gt; 2625 tdm80j-french-utf8-nfd.txt<br>
&gt;<br>
&gt; 1312 tdm80j-french-utf8-nfc.txt.bz2<br>
&gt; 1308 tdm80j-french-utf8-nfd.txt.bz2<br>
&gt;<br>
&gt; 1352 tdm80j-french-utf8-nfc.txt.gz<br>
&gt; 1352 tdm80j-french-utf8-nfd.txt.gz<br>
&gt;<br>
&gt; defdb -s tdm80j-french-utf8-nfc.txt.gz<br>
&gt; 10671 bits<br>
&gt;<br>
&gt; defdb -s tdm80j-french-utf8-nfd.txt.gz<br>
&gt; 10667 bits<br>
&gt;<br>
&gt; Compressed files are enclosed in the zip archive attached to this emai=
l.<br>
<br>
Do not forget that the most important for HTTP is not the compression<br>
ratio but the compression speed. If you need a whole datacenter to<br>
compress 1000 streams, nobody will use it. If the compression induces<br>
delays, it will not be used either. If you check around, you&#39;ll see tha=
t<br>
HTTP compression engines right now compress at gzip-1 to achieve the best<b=
r>
compression speed allowed on HTTP. And I agree with your comment in a<br>
previous mail that gzip is totally outdated. I&#39;d like to have much fast=
er<br>
compression algos such as LZ4, fastlz, etc... which are 10-100 times faster=
<br>
than gzip for around the same compression ratios as gzip-1.<br>
<br>
Cheers,<br>
Willy<br>
<br>
<br>
</blockquote></div>

--bcaec555565ae3b9bc04ce89828e--


From ietf-http-wg-request@listhub.w3.org  Thu Nov 15 07:45:42 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A631321F8563 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 07:45:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vewQeW-wjBz2 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 07:45:42 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id E52E721F84BB for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 15 Nov 2012 07:45:41 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TZ1Zp-0006LG-5i for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 15:42:01 +0000
Resent-Date: Thu, 15 Nov 2012 15:42:01 +0000
Resent-Message-Id: <E1TZ1Zp-0006LG-5i@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <TFossati@velocix.com>) id 1TZ1Zk-0006KQ-Pe for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 15:41:56 +0000
Received: from mail-out1.velocix.com ([81.134.152.10] helo=owa.velocix.com) by lisa.w3.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from <TFossati@velocix.com>) id 1TZ1Zj-0004A8-1z; Thu, 15 Nov 2012 15:41:56 +0000
Received: from EXC01-MLT.corp.velocix.com (172.18.4.41) by EXC00CAM.corp.velocix.com (172.18.4.40) with Microsoft SMTP Server (TLS) id 14.2.247.3; Thu, 15 Nov 2012 15:41:26 +0000
Received: from EXB01-MLT.corp.velocix.com ([169.254.2.142]) by exc01-mlt.corp.velocix.com ([172.18.4.41]) with mapi id 14.02.0318.001; Thu, 15 Nov 2012 15:41:26 +0000
From: Thomas Fossati <TFossati@velocix.com>
To: Mark Nottingham <mnot@mnot.net>, Yves Lafon <ylafon@w3.org>
CC: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Thread-Topic: draft-ietf-httpbis-p5-range-latest, "5.3 If-Range"
Thread-Index: AQHNsg71UzQyjWFphkuc4csZIIGTGZfqlpeAgACUoAA=
Date: Thu, 15 Nov 2012 15:41:25 +0000
Message-ID: <DA86AAEF6E448540808AFA696EA47E5A4009968D@EXB01-MLT.corp.velocix.com>
In-Reply-To: <27E7D5CC-C194-4472-8696-56A2819AF62F@mnot.net>
Accept-Language: en-US, en-GB
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [81.134.152.4]
Content-Type: text/plain; charset="us-ascii"
Content-ID: <60D8E7E9A481704C9995D6C66FE6535B@velocix.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Received-SPF: none client-ip=81.134.152.10; envelope-from=TFossati@velocix.com; helo=owa.velocix.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-3.393, RP_MATCHES_RCVD=-0.115
X-W3C-Scan-Sig: lisa.w3.org 1TZ1Zj-0004A8-1z a0b89bccd6983bf20759c9e48188e241
X-Original-To: ietf-http-wg@w3.org
Subject: Re: draft-ietf-httpbis-p5-range-latest, "5.3 If-Range"
Archived-At: <http://www.w3.org/mid/DA86AAEF6E448540808AFA696EA47E5A4009968D@EXB01-MLT.corp.velocix.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15651
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Mark, Yves,

On 15/11/2012 06:49, "Mark Nottingham" <mnot@mnot.net> wrote:
>It says that if the validator does not match, the entire representation
>should be sent; what's the issue?

Issue was who wins between the two (i.e. the unmatched validator or the
"bad" range specification), which is clearly the unmatched validator since
the range specification does not apply to the current resource state.

Thank you.



From ietf-http-wg-request@listhub.w3.org  Thu Nov 15 08:42:21 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 93C2C21F867F for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 08:42:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.299
X-Spam-Level: 
X-Spam-Status: No, score=-10.299 tagged_above=-999 required=5 tests=[AWL=-0.300, BAYES_00=-2.599, J_CHICKENPOX_111=0.6, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IiR27rEH6WZw for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 08:42:20 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 1708A21F866D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 15 Nov 2012 08:42:20 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TZ2Tl-0001lU-Mm for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 16:39:49 +0000
Resent-Date: Thu, 15 Nov 2012 16:39:49 +0000
Resent-Message-Id: <E1TZ2Tl-0001lU-Mm@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <zhong.j.yu@gmail.com>) id 1TZ2Tg-0001kk-T6 for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 16:39:44 +0000
Received: from mail-vc0-f171.google.com ([209.85.220.171]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <zhong.j.yu@gmail.com>) id 1TZ2Tf-000794-Mv; Thu, 15 Nov 2012 16:39:44 +0000
Received: by mail-vc0-f171.google.com with SMTP id m18so2009169vcm.2 for <multiple recipients>; Thu, 15 Nov 2012 08:39:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=7Q6/CwXEx/tQPkAHPftMesOROkwO/i7BjzzN8M+okaw=; b=ZQUEpXXvBZSobikXz8+rakRlbl5u3ub7o5cD20T1W7YyiWOhdaP0q/gGoEwX177zy5 LUH009jNpMxjjgsrAwZl4FTJGhnl6dsLvhb3+H8PLEesV/Nipxdp6pNp3DBTVuw+dwW+ 1ZifXvRlkWb8ueTifF29QjknKpiePn76GcfN4w/cdDTrVlJcWMLCFX7DG6E1JjPvNrx1 5/0wIc/3NSZMrZX67irws3l9e95jpWHM9QluajfLzWQUUt7cuu8r46pGkXNAHknN1g/L 1A2Nw7lhEhTKuvCevhwGXUo4I4ZriH8jLDOl/4Z71nfxAc+Mgk90iwHfDrMJ7a+hm4oW JyfA==
MIME-Version: 1.0
Received: by 10.52.95.201 with SMTP id dm9mr1864555vdb.95.1352997557720; Thu, 15 Nov 2012 08:39:17 -0800 (PST)
Received: by 10.220.102.145 with HTTP; Thu, 15 Nov 2012 08:39:17 -0800 (PST)
In-Reply-To: <alpine.DEB.1.10.1211150525010.17744@wnl.j3.bet>
References: <5087DD2F.7000303@gmx.de> <CACuKZqHoiNmcfa=E1nRzGGrdh2i7EuBWBP01ehNk950WhNiVVg@mail.gmail.com> <alpine.DEB.1.10.1211150525010.17744@wnl.j3.bet>
Date: Thu, 15 Nov 2012 10:39:17 -0600
Message-ID: <CACuKZqGpFJjWw6nZCiCNz+QyboDD+VWwp+sRnn9_+iw7RPz7Qw@mail.gmail.com>
From: Zhong Yu <zhong.j.yu@gmail.com>
To: Yves Lafon <ylafon@w3.org>
Cc: Julian Reschke <julian.reschke@gmx.de>, ietf-http-wg@w3.org
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=209.85.220.171; envelope-from=zhong.j.yu@gmail.com; helo=mail-vc0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.703, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TZ2Tf-000794-Mv c39a836d6067cf8356a59aa51b9e3564
X-Original-To: ietf-http-wg@w3.org
Subject: Re: draft-ietf-httpbis-p5-range-21, "3.2 416 Requested Range Not Satisfiable"
Archived-At: <http://www.w3.org/mid/CACuKZqGpFJjWw6nZCiCNz+QyboDD+VWwp+sRnn9_+iw7RPz7Qw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15652
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Thu, Nov 15, 2012 at 4:30 AM, Yves Lafon <ylafon@w3.org> wrote:
> On Wed, 24 Oct 2012, Zhong Yu wrote:
>
>> Wouldn't "Content-Type: multipart/byteranges" cause confusions if it's
>> used anywhere other than in a 206 response?
>>
>> Suppose a representation itself has the content type of
>> "multipart/byteranges"
>>
>>    Get /slivers HTTP/1.1
>>
>>
>>    HTTP/1.1 200 OK
>>    Content-Type: multipart/byteranges
>>
>> That's pretty confusing for observers. Even more confusingly
>>
>>    Get/slivers HTTP/1.1
>>    Range: bytes=3D0-499
>>
>>
>>    HTTP/1.1 206 Partial Content
>>    Content-Type: multipart/byteranges
>>    Content-Range: bytes 0-499/1234
>>
>> Maybe we should strongly discourage the use of multipart/byteranges in
>> any application except in a HTTP 206 response.
>
>
> Note that you can't have Content-Range and Content-Type:
> multipart/byteranges in a 206

In my example, the request is for a single range, the selected
representation's own content type is multipart/byteranges. Then the
server has no choice but to respond like that.

Unless, we forbid the general use of multipart/byteranges, and require
that it is specifically designed for carrying HTTP 206 multiple
ranges, not to be used anywhere else.

Zhong Yu

> From 3.1
> <<
> Either a Content-Range header field (Section 5.2) indicating the range
> included with this response, or a multipart/byteranges Content-Type
> including Content-Range fields for each part.
>>>
>>>
> Which is a XOR.
> (This also address Thomas' first observation about MUST NOT in ticket #40=
5)
> [1]
>
> [1] <http://trac.tools.ietf.org/wg/httpbis/trac/ticket/405>
>
>
>> On Wed, Oct 24, 2012 at 7:21 AM, Julian Reschke <julian.reschke@gmx.de>
>> wrote:
>>>
>>>
>>> <http://greenbytes.de/tech/webdav/draft-ietf-httpbis-p5-range-21.html#s=
tatus.416>:
>>>
>>> "When this status code is returned for a byte-range request, the respon=
se
>>> SHOULD include a Content-Range header field specifying the current leng=
th
>>> of
>>> the representation (see Section 5.2). This response MUST NOT use the
>>> multipart/byteranges content-type. For example,"
>>>
>>> What is this "MUST NOT" about? Are there clients that will ignore the
>>> status
>>> code and assume success if they see the expected content-type?
>>>
>>> Best regards, Julian
>>>
>>
>>
>
> [1] <http://trac.tools.ietf.org/wg/httpbis/trac/ticket/405>
>
> --
> Baroula que barouleras, au ti=E9u toujou t'entourneras.
>
>         ~~Yves
>


From ietf-http-wg-request@listhub.w3.org  Thu Nov 15 08:50:10 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 242EA21F8473 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 08:50:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.599
X-Spam-Level: 
X-Spam-Status: No, score=-8.599 tagged_above=-999 required=5 tests=[AWL=2.000, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4-cmU+nmmIkU for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 08:50:09 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 8D15121F845B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 15 Nov 2012 08:50:09 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TZ2bT-0007s6-Fi for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 16:47:47 +0000
Resent-Date: Thu, 15 Nov 2012 16:47:47 +0000
Resent-Message-Id: <E1TZ2bT-0007s6-Fi@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <julian.reschke@gmx.de>) id 1TZ2bL-0007rM-Gf for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 16:47:39 +0000
Received: from mailout-de.gmx.net ([213.165.64.23]) by lisa.w3.org with smtp (Exim 4.72) (envelope-from <julian.reschke@gmx.de>) id 1TZ2bK-0007Sq-I7 for ietf-http-wg@w3.org; Thu, 15 Nov 2012 16:47:39 +0000
Received: (qmail invoked by alias); 15 Nov 2012 16:47:12 -0000
Received: from mail.greenbytes.de (EHLO [192.168.1.102]) [217.91.35.233] by mail.gmx.net (mp031) with SMTP; 15 Nov 2012 17:47:12 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX18LjxdGrxkL35cbTQeyA0JR2XCvlXSA9e0Z6qFwna PWvZUscfmMw/O6
Message-ID: <50A51C8E.9070503@gmx.de>
Date: Thu, 15 Nov 2012 17:47:10 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: Zhong Yu <zhong.j.yu@gmail.com>
CC: Yves Lafon <ylafon@w3.org>, ietf-http-wg@w3.org
References: <5087DD2F.7000303@gmx.de> <CACuKZqHoiNmcfa=E1nRzGGrdh2i7EuBWBP01ehNk950WhNiVVg@mail.gmail.com> <alpine.DEB.1.10.1211150525010.17744@wnl.j3.bet> <CACuKZqGpFJjWw6nZCiCNz+QyboDD+VWwp+sRnn9_+iw7RPz7Qw@mail.gmail.com>
In-Reply-To: <CACuKZqGpFJjWw6nZCiCNz+QyboDD+VWwp+sRnn9_+iw7RPz7Qw@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
Received-SPF: pass client-ip=213.165.64.23; envelope-from=julian.reschke@gmx.de; helo=mailout-de.gmx.net
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-3.450, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TZ2bK-0007Sq-I7 3c9ee1459c02fbb5cf3db42d4be09bcb
X-Original-To: ietf-http-wg@w3.org
Subject: Re: draft-ietf-httpbis-p5-range-21, "3.2 416 Requested Range Not  Satisfiable"
Archived-At: <http://www.w3.org/mid/50A51C8E.9070503@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15653
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 2012-11-15 17:39, Zhong Yu wrote:
> On Thu, Nov 15, 2012 at 4:30 AM, Yves Lafon <ylafon@w3.org> wrote:
>> On Wed, 24 Oct 2012, Zhong Yu wrote:
>>
>>> Wouldn't "Content-Type: multipart/byteranges" cause confusions if it's
>>> used anywhere other than in a 206 response?
>>>
>>> Suppose a representation itself has the content type of
>>> "multipart/byteranges"
>>>
>>>     Get /slivers HTTP/1.1
>>>
>>>
>>>     HTTP/1.1 200 OK
>>>     Content-Type: multipart/byteranges
>>>
>>> That's pretty confusing for observers. Even more confusingly
>>>
>>>     Get/slivers HTTP/1.1
>>>     Range: bytes=0-499
>>>
>>>
>>>     HTTP/1.1 206 Partial Content
>>>     Content-Type: multipart/byteranges
>>>     Content-Range: bytes 0-499/1234
>>>
>>> Maybe we should strongly discourage the use of multipart/byteranges in
>>> any application except in a HTTP 206 response.
>>
>>
>> Note that you can't have Content-Range and Content-Type:
>> multipart/byteranges in a 206
>
> In my example, the request is for a single range, the selected
> representation's own content type is multipart/byteranges. Then the
> server has no choice but to respond like that.

Exactly. We should remove all special-casing with respect to this. We 
could keep a warning that some clients might be confused by the presence 
of that type, though.

> ...

Best regards, Julian


From ietf-http-wg-request@listhub.w3.org  Thu Nov 15 14:25:51 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E0CE021F8A3B for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 14:25:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.808
X-Spam-Level: 
X-Spam-Status: No, score=-8.808 tagged_above=-999 required=5 tests=[AWL=1.791, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cTBrH4yTk+2d for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 15 Nov 2012 14:25:51 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id E82BC21F853B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 15 Nov 2012 14:25:50 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TZ7qW-0000hm-H5 for ietf-http-wg-dist@listhub.w3.org; Thu, 15 Nov 2012 22:23:40 +0000
Resent-Date: Thu, 15 Nov 2012 22:23:40 +0000
Resent-Message-Id: <E1TZ7qW-0000hm-H5@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TZ7qN-0000gy-Qc for ietf-http-wg@listhub.w3.org; Thu, 15 Nov 2012 22:23:31 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TZ7qM-0000Bo-Ne for ietf-http-wg@w3.org; Thu, 15 Nov 2012 22:23:31 +0000
Received: from [192.168.1.64] (unknown [118.209.81.233]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 9D622509B7; Thu, 15 Nov 2012 17:23:07 -0500 (EST)
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <50A4CADD.5070205@treenet.co.nz>
Date: Fri, 16 Nov 2012 09:23:05 +1100
Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <0C1C32C4-FAFF-4BC1-A8D4-F5B8524E0CF1@mnot.net>
References: <507A332B.3020301@treenet.co.nz> <BD13C05A-992C-4EB9-874F-577F726CE6D9@mnot.net> <50A4CADD.5070205@treenet.co.nz>
To: Amos Jeffries <squid3@treenet.co.nz>
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-3.1
X-W3C-Hub-Spam-Report: AWL=-3.100, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TZ7qM-0000Bo-Ne 400e104b646e16816914f42b9a02301a
X-Original-To: ietf-http-wg@w3.org
Subject: Re: #403: cacheability of Authentication and no-cache
Archived-At: <http://www.w3.org/mid/0C1C32C4-FAFF-4BC1-A8D4-F5B8524E0CF1@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15654
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 15/11/2012, at 9:58 PM, Amos Jeffries <squid3@treenet.co.nz> wrote:

> On 15/11/2012 6:50 p.m., Mark Nottingham wrote:
>> Hi Amos,
>>=20
>> I've created that as =
<http://trac.tools.ietf.org/wg/httpbis/trac/ticket/403>.
>>=20
>> My .02 -- I seem to remember some discussion about this. While it's =
true that revalidation is necessary to make an authenticated, cached =
response work properly, it doesn't follow that every condition that =
would lead to mandatory revalidation is a signal from the origin server =
that it's OK to cache the response to an authenticated request. =
"no-cache" is a particularly poor example of such a signal, since it's =
often misunderstood.
>>=20
>> IIRC this is why we left no-cache out.
>=20
> I'm not quite sure I follow that. You left no-cache out of the list =
because it would be hard to explain rather than its semantics were wrong =
for the job?
> Or can anyone point me at a use case where no-cache would cause the =
wrong behaviour when storing an authenticated response?

It's easy enough to explain; we'd just add it to the list. The issue =
IIRC is that the other directives have always been an explicit signal =
from the origin that it's OK to store an authenticated response; =
no-cache has never explicitly been that signal, even though its =
behaviour may be similar. Changing that signal retroactively may have =
surprising effects for some who didn't intend it to be interpreted that =
way.

Cheers,

--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Sun Nov 18 12:38:55 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3BB4C21F8538 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 18 Nov 2012 12:38:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nRk3N9XEcnsS for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 18 Nov 2012 12:38:54 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 28CCC21F8534 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 18 Nov 2012 12:38:53 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TaBZb-0004Eq-5H for ietf-http-wg-dist@listhub.w3.org; Sun, 18 Nov 2012 20:34:35 +0000
Resent-Date: Sun, 18 Nov 2012 20:34:35 +0000
Resent-Message-Id: <E1TaBZb-0004Eq-5H@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <masinter@adobe.com>) id 1TaBZT-0004E6-NW for ietf-http-wg@listhub.w3.org; Sun, 18 Nov 2012 20:34:27 +0000
Received: from exprod6og116.obsmtp.com ([64.18.1.37]) by maggie.w3.org with smtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <masinter@adobe.com>) id 1TaBZS-0004qz-Lz for ietf-http-wg@w3.org; Sun, 18 Nov 2012 20:34:27 +0000
Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob116.postini.com ([64.18.5.12]) with SMTP ID DSNKUKlGO07mtg49p3tUB5qzYwRFGt+LkYis@postini.com; Sun, 18 Nov 2012 12:34:26 PST
Received: from inner-relay-1.corp.adobe.com ([153.32.1.51]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id qAIKVC1v027564; Sun, 18 Nov 2012 12:31:12 -0800 (PST)
Received: from nahub01.corp.adobe.com (nahub01.corp.adobe.com [10.8.189.97]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id qAIKY2Nc018638; Sun, 18 Nov 2012 12:34:02 -0800 (PST)
Received: from nambxv01a.corp.adobe.com ([10.8.189.95]) by nahub01.corp.adobe.com ([10.8.189.97]) with mapi; Sun, 18 Nov 2012 12:34:02 -0800
From: Larry Masinter <masinter@adobe.com>
To: Mark Nottingham <mnot@mnot.net>, HTTP Working Group <ietf-http-wg@w3.org>
Date: Sun, 18 Nov 2012 12:33:59 -0800
Thread-Topic: #401 /#402: Our old friends, weak ETags
Thread-Index: Ac3C8sqKx+kpg6LsRYaDvtR9vs3NmgC19dPw
Message-ID: <C68CB012D9182D408CED7B884F441D4D1E3702753B@nambxv01a.corp.adobe.com>
References: <7D2A809E-F3E0-4128-AFEA-8EEEBF3AC26E@mnot.net> <ACD069C6-1CD9-4CD1-9644-BA82C0B9DE84@mnot.net>
In-Reply-To: <ACD069C6-1CD9-4CD1-9644-BA82C0B9DE84@mnot.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Received-SPF: pass client-ip=64.18.1.37; envelope-from=masinter@adobe.com; helo=exprod6og116.obsmtp.com
X-W3C-Hub-Spam-Status: No, score=-4.5
X-W3C-Hub-Spam-Report: AWL=-2.192, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TaBZS-0004qz-Lz 8b5866be50f714cc4173cf9b011acf43
X-Original-To: ietf-http-wg@w3.org
Subject: RE: #401 /#402: Our old friends, weak ETags
Archived-At: <http://www.w3.org/mid/C68CB012D9182D408CED7B884F441D4D1E3702753B@nambxv01a.corp.adobe.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15655
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

> > When an ETag is marked weak with "W/", it need not change across differ=
ent
> content encodings. "Weak" means the entity is semantically equivalent but=
 not
> bit-equivalent. But Redbot complains that it doesn't change with differen=
t
> content encodings.
> > """
> >
> > Looking into this, a couple of things pop up:
> >
> > 1) The obvious question, whether two different *negotiated* representat=
ions
> of the same resource can (or should) have the same weak ETag.

The intent of a weak ETag was to let the server decide. So two different ne=
gotiated representations _can_ have the same weak ETag, but whether they SH=
OULD have the same weak ETag is up to the server to decide whether it is ha=
ppy about it.


 Our current
> definition is this:
> >
> > """
> > In contrast, a "weak validator" is a representation metadata value that=
 might
> not be changed for every change to the representation data. This weakness
> might be due to limitations in how the value is calculated, such as clock
> resolution or an inability to ensure uniqueness for all possible represen=
tations of
> the resource, or due to a desire by the resource owner to group
> representations by some self-determined set of equivalency rather than un=
ique
> sequences of data. An origin server should change a weak entity-tag whene=
ver
> it considers prior representations to be unacceptable as a substitute for=
 the
> current representation. In other words, a weak entity-tag ought to change
> whenever the origin server wants caches to invalidate old responses.
> > """ <https://svn.tools.ietf.org/svn/wg/httpbis/draft-ietf-httpbis/lates=
t/p4-
> conditional.html#weak.and.strong.validators>
> >
> > Strictly speaking, I don't think this is a problem for caches; followin=
g the rules
> for reusing a stored response <https://svn.tools.ietf.org/svn/wg/httpbis/=
draft-
> ietf-httpbis/latest/p6-cache.html#constructing.responses.from.caches>, a
> cache doesn't use the ETag to select a representation (what we used to ca=
ll a
> variant) from a pool of many.
> >
> > Having said that, I'm still a bit uneasy. An ETag is supposed to be sco=
ped to an
> entire resource, not just the selected representation. Because the respon=
se is
> negotiated, I'm tempted to argue that a compressed response is NOT
> semantically equivalent to an uncompressed one, just as a French response=
 isn't
> equivalent to an English one, because the client has stated they don't
> understand English.

An image which is mainly just an image but has a few French words might be =
preferred for French and the same image with a few English words replaced m=
ight be preferred for English, if you're doing content negotiation, but the=
 server can decide to give them the same weak ETag if the server wants to, =
or not.=20



> > Thoughts? Is it worth clarifying this, or is it acceptable to have two =
different
> negotiated representations of the same resource share a weak ETag?
>=20
> Thinking about this a bit more, I think my uneasiness stems from a situat=
ion
> where the server has sent these two responses (with the same target URI):
>=20
> Vary: Accept-Encoding
> Content-Encoding: gzip
> ETag: W/"abc"
>=20
> Vary: Accept-Encoding
> ETag: W/"abc"
>=20
> This is effectively contradicting itself; Vary indicates that the respons=
e differs
> based upon the Accept-Encoding request header (and Content-Encoding
> confirms that), but the ETag says that they're the same (albeit, only
> "semantically" the same).

I don't see the problem. The server is saying "If you want to use the old o=
ne instead of the new one, go ahead, it's fine with me".


> OTOH, I don't see any hard requirements for ETag uniqueness within the sc=
ope
> of a resource -- either in 2616 or bis -- so technically, the example abo=
ve could
> be with strong ETags and still be confomant. I think it'd still be functi=
onal within
> the caching spec as well (although some implementations may not behave we=
ll).

I disagree about strong ETags, here, because you should be able to do byte =
range computations if you have strong ETags.

> Both, however, conflict with our current description of ETag's semantics =
(or at
> least its spirit):
>=20
> > An entity-tag is an opaque validator for differentiating between multip=
le
> representations of the same resource, regardless of whether those multipl=
e
> representations are due to resource state changes over time, content
> negotiation resulting in multiple representations being valid at the same=
 time, or
> both.
>=20
> I see a couple of possible ways forward:
>=20
> a) Require that ETags differ when the server performs selection / conneg,
> regardless of their strength.

I think this is inconsistent with the purpose of weak ETags. Yes, for stron=
g ones.

> b) Explain in prose that content negotiation usually affects the meaning =
of the
> response, therefore necessitating a different ETag.

Ditto

> c) Modify the definition of ETag to avoid this conflict

Clarify the definition of ETag possibly.

> (Those are in my personal preference order; however, I'm more interested =
in
> getting the issue solved than any particular outcome)
>=20
> Separate from that, I wonder if we should place specific requirements on =
ETag
> uniqueness across the representations of a resource. It'd likely be that =
strong
> ETags MUST differ when the body is byte-for-byte different,  or there is =
a
> meaningful change in the representation's headers;

Yes

>  for weak ETags, it'd be a
> meaningful change in the headers or body (when "meaningful" is defined by=
 the
> server).

I think the server can decide based on whatever criteria it wants -- time o=
f day, name of client, cookies, session state, whatever.=20

> Thoughts?
>=20
>=20
> > 2) In the definitions of If-Match and If-None-Match, we don't specify w=
hether
> the weak or strong comparison function is to be used when these validatio=
ns
> actually occur, although we spend a lot of text on when to use weak vs. s=
trong
> ETags themselves.
> >
> > Now, you might say that an origin server can decide whether to use the =
weak
> or strong function, but an intermediary or client cache doesn't have lice=
nse to do
> weak comparison, and could cause a lot of trouble if it did. AFAICT we do=
n't
> specify this, but I think we should.

The weak ETag response *is* the license. =20
>=20
> I propose we specify that proxy and client caches MUST use the strong
> comparison function with If-Match and If-None-Match.

Why gut the intent of weak ETags?

> --
> Mark Nottingham   http://www.mnot.net/
>=20
>=20
>=20



From ietf-http-wg-request@listhub.w3.org  Sun Nov 18 15:15:42 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 89E7021F8596 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 18 Nov 2012 15:15:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.23
X-Spam-Level: 
X-Spam-Status: No, score=-7.23 tagged_above=-999 required=5 tests=[AWL=0.914, BAYES_00=-2.599, FRT_ADOBE2=2.455, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pIhIqMuZITDH for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 18 Nov 2012 15:15:41 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 65B5221F8434 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 18 Nov 2012 15:15:41 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TaE30-0008FS-SW for ietf-http-wg-dist@listhub.w3.org; Sun, 18 Nov 2012 23:13:06 +0000
Resent-Date: Sun, 18 Nov 2012 23:13:06 +0000
Resent-Message-Id: <E1TaE30-0008FS-SW@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TaE2t-0008E8-Ea for ietf-http-wg@listhub.w3.org; Sun, 18 Nov 2012 23:12:59 +0000
Received: from mxout-07.mxes.net ([216.86.168.182]) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TaE2s-0008E4-EJ for ietf-http-wg@w3.org; Sun, 18 Nov 2012 23:12:59 +0000
Received: from [192.168.1.64] (unknown [118.209.151.16]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 2ED5222E1F4; Sun, 18 Nov 2012 18:12:35 -0500 (EST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <C68CB012D9182D408CED7B884F441D4D1E3702753B@nambxv01a.corp.adobe.com>
Date: Mon, 19 Nov 2012 10:12:35 +1100
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <A6CCA03C-5D9E-4FCD-9AB2-652461027CB3@mnot.net>
References: <7D2A809E-F3E0-4128-AFEA-8EEEBF3AC26E@mnot.net> <ACD069C6-1CD9-4CD1-9644-BA82C0B9DE84@mnot.net> <C68CB012D9182D408CED7B884F441D4D1E3702753B@nambxv01a.corp.adobe.com>
To: Larry Masinter <masinter@adobe.com>
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.182; envelope-from=mnot@mnot.net; helo=mxout-07.mxes.net
X-W3C-Hub-Spam-Status: No, score=-3.6
X-W3C-Hub-Spam-Report: AWL=-2.734, BAYES_00=-1.9, FRT_ADOBE2=1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TaE2s-0008E4-EJ ed1c77c4ae16311501743769da3efccf
X-Original-To: ietf-http-wg@w3.org
Subject: Re: #401 /#402: Our old friends, weak ETags
Archived-At: <http://www.w3.org/mid/A6CCA03C-5D9E-4FCD-9AB2-652461027CB3@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15656
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

OK, so it sounds like the proposal for #401 is to:

a) add a requirement for strong ETag uniqueness, and
b) clarify in prose that if you issue the same weak ETag for *any* two =
representations of a resource, you consider them interchangeable =
(possibly in the examples), and
c) change the definition of ETags from:

> An entity-tag is an opaque validator for differentiating between =
multiple
> representations of the same resource, regardless of whether those =
multiple
> representations are due to resource state changes over time, content
> negotiation resulting in multiple representations being valid at the =
same time, or
> both.

to:

> An entity-tag is an opaque validator with a weakness flag.=20

Make sense?



On 19/11/2012, at 7:33 AM, Larry Masinter <masinter@adobe.com> wrote:

>>> When an ETag is marked weak with "W/", it need not change across =
different
>> content encodings. "Weak" means the entity is semantically equivalent =
but not
>> bit-equivalent. But Redbot complains that it doesn't change with =
different
>> content encodings.
>>> """
>>>=20
>>> Looking into this, a couple of things pop up:
>>>=20
>>> 1) The obvious question, whether two different *negotiated* =
representations
>> of the same resource can (or should) have the same weak ETag.
>=20
> The intent of a weak ETag was to let the server decide. So two =
different negotiated representations _can_ have the same weak ETag, but =
whether they SHOULD have the same weak ETag is up to the server to =
decide whether it is happy about it.
>=20
>=20
> Our current
>> definition is this:
>>>=20
>>> """
>>> In contrast, a "weak validator" is a representation metadata value =
that might
>> not be changed for every change to the representation data. This =
weakness
>> might be due to limitations in how the value is calculated, such as =
clock
>> resolution or an inability to ensure uniqueness for all possible =
representations of
>> the resource, or due to a desire by the resource owner to group
>> representations by some self-determined set of equivalency rather =
than unique
>> sequences of data. An origin server should change a weak entity-tag =
whenever
>> it considers prior representations to be unacceptable as a substitute =
for the
>> current representation. In other words, a weak entity-tag ought to =
change
>> whenever the origin server wants caches to invalidate old responses.
>>> """ =
<https://svn.tools.ietf.org/svn/wg/httpbis/draft-ietf-httpbis/latest/p4-
>> conditional.html#weak.and.strong.validators>
>>>=20
>>> Strictly speaking, I don't think this is a problem for caches; =
following the rules
>> for reusing a stored response =
<https://svn.tools.ietf.org/svn/wg/httpbis/draft-
>> =
ietf-httpbis/latest/p6-cache.html#constructing.responses.from.caches>, a
>> cache doesn't use the ETag to select a representation (what we used =
to call a
>> variant) from a pool of many.
>>>=20
>>> Having said that, I'm still a bit uneasy. An ETag is supposed to be =
scoped to an
>> entire resource, not just the selected representation. Because the =
response is
>> negotiated, I'm tempted to argue that a compressed response is NOT
>> semantically equivalent to an uncompressed one, just as a French =
response isn't
>> equivalent to an English one, because the client has stated they =
don't
>> understand English.
>=20
> An image which is mainly just an image but has a few French words =
might be preferred for French and the same image with a few English =
words replaced might be preferred for English, if you're doing content =
negotiation, but the server can decide to give them the same weak ETag =
if the server wants to, or not.=20
>=20
>=20
>=20
>>> Thoughts? Is it worth clarifying this, or is it acceptable to have =
two different
>> negotiated representations of the same resource share a weak ETag?
>>=20
>> Thinking about this a bit more, I think my uneasiness stems from a =
situation
>> where the server has sent these two responses (with the same target =
URI):
>>=20
>> Vary: Accept-Encoding
>> Content-Encoding: gzip
>> ETag: W/"abc"
>>=20
>> Vary: Accept-Encoding
>> ETag: W/"abc"
>>=20
>> This is effectively contradicting itself; Vary indicates that the =
response differs
>> based upon the Accept-Encoding request header (and Content-Encoding
>> confirms that), but the ETag says that they're the same (albeit, only
>> "semantically" the same).
>=20
> I don't see the problem. The server is saying "If you want to use the =
old one instead of the new one, go ahead, it's fine with me".
>=20
>=20
>> OTOH, I don't see any hard requirements for ETag uniqueness within =
the scope
>> of a resource -- either in 2616 or bis -- so technically, the example =
above could
>> be with strong ETags and still be confomant. I think it'd still be =
functional within
>> the caching spec as well (although some implementations may not =
behave well).
>=20
> I disagree about strong ETags, here, because you should be able to do =
byte range computations if you have strong ETags.
>=20
>> Both, however, conflict with our current description of ETag's =
semantics (or at
>> least its spirit):
>>=20
>>> An entity-tag is an opaque validator for differentiating between =
multiple
>> representations of the same resource, regardless of whether those =
multiple
>> representations are due to resource state changes over time, content
>> negotiation resulting in multiple representations being valid at the =
same time, or
>> both.
>>=20
>> I see a couple of possible ways forward:
>>=20
>> a) Require that ETags differ when the server performs selection / =
conneg,
>> regardless of their strength.
>=20
> I think this is inconsistent with the purpose of weak ETags. Yes, for =
strong ones.
>=20
>> b) Explain in prose that content negotiation usually affects the =
meaning of the
>> response, therefore necessitating a different ETag.
>=20
> Ditto
>=20
>> c) Modify the definition of ETag to avoid this conflict
>=20
> Clarify the definition of ETag possibly.
>=20
>> (Those are in my personal preference order; however, I'm more =
interested in
>> getting the issue solved than any particular outcome)
>>=20
>> Separate from that, I wonder if we should place specific requirements =
on ETag
>> uniqueness across the representations of a resource. It'd likely be =
that strong
>> ETags MUST differ when the body is byte-for-byte different,  or there =
is a
>> meaningful change in the representation's headers;
>=20
> Yes
>=20
>> for weak ETags, it'd be a
>> meaningful change in the headers or body (when "meaningful" is =
defined by the
>> server).
>=20
> I think the server can decide based on whatever criteria it wants -- =
time of day, name of client, cookies, session state, whatever.=20
>=20
>> Thoughts?
>>=20
>>=20
>>> 2) In the definitions of If-Match and If-None-Match, we don't =
specify whether
>> the weak or strong comparison function is to be used when these =
validations
>> actually occur, although we spend a lot of text on when to use weak =
vs. strong
>> ETags themselves.
>>>=20
>>> Now, you might say that an origin server can decide whether to use =
the weak
>> or strong function, but an intermediary or client cache doesn't have =
license to do
>> weak comparison, and could cause a lot of trouble if it did. AFAICT =
we don't
>> specify this, but I think we should.
>=20
> The weak ETag response *is* the license. =20
>>=20
>> I propose we specify that proxy and client caches MUST use the strong
>> comparison function with If-Match and If-None-Match.
>=20
> Why gut the intent of weak ETags?
>=20
>> --
>> Mark Nottingham   http://www.mnot.net/
>>=20
>>=20
>>=20
>=20

--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Sun Nov 18 22:04:41 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 625E421F8471 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 18 Nov 2012 22:04:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.144
X-Spam-Level: 
X-Spam-Status: No, score=-8.144 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FRT_ADOBE2=2.455, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZjCPO2geICnS for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 18 Nov 2012 22:04:40 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id EEFE921F85C1 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 18 Nov 2012 22:04:39 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TaKQp-0005w2-MV for ietf-http-wg-dist@listhub.w3.org; Mon, 19 Nov 2012 06:02:07 +0000
Resent-Date: Mon, 19 Nov 2012 06:02:07 +0000
Resent-Message-Id: <E1TaKQp-0005w2-MV@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <fielding@gbiv.com>) id 1TaKQh-0005ux-Vl for ietf-http-wg@listhub.w3.org; Mon, 19 Nov 2012 06:02:00 +0000
Received: from caiajhbdcbhh.dreamhost.com ([208.97.132.177] helo=homiemail-a98.g.dreamhost.com) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <fielding@gbiv.com>) id 1TaKQg-0002wT-Kf for ietf-http-wg@w3.org; Mon, 19 Nov 2012 06:01:59 +0000
Received: from homiemail-a98.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a98.g.dreamhost.com (Postfix) with ESMTP id CFF5A2C2024; Sun, 18 Nov 2012 22:01:36 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gbiv.com; h=subject :mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=gbiv.com; bh=f+QSLKvDdW4HX84t6Ib1u9WE78g=; b=N9ewbiewsFlK0x9mQzvMGfDjVTAM qRyHXSfa3Y7MLwo2Ezn/HwqLcY4MOjE+8w/AOgLtIXauKBvKTIjkN80ccbA36PB7 XtMIAeFl1MYzFaKvX5UrnCCUGfLmRuhAlMUzKUyt7FjERFFyN7uRs3Gr95cgz2bS VfQ09q50OYo38AU=
Received: from [192.168.1.84] (99-21-208-82.lightspeed.irvnca.sbcglobal.net [99.21.208.82]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: fielding@gbiv.com) by homiemail-a98.g.dreamhost.com (Postfix) with ESMTPSA id 8B6B42C2023; Sun, 18 Nov 2012 22:01:36 -0800 (PST)
Mime-Version: 1.0 (Apple Message framework v1283)
Content-Type: text/plain; charset=us-ascii
From: "Roy T. Fielding" <fielding@gbiv.com>
In-Reply-To: <A6CCA03C-5D9E-4FCD-9AB2-652461027CB3@mnot.net>
Date: Sun, 18 Nov 2012 22:01:35 -0800
Cc: Larry Masinter <masinter@adobe.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <7298A7B1-2D63-48BC-B396-A994429FDF81@gbiv.com>
References: <7D2A809E-F3E0-4128-AFEA-8EEEBF3AC26E@mnot.net> <ACD069C6-1CD9-4CD1-9644-BA82C0B9DE84@mnot.net> <C68CB012D9182D408CED7B884F441D4D1E3702753B@nambxv01a.corp.adobe.com> <A6CCA03C-5D9E-4FCD-9AB2-652461027CB3@mnot.net>
To: Mark Nottingham <mnot@mnot.net>
X-Mailer: Apple Mail (2.1283)
Received-SPF: none client-ip=208.97.132.177; envelope-from=fielding@gbiv.com; helo=homiemail-a98.g.dreamhost.com
X-W3C-Hub-Spam-Status: No, score=-3.0
X-W3C-Hub-Spam-Report: AWL=-3.925, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FRT_ADOBE2=1, RCVD_IN_DNSWL_NONE=-0.0001
X-W3C-Scan-Sig: maggie.w3.org 1TaKQg-0002wT-Kf 58516b5d8adb604612f9ee09ed742650
X-Original-To: ietf-http-wg@w3.org
Subject: Re: #401 /#402: Our old friends, weak ETags
Archived-At: <http://www.w3.org/mid/7298A7B1-2D63-48BC-B396-A994429FDF81@gbiv.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15657
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

I think you are misunderstanding the "for differentiating between".
It does not imply that all entity tags uniquely differentiate.

....Roy

On Nov 18, 2012, at 3:12 PM, Mark Nottingham wrote:

> OK, so it sounds like the proposal for #401 is to:
>=20
> a) add a requirement for strong ETag uniqueness, and
> b) clarify in prose that if you issue the same weak ETag for *any* two =
representations of a resource, you consider them interchangeable =
(possibly in the examples), and
> c) change the definition of ETags from:
>=20
>> An entity-tag is an opaque validator for differentiating between =
multiple
>> representations of the same resource, regardless of whether those =
multiple
>> representations are due to resource state changes over time, content
>> negotiation resulting in multiple representations being valid at the =
same time, or
>> both.
>=20
> to:
>=20
>> An entity-tag is an opaque validator with a weakness flag.=20
>=20
> Make sense?
>=20
>=20
>=20
> On 19/11/2012, at 7:33 AM, Larry Masinter <masinter@adobe.com> wrote:
>=20
>>>> When an ETag is marked weak with "W/", it need not change across =
different
>>> content encodings. "Weak" means the entity is semantically =
equivalent but not
>>> bit-equivalent. But Redbot complains that it doesn't change with =
different
>>> content encodings.
>>>> """
>>>>=20
>>>> Looking into this, a couple of things pop up:
>>>>=20
>>>> 1) The obvious question, whether two different *negotiated* =
representations
>>> of the same resource can (or should) have the same weak ETag.
>>=20
>> The intent of a weak ETag was to let the server decide. So two =
different negotiated representations _can_ have the same weak ETag, but =
whether they SHOULD have the same weak ETag is up to the server to =
decide whether it is happy about it.
>>=20
>>=20
>> Our current
>>> definition is this:
>>>>=20
>>>> """
>>>> In contrast, a "weak validator" is a representation metadata value =
that might
>>> not be changed for every change to the representation data. This =
weakness
>>> might be due to limitations in how the value is calculated, such as =
clock
>>> resolution or an inability to ensure uniqueness for all possible =
representations of
>>> the resource, or due to a desire by the resource owner to group
>>> representations by some self-determined set of equivalency rather =
than unique
>>> sequences of data. An origin server should change a weak entity-tag =
whenever
>>> it considers prior representations to be unacceptable as a =
substitute for the
>>> current representation. In other words, a weak entity-tag ought to =
change
>>> whenever the origin server wants caches to invalidate old responses.
>>>> """ =
<https://svn.tools.ietf.org/svn/wg/httpbis/draft-ietf-httpbis/latest/p4-
>>> conditional.html#weak.and.strong.validators>
>>>>=20
>>>> Strictly speaking, I don't think this is a problem for caches; =
following the rules
>>> for reusing a stored response =
<https://svn.tools.ietf.org/svn/wg/httpbis/draft-
>>> =
ietf-httpbis/latest/p6-cache.html#constructing.responses.from.caches>, a
>>> cache doesn't use the ETag to select a representation (what we used =
to call a
>>> variant) from a pool of many.
>>>>=20
>>>> Having said that, I'm still a bit uneasy. An ETag is supposed to be =
scoped to an
>>> entire resource, not just the selected representation. Because the =
response is
>>> negotiated, I'm tempted to argue that a compressed response is NOT
>>> semantically equivalent to an uncompressed one, just as a French =
response isn't
>>> equivalent to an English one, because the client has stated they =
don't
>>> understand English.
>>=20
>> An image which is mainly just an image but has a few French words =
might be preferred for French and the same image with a few English =
words replaced might be preferred for English, if you're doing content =
negotiation, but the server can decide to give them the same weak ETag =
if the server wants to, or not.=20
>>=20
>>=20
>>=20
>>>> Thoughts? Is it worth clarifying this, or is it acceptable to have =
two different
>>> negotiated representations of the same resource share a weak ETag?
>>>=20
>>> Thinking about this a bit more, I think my uneasiness stems from a =
situation
>>> where the server has sent these two responses (with the same target =
URI):
>>>=20
>>> Vary: Accept-Encoding
>>> Content-Encoding: gzip
>>> ETag: W/"abc"
>>>=20
>>> Vary: Accept-Encoding
>>> ETag: W/"abc"
>>>=20
>>> This is effectively contradicting itself; Vary indicates that the =
response differs
>>> based upon the Accept-Encoding request header (and Content-Encoding
>>> confirms that), but the ETag says that they're the same (albeit, =
only
>>> "semantically" the same).
>>=20
>> I don't see the problem. The server is saying "If you want to use the =
old one instead of the new one, go ahead, it's fine with me".
>>=20
>>=20
>>> OTOH, I don't see any hard requirements for ETag uniqueness within =
the scope
>>> of a resource -- either in 2616 or bis -- so technically, the =
example above could
>>> be with strong ETags and still be confomant. I think it'd still be =
functional within
>>> the caching spec as well (although some implementations may not =
behave well).
>>=20
>> I disagree about strong ETags, here, because you should be able to do =
byte range computations if you have strong ETags.
>>=20
>>> Both, however, conflict with our current description of ETag's =
semantics (or at
>>> least its spirit):
>>>=20
>>>> An entity-tag is an opaque validator for differentiating between =
multiple
>>> representations of the same resource, regardless of whether those =
multiple
>>> representations are due to resource state changes over time, content
>>> negotiation resulting in multiple representations being valid at the =
same time, or
>>> both.
>>>=20
>>> I see a couple of possible ways forward:
>>>=20
>>> a) Require that ETags differ when the server performs selection / =
conneg,
>>> regardless of their strength.
>>=20
>> I think this is inconsistent with the purpose of weak ETags. Yes, for =
strong ones.
>>=20
>>> b) Explain in prose that content negotiation usually affects the =
meaning of the
>>> response, therefore necessitating a different ETag.
>>=20
>> Ditto
>>=20
>>> c) Modify the definition of ETag to avoid this conflict
>>=20
>> Clarify the definition of ETag possibly.
>>=20
>>> (Those are in my personal preference order; however, I'm more =
interested in
>>> getting the issue solved than any particular outcome)
>>>=20
>>> Separate from that, I wonder if we should place specific =
requirements on ETag
>>> uniqueness across the representations of a resource. It'd likely be =
that strong
>>> ETags MUST differ when the body is byte-for-byte different,  or =
there is a
>>> meaningful change in the representation's headers;
>>=20
>> Yes
>>=20
>>> for weak ETags, it'd be a
>>> meaningful change in the headers or body (when "meaningful" is =
defined by the
>>> server).
>>=20
>> I think the server can decide based on whatever criteria it wants -- =
time of day, name of client, cookies, session state, whatever.=20
>>=20
>>> Thoughts?
>>>=20
>>>=20
>>>> 2) In the definitions of If-Match and If-None-Match, we don't =
specify whether
>>> the weak or strong comparison function is to be used when these =
validations
>>> actually occur, although we spend a lot of text on when to use weak =
vs. strong
>>> ETags themselves.
>>>>=20
>>>> Now, you might say that an origin server can decide whether to use =
the weak
>>> or strong function, but an intermediary or client cache doesn't have =
license to do
>>> weak comparison, and could cause a lot of trouble if it did. AFAICT =
we don't
>>> specify this, but I think we should.
>>=20
>> The weak ETag response *is* the license. =20
>>>=20
>>> I propose we specify that proxy and client caches MUST use the =
strong
>>> comparison function with If-Match and If-None-Match.
>>=20
>> Why gut the intent of weak ETags?
>>=20
>>> --
>>> Mark Nottingham   http://www.mnot.net/
>>>=20
>>>=20
>>>=20
>>=20
>=20
> --
> Mark Nottingham   http://www.mnot.net/
>=20
>=20
>=20
>=20



From ietf-http-wg-request@listhub.w3.org  Sun Nov 18 22:13:09 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7F1F921F84EC for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 18 Nov 2012 22:13:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.253
X-Spam-Level: 
X-Spam-Status: No, score=-7.253 tagged_above=-999 required=5 tests=[AWL=0.891, BAYES_00=-2.599, FRT_ADOBE2=2.455, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KkVaqZlJCYGQ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 18 Nov 2012 22:13:08 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id DE95A21F8790 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 18 Nov 2012 22:13:07 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TaKaB-0000lQ-A9 for ietf-http-wg-dist@listhub.w3.org; Mon, 19 Nov 2012 06:11:47 +0000
Resent-Date: Mon, 19 Nov 2012 06:11:47 +0000
Resent-Message-Id: <E1TaKaB-0000lQ-A9@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TaKa5-0000kc-S7 for ietf-http-wg@listhub.w3.org; Mon, 19 Nov 2012 06:11:41 +0000
Received: from mxout-07.mxes.net ([216.86.168.182]) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TaKa4-0004LE-Io for ietf-http-wg@w3.org; Mon, 19 Nov 2012 06:11:41 +0000
Received: from [192.168.1.75] (unknown [118.209.151.16]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 069FD22E1F4; Mon, 19 Nov 2012 01:11:16 -0500 (EST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <7298A7B1-2D63-48BC-B396-A994429FDF81@gbiv.com>
Date: Mon, 19 Nov 2012 17:11:14 +1100
Cc: Larry Masinter <masinter@adobe.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <677A9831-0C89-4506-B4D9-F34B7C664879@mnot.net>
References: <7D2A809E-F3E0-4128-AFEA-8EEEBF3AC26E@mnot.net> <ACD069C6-1CD9-4CD1-9644-BA82C0B9DE84@mnot.net> <C68CB012D9182D408CED7B884F441D4D1E3702753B@nambxv01a.corp.adobe.com> <A6CCA03C-5D9E-4FCD-9AB2-652461027CB3@mnot.net> <7298A7B1-2D63-48BC-B396-A994429FDF81@gbiv.com>
To: "Roy T. Fielding" <fielding@gbiv.com>
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.182; envelope-from=mnot@mnot.net; helo=mxout-07.mxes.net
X-W3C-Hub-Spam-Status: No, score=-3.6
X-W3C-Hub-Spam-Report: AWL=-2.695, BAYES_00=-1.9, FRT_ADOBE2=1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TaKa4-0004LE-Io c2c9853a29d370257def0774d587040f
X-Original-To: ietf-http-wg@w3.org
Subject: Re: #401 /#402: Our old friends, weak ETags
Archived-At: <http://www.w3.org/mid/677A9831-0C89-4506-B4D9-F34B7C664879@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15658
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 19/11/2012, at 5:01 PM, "Roy T. Fielding" <fielding@gbiv.com> wrote:

> I think you are misunderstanding the "for differentiating between".
> It does not imply that all entity tags uniquely differentiate.

Perhaps, but it's easy to misunderstand. Can you suggest a =
clarification?



>=20
> ....Roy
>=20
> On Nov 18, 2012, at 3:12 PM, Mark Nottingham wrote:
>=20
>> OK, so it sounds like the proposal for #401 is to:
>>=20
>> a) add a requirement for strong ETag uniqueness, and
>> b) clarify in prose that if you issue the same weak ETag for *any* =
two representations of a resource, you consider them interchangeable =
(possibly in the examples), and
>> c) change the definition of ETags from:
>>=20
>>> An entity-tag is an opaque validator for differentiating between =
multiple
>>> representations of the same resource, regardless of whether those =
multiple
>>> representations are due to resource state changes over time, content
>>> negotiation resulting in multiple representations being valid at the =
same time, or
>>> both.
>>=20
>> to:
>>=20
>>> An entity-tag is an opaque validator with a weakness flag.=20
>>=20
>> Make sense?
>>=20
>>=20
>>=20
>> On 19/11/2012, at 7:33 AM, Larry Masinter <masinter@adobe.com> wrote:
>>=20
>>>>> When an ETag is marked weak with "W/", it need not change across =
different
>>>> content encodings. "Weak" means the entity is semantically =
equivalent but not
>>>> bit-equivalent. But Redbot complains that it doesn't change with =
different
>>>> content encodings.
>>>>> """
>>>>>=20
>>>>> Looking into this, a couple of things pop up:
>>>>>=20
>>>>> 1) The obvious question, whether two different *negotiated* =
representations
>>>> of the same resource can (or should) have the same weak ETag.
>>>=20
>>> The intent of a weak ETag was to let the server decide. So two =
different negotiated representations _can_ have the same weak ETag, but =
whether they SHOULD have the same weak ETag is up to the server to =
decide whether it is happy about it.
>>>=20
>>>=20
>>> Our current
>>>> definition is this:
>>>>>=20
>>>>> """
>>>>> In contrast, a "weak validator" is a representation metadata value =
that might
>>>> not be changed for every change to the representation data. This =
weakness
>>>> might be due to limitations in how the value is calculated, such as =
clock
>>>> resolution or an inability to ensure uniqueness for all possible =
representations of
>>>> the resource, or due to a desire by the resource owner to group
>>>> representations by some self-determined set of equivalency rather =
than unique
>>>> sequences of data. An origin server should change a weak entity-tag =
whenever
>>>> it considers prior representations to be unacceptable as a =
substitute for the
>>>> current representation. In other words, a weak entity-tag ought to =
change
>>>> whenever the origin server wants caches to invalidate old =
responses.
>>>>> """ =
<https://svn.tools.ietf.org/svn/wg/httpbis/draft-ietf-httpbis/latest/p4-
>>>> conditional.html#weak.and.strong.validators>
>>>>>=20
>>>>> Strictly speaking, I don't think this is a problem for caches; =
following the rules
>>>> for reusing a stored response =
<https://svn.tools.ietf.org/svn/wg/httpbis/draft-
>>>> =
ietf-httpbis/latest/p6-cache.html#constructing.responses.from.caches>, a
>>>> cache doesn't use the ETag to select a representation (what we used =
to call a
>>>> variant) from a pool of many.
>>>>>=20
>>>>> Having said that, I'm still a bit uneasy. An ETag is supposed to =
be scoped to an
>>>> entire resource, not just the selected representation. Because the =
response is
>>>> negotiated, I'm tempted to argue that a compressed response is NOT
>>>> semantically equivalent to an uncompressed one, just as a French =
response isn't
>>>> equivalent to an English one, because the client has stated they =
don't
>>>> understand English.
>>>=20
>>> An image which is mainly just an image but has a few French words =
might be preferred for French and the same image with a few English =
words replaced might be preferred for English, if you're doing content =
negotiation, but the server can decide to give them the same weak ETag =
if the server wants to, or not.=20
>>>=20
>>>=20
>>>=20
>>>>> Thoughts? Is it worth clarifying this, or is it acceptable to have =
two different
>>>> negotiated representations of the same resource share a weak ETag?
>>>>=20
>>>> Thinking about this a bit more, I think my uneasiness stems from a =
situation
>>>> where the server has sent these two responses (with the same target =
URI):
>>>>=20
>>>> Vary: Accept-Encoding
>>>> Content-Encoding: gzip
>>>> ETag: W/"abc"
>>>>=20
>>>> Vary: Accept-Encoding
>>>> ETag: W/"abc"
>>>>=20
>>>> This is effectively contradicting itself; Vary indicates that the =
response differs
>>>> based upon the Accept-Encoding request header (and Content-Encoding
>>>> confirms that), but the ETag says that they're the same (albeit, =
only
>>>> "semantically" the same).
>>>=20
>>> I don't see the problem. The server is saying "If you want to use =
the old one instead of the new one, go ahead, it's fine with me".
>>>=20
>>>=20
>>>> OTOH, I don't see any hard requirements for ETag uniqueness within =
the scope
>>>> of a resource -- either in 2616 or bis -- so technically, the =
example above could
>>>> be with strong ETags and still be confomant. I think it'd still be =
functional within
>>>> the caching spec as well (although some implementations may not =
behave well).
>>>=20
>>> I disagree about strong ETags, here, because you should be able to =
do byte range computations if you have strong ETags.
>>>=20
>>>> Both, however, conflict with our current description of ETag's =
semantics (or at
>>>> least its spirit):
>>>>=20
>>>>> An entity-tag is an opaque validator for differentiating between =
multiple
>>>> representations of the same resource, regardless of whether those =
multiple
>>>> representations are due to resource state changes over time, =
content
>>>> negotiation resulting in multiple representations being valid at =
the same time, or
>>>> both.
>>>>=20
>>>> I see a couple of possible ways forward:
>>>>=20
>>>> a) Require that ETags differ when the server performs selection / =
conneg,
>>>> regardless of their strength.
>>>=20
>>> I think this is inconsistent with the purpose of weak ETags. Yes, =
for strong ones.
>>>=20
>>>> b) Explain in prose that content negotiation usually affects the =
meaning of the
>>>> response, therefore necessitating a different ETag.
>>>=20
>>> Ditto
>>>=20
>>>> c) Modify the definition of ETag to avoid this conflict
>>>=20
>>> Clarify the definition of ETag possibly.
>>>=20
>>>> (Those are in my personal preference order; however, I'm more =
interested in
>>>> getting the issue solved than any particular outcome)
>>>>=20
>>>> Separate from that, I wonder if we should place specific =
requirements on ETag
>>>> uniqueness across the representations of a resource. It'd likely be =
that strong
>>>> ETags MUST differ when the body is byte-for-byte different,  or =
there is a
>>>> meaningful change in the representation's headers;
>>>=20
>>> Yes
>>>=20
>>>> for weak ETags, it'd be a
>>>> meaningful change in the headers or body (when "meaningful" is =
defined by the
>>>> server).
>>>=20
>>> I think the server can decide based on whatever criteria it wants -- =
time of day, name of client, cookies, session state, whatever.=20
>>>=20
>>>> Thoughts?
>>>>=20
>>>>=20
>>>>> 2) In the definitions of If-Match and If-None-Match, we don't =
specify whether
>>>> the weak or strong comparison function is to be used when these =
validations
>>>> actually occur, although we spend a lot of text on when to use weak =
vs. strong
>>>> ETags themselves.
>>>>>=20
>>>>> Now, you might say that an origin server can decide whether to use =
the weak
>>>> or strong function, but an intermediary or client cache doesn't =
have license to do
>>>> weak comparison, and could cause a lot of trouble if it did. AFAICT =
we don't
>>>> specify this, but I think we should.
>>>=20
>>> The weak ETag response *is* the license. =20
>>>>=20
>>>> I propose we specify that proxy and client caches MUST use the =
strong
>>>> comparison function with If-Match and If-None-Match.
>>>=20
>>> Why gut the intent of weak ETags?
>>>=20
>>>> --
>>>> Mark Nottingham   http://www.mnot.net/
>>>>=20
>>>>=20
>>>>=20
>>>=20
>>=20
>> --
>> Mark Nottingham   http://www.mnot.net/
>>=20
>>=20
>>=20
>>=20
>=20

--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Tue Nov 20 13:08:00 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8451121F8815 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 20 Nov 2012 13:08:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.75
X-Spam-Level: 
X-Spam-Status: No, score=-5.75 tagged_above=-999 required=5 tests=[AWL=3.774, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_HI=-8, SARE_SUB_ENC_UTF8=0.152]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jMXL4bwP7ksG for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 20 Nov 2012 13:08:00 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id C0E3E21F8817 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 20 Nov 2012 13:07:59 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Tav0X-0007xp-V0 for ietf-http-wg-dist@listhub.w3.org; Tue, 20 Nov 2012 21:05:26 +0000
Resent-Date: Tue, 20 Nov 2012 21:05:25 +0000
Resent-Message-Id: <E1Tav0X-0007xp-V0@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <nico@cryptonector.com>) id 1Tav0R-0007vw-Kx for ietf-http-wg@listhub.w3.org; Tue, 20 Nov 2012 21:05:19 +0000
Received: from caiajhbdcahe.dreamhost.com ([208.97.132.74] helo=homiemail-a87.g.dreamhost.com) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <nico@cryptonector.com>) id 1Tav0Q-0004ew-GM for ietf-http-wg@w3.org; Tue, 20 Nov 2012 21:05:19 +0000
Received: from homiemail-a87.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a87.g.dreamhost.com (Postfix) with ESMTP id E893626C073 for <ietf-http-wg@w3.org>; Tue, 20 Nov 2012 13:04:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h= mime-version:in-reply-to:references:date:message-id:subject:from :to:cc:content-type; s=cryptonector.com; bh=vPIPTlWzlDXtwklrLg3/ gKkV0RY=; b=cBqlhXaR0oamcQ+UPDJs73cM+/wJqBB3Aaw/GUFZUBLCUOzQNu54 eXF6EUc3P/2AOkmhl3koo6T8w50m6er9YEhAQyhNO0/WrH79DW5ggl0djE33Jhcr 9Ci7xlMOEk0USeioNs4PGsKveXcWOacT9yfN9kAbG2ogPZWkY1HabNc=
Received: from mail-pb0-f43.google.com (mail-pb0-f43.google.com [209.85.160.43]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a87.g.dreamhost.com (Postfix) with ESMTPSA id CA93326C063 for <ietf-http-wg@w3.org>; Tue, 20 Nov 2012 13:04:56 -0800 (PST)
Received: by mail-pb0-f43.google.com with SMTP id wz17so4313782pbc.2 for <ietf-http-wg@w3.org>; Tue, 20 Nov 2012 13:04:56 -0800 (PST)
MIME-Version: 1.0
Received: by 10.68.143.129 with SMTP id se1mr53174586pbb.67.1353445496175; Tue, 20 Nov 2012 13:04:56 -0800 (PST)
Received: by 10.68.128.234 with HTTP; Tue, 20 Nov 2012 13:04:56 -0800 (PST)
Received: by 10.68.128.234 with HTTP; Tue, 20 Nov 2012 13:04:56 -0800 (PST)
In-Reply-To: <B82B8D1A-4351-4DF4-8549-7694C6865068@free.fr>
References: <CABP7Rbfkvc_gsSESd2mHiLaYO5Ng2g0JZ4VYB2kYQcY2OX+aLg@mail.gmail.com> <D65DBD3C-730B-49AF-846E-3413BD27D37D@free.fr> <50A476D9.8000204@it.aoyama.ac.jp> <B82B8D1A-4351-4DF4-8549-7694C6865068@free.fr>
Date: Tue, 20 Nov 2012 15:04:56 -0600
Message-ID: <CAK3OfOjDeAxHm62O8O+K+Mf=99mbcpDL86OZnms-YPgThuBpFw@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: =?UTF-8?B?RnLDqWTDqXJpYyBLYXlzZXI=?= <f.kayser@free.fr>
Cc: HTTP Working Group <ietf-http-wg@w3.org>, =?UTF-8?Q?Martin_J=2E_D=C3=BCrst?= <duerst@it.aoyama.ac.jp>
Content-Type: multipart/alternative; boundary=047d7b2e4c6605bad204cef39637
Received-SPF: none client-ip=208.97.132.74; envelope-from=nico@cryptonector.com; helo=homiemail-a87.g.dreamhost.com
X-W3C-Hub-Spam-Status: No, score=-0.1
X-W3C-Hub-Spam-Report: DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001
X-W3C-Scan-Sig: maggie.w3.org 1Tav0Q-0004ew-GM 84da39792269ece41a59fcda71920baf
X-Original-To: ietf-http-wg@w3.org
Subject: Re: UTF-8 NFC vs NFD compression, French sample (was: Updated Binary  Optimized Header Encoding Draft)
Archived-At: <http://www.w3.org/mid/CAK3OfOjDeAxHm62O8O+K+Mf=99mbcpDL86OZnms-YPgThuBpFw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15659
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--047d7b2e4c6605bad204cef39637
Content-Type: text/plain; charset=UTF-8

I don't recommend using NFD. My rain for this is simple: the majority of
input modes produce NFC, thus too many libraries were coded to deal
primarily or only with pre-composed sequences -- throwing NFD at then can
cause trouble, so I'd rather avoid it.

(My experience here comes from HFS+'s conversion of file names to NFD on
create.)

Nico
--

--047d7b2e4c6605bad204cef39637
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p>I don&#39;t recommend using NFD. My rain for this is simple: the majorit=
y of input modes produce NFC, thus too many libraries were coded to deal pr=
imarily or only with pre-composed sequences -- throwing NFD at then can cau=
se trouble, so I&#39;d rather avoid it.</p>

<p>(My experience here comes from HFS+&#39;s conversion of file names to NF=
D on create.)</p>
<p>Nico<br>
-- <br>
</p>

--047d7b2e4c6605bad204cef39637--


From ietf-http-wg-request@listhub.w3.org  Tue Nov 20 15:44:28 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F37FA21F8819 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 20 Nov 2012 15:44:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.524
X-Spam-Level: 
X-Spam-Status: No, score=-10.524 tagged_above=-999 required=5 tests=[AWL=0.075, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zzvmTOOG4FrL for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 20 Nov 2012 15:44:27 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 7076C21F8815 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 20 Nov 2012 15:44:27 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TaxSL-0000C7-1n for ietf-http-wg-dist@listhub.w3.org; Tue, 20 Nov 2012 23:42:17 +0000
Resent-Date: Tue, 20 Nov 2012 23:42:17 +0000
Resent-Message-Id: <E1TaxSL-0000C7-1n@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <zhong.j.yu@gmail.com>) id 1TaxSE-0000BS-W9 for ietf-http-wg@listhub.w3.org; Tue, 20 Nov 2012 23:42:11 +0000
Received: from mail-ob0-f171.google.com ([209.85.214.171]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <zhong.j.yu@gmail.com>) id 1TaxSD-00023t-R1 for ietf-http-wg@w3.org; Tue, 20 Nov 2012 23:42:10 +0000
Received: by mail-ob0-f171.google.com with SMTP id dn14so6750992obc.2 for <ietf-http-wg@w3.org>; Tue, 20 Nov 2012 15:41:43 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=rQubTy7d1PRCEtfQQ4a0179O4NhDIinf9R/8YbVuLVI=; b=npZHXhqdyD+B/CRnDnho4D36lflCMs3T4sg6crOKRgRSTAknu7SeyhQ6fcZ1+Na3mU zhF7/qgfpjny+99TDIfp+qwWJNrTJq++q6p3D/J1cYluZWOjfEJ+78WMDP9hXyKr9Sre BjG2vOQdtDdf4FlQb7lzmB7Zx5FjEXbExzBcf8epnpHuR7nFgnHFqlaqbv2HLRDqKJ0y hsxsSmSFyZphM4KOvwx8kkig6c6nmBomHLyW7JzJm6PE3UggwOyy+9bgSkN4Q95W5Et9 IpLCdII17B2dh6tJYiCc7b7svMfMgWNQId4tHCaZXVcjTiyn20dnqpYpXQXu5Wi4wf7S Ga2A==
MIME-Version: 1.0
Received: by 10.60.32.39 with SMTP id f7mr5612919oei.86.1353454903198; Tue, 20 Nov 2012 15:41:43 -0800 (PST)
Received: by 10.76.12.227 with HTTP; Tue, 20 Nov 2012 15:41:43 -0800 (PST)
Date: Tue, 20 Nov 2012 17:41:43 -0600
Message-ID: <CACuKZqFMCrbQQx7tb2eAhx68Sz3dAfiVLaoytGxq9=iHxmMmnw@mail.gmail.com>
From: Zhong Yu <zhong.j.yu@gmail.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=ISO-8859-1
Received-SPF: pass client-ip=209.85.214.171; envelope-from=zhong.j.yu@gmail.com; helo=mail-ob0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.704, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TaxSD-00023t-R1 f8bc1fb67efdf75c86916804008d3b84
X-Original-To: ietf-http-wg@w3.org
Subject: Wording in Connection Management
Archived-At: <http://www.w3.org/mid/CACuKZqFMCrbQQx7tb2eAhx68Sz3dAfiVLaoytGxq9=iHxmMmnw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15660
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-21#section-6.2.4

   A client sending a message body SHOULD monitor the network connection
   for an **error status code** while it is transmitting the request.  If
   the client sees an **error status code**, it SHOULD immediately cease
   transmitting the body and close the connection.

What does "error status code" mean here?

Could it mean http response status code? For example, if the client is
uploading a file, and sees a 403 response, it should abort the
request.

I guess that's not what it means (browsers don't do that); maybe the
wording should be changed to avoid confusion?

Zhong Yu


From ietf-http-wg-request@listhub.w3.org  Wed Nov 21 06:58:02 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 26A9421F8477 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 21 Nov 2012 06:58:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.835
X-Spam-Level: 
X-Spam-Status: No, score=-9.835 tagged_above=-999 required=5 tests=[AWL=-0.038, BAYES_00=-2.599, HELO_EQ_FR=0.35, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_HI=-8, SARE_SUB_ENC_UTF8=0.152]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6Xq4xHGpBOCE for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 21 Nov 2012 06:58:01 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id A138521F8458 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 21 Nov 2012 06:58:01 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TbBiR-00073I-GP for ietf-http-wg-dist@listhub.w3.org; Wed, 21 Nov 2012 14:55:51 +0000
Resent-Date: Wed, 21 Nov 2012 14:55:51 +0000
Resent-Message-Id: <E1TbBiR-00073I-GP@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <f.kayser@free.fr>) id 1TbBiK-00072J-RI for ietf-http-wg@listhub.w3.org; Wed, 21 Nov 2012 14:55:44 +0000
Received: from smtp2-g21.free.fr ([212.27.42.2]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <f.kayser@free.fr>) id 1TbBiD-0005B7-U5 for ietf-http-wg@w3.org; Wed, 21 Nov 2012 14:55:44 +0000
Received: from zimbra71-e12.priv.proxad.net (unknown [172.20.243.221]) by smtp2-g21.free.fr (Postfix) with ESMTP id 9E5CB4B00FF; Wed, 21 Nov 2012 15:55:10 +0100 (CET)
Date: Wed, 21 Nov 2012 15:55:08 +0100 (CET)
From: =?utf-8?B?RnLDqWTDqXJpYw==?= Kayser <f.kayser@free.fr>
To: HTTP Working Group <ietf-http-wg@w3.org>
Cc: Nico Williams <nico@cryptonector.com>,  Martin =?utf-8?Q?J=2E_D=C3=BCrst?= <duerst@it.aoyama.ac.jp>
Message-ID: <1296436146.47352333.1353509708430.JavaMail.root@zimbra71-e12.priv.proxad.net>
In-Reply-To: <CAK3OfOjDeAxHm62O8O+K+Mf=99mbcpDL86OZnms-YPgThuBpFw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Originating-IP: [81.56.127.176]
X-Mailer: Zimbra 7.2.0-GA2598 (ZimbraWebClient - FF3.0 (Mac)/7.2.0-GA2598)
X-Authenticated-User: f.kayser@free.fr
Received-SPF: none client-ip=212.27.42.2; envelope-from=f.kayser@free.fr; helo=smtp2-g21.free.fr
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-3.451, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001
X-W3C-Scan-Sig: lisa.w3.org 1TbBiD-0005B7-U5 5b3ab86c8b5fcc0d1d9015c0eb6237f0
X-Original-To: ietf-http-wg@w3.org
Subject: Re: UTF-8 NFC vs NFD compression, French sample (was: Updated  Binary Optimized Header Encoding Draft)
Archived-At: <http://www.w3.org/mid/1296436146.47352333.1353509708430.JavaMail.root@zimbra71-e12.priv.proxad.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15661
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Effectively, I have noticed some odd behaviour, for instance search of word=
s containing diacritics does not work if the text is in NFD since when type=
d the search string is usually in NFC (tested in many text editors and web =
browsers).

Regards
--=20
Fr=C3=A9d=C3=A9ric Kayser

----- Mail original -----
De: "Nico Williams" <nico@cryptonector.com>
=C3=80: "Fr=C3=A9d=C3=A9ric Kayser" <f.kayser@free.fr>
Cc: "HTTP Working Group" <ietf-http-wg@w3.org>, "Martin J. D=C3=BCrst" <due=
rst@it.aoyama.ac.jp>
Envoy=C3=A9: Mardi 20 Novembre 2012 22:04:56
Objet: Re: UTF-8 NFC vs NFD compression, French sample (was: Updated Binary=
 Optimized Header Encoding Draft)



I don't recommend using NFD. My rain for this is simple: the majority of in=
put modes produce NFC, thus too many libraries were coded to deal primarily=
 or only with pre-composed sequences -- throwing NFD at then can cause trou=
ble, so I'd rather avoid it.=20

(My experience here comes from HFS+'s conversion of file names to NFD on cr=
eate.)=20

Nico=20
--=20


From ietf-http-wg-request@listhub.w3.org  Wed Nov 21 07:21:29 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 098E021F8595 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 21 Nov 2012 07:21:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.885
X-Spam-Level: 
X-Spam-Status: No, score=-5.885 tagged_above=-999 required=5 tests=[AWL=3.639, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_HI=-8, SARE_SUB_ENC_UTF8=0.152]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qyWj7DcqF0Ej for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 21 Nov 2012 07:21:28 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 3A93B21F855E for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 21 Nov 2012 07:21:28 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TbC5i-00040D-Mf for ietf-http-wg-dist@listhub.w3.org; Wed, 21 Nov 2012 15:19:54 +0000
Resent-Date: Wed, 21 Nov 2012 15:19:54 +0000
Resent-Message-Id: <E1TbC5i-00040D-Mf@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <nico@cryptonector.com>) id 1TbC5e-0003zP-GV for ietf-http-wg@listhub.w3.org; Wed, 21 Nov 2012 15:19:50 +0000
Received: from caiajhbdccah.dreamhost.com ([208.97.132.207] helo=homiemail-a71.g.dreamhost.com) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <nico@cryptonector.com>) id 1TbC5Z-0000et-Vy for ietf-http-wg@w3.org; Wed, 21 Nov 2012 15:19:50 +0000
Received: from homiemail-a71.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a71.g.dreamhost.com (Postfix) with ESMTP id 6498242807F for <ietf-http-wg@w3.org>; Wed, 21 Nov 2012 07:19:21 -0800 (PST)
Received: from mail-pb0-f43.google.com (mail-pb0-f43.google.com [209.85.160.43]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a71.g.dreamhost.com (Postfix) with ESMTPSA id ED3BD42808A for <ietf-http-wg@w3.org>; Wed, 21 Nov 2012 07:17:11 -0800 (PST)
Received: by mail-pb0-f43.google.com with SMTP id wz17so4875538pbc.2 for <ietf-http-wg@w3.org>; Wed, 21 Nov 2012 07:17:10 -0800 (PST)
MIME-Version: 1.0
Received: by 10.68.241.231 with SMTP id wl7mr111953pbc.164.1353511029987; Wed, 21 Nov 2012 07:17:09 -0800 (PST)
Received: by 10.68.128.234 with HTTP; Wed, 21 Nov 2012 07:17:09 -0800 (PST)
In-Reply-To: <1296436146.47352333.1353509708430.JavaMail.root@zimbra71-e12.priv.proxad.net>
References: <CAK3OfOjDeAxHm62O8O+K+Mf=99mbcpDL86OZnms-YPgThuBpFw@mail.gmail.com> <1296436146.47352333.1353509708430.JavaMail.root@zimbra71-e12.priv.proxad.net>
Date: Wed, 21 Nov 2012 09:17:09 -0600
Message-ID: <CAK3OfOi5Gi76DcMZa4j1VWsZSjps8P5gGca0_uzDj+A8sy04kg@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: =?UTF-8?B?RnLDqWTDqXJpYyBLYXlzZXI=?= <f.kayser@free.fr>
Cc: HTTP Working Group <ietf-http-wg@w3.org>, Nico Williams <nico@cryptonector.com>,  =?UTF-8?Q?Martin_J=2E_D=C3=BCrst?= <duerst@it.aoyama.ac.jp>
Content-Type: multipart/alternative; boundary=047d7b2e118f2458ef04cf02d826
Received-SPF: none client-ip=208.97.132.207; envelope-from=nico@cryptonector.com; helo=homiemail-a71.g.dreamhost.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-3.501, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001
X-W3C-Scan-Sig: maggie.w3.org 1TbC5Z-0000et-Vy 1b1276b09c2a7c7ae674bc2dfffc22e9
X-Original-To: ietf-http-wg@w3.org
Subject: Re: UTF-8 NFC vs NFD compression, French sample (was: Updated Binary  Optimized Header Encoding Draft)
Archived-At: <http://www.w3.org/mid/CAK3OfOi5Gi76DcMZa4j1VWsZSjps8P5gGca0_uzDj+A8sy04kg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15662
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--047d7b2e118f2458ef04cf02d826
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Wednesday, November 21, 2012, Fr=C3=A9d=C3=A9ric Kayser wrote:

> Effectively, I have noticed some odd behaviour, for instance search of
> words containing diacritics does not work if the text is in NFD since whe=
n
> typed the search string is usually in NFC (tested in many text editors an=
d
> web browsers).


Exactly.  Now, we are talking about intra-protocol elements, but even so,
I'd rather focus on alternative ways to compress than this one.

--047d7b2e118f2458ef04cf02d826
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<br><br>On Wednesday, November 21, 2012, Fr=C3=A9d=C3=A9ric Kayser  wrote:<=
br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left=
:1px #ccc solid;padding-left:1ex">Effectively, I have noticed some odd beha=
viour, for instance search of words containing diacritics does not work if =
the text is in NFD since when typed the search string is usually in NFC (te=
sted in many text editors and web browsers).</blockquote>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"></blockquote><div>=C2=A0</div><div>Exactly. =
=C2=A0Now, we are talking about intra-protocol elements, but even so, I&#39=
;d rather focus on alternative ways to compress than this one.<span></span>=
</div>

--047d7b2e118f2458ef04cf02d826--


From ietf-http-wg-request@listhub.w3.org  Sun Nov 25 22:02:23 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BDD9221F842A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 25 Nov 2012 22:02:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.11
X-Spam-Level: 
X-Spam-Status: No, score=-9.11 tagged_above=-999 required=5 tests=[BAYES_05=-1.11, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OGqvpIHApklq for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 25 Nov 2012 22:02:18 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 9AF4621F862E for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 25 Nov 2012 22:02:03 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Tcriq-0003aw-Ba for ietf-http-wg-dist@listhub.w3.org; Mon, 26 Nov 2012 05:59:12 +0000
Resent-Date: Mon, 26 Nov 2012 05:59:12 +0000
Resent-Message-Id: <E1Tcriq-0003aw-Ba@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1Tcrid-0003YD-2O for ietf-http-wg@listhub.w3.org; Mon, 26 Nov 2012 05:58:59 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1Tcrib-00038z-J4 for ietf-http-wg@w3.org; Mon, 26 Nov 2012 05:58:58 +0000
Received: from [192.168.1.75] (unknown [118.209.244.234]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 0D903509B5 for <ietf-http-wg@w3.org>; Mon, 26 Nov 2012 00:58:35 -0500 (EST)
From: Mark Nottingham <mnot@mnot.net>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
Message-Id: <4AC2AE4C-DCA9-4E05-9442-7D96C7C6AB9F@mnot.net>
Date: Mon, 26 Nov 2012 16:58:46 +1100
To: HTTP Working Group <ietf-http-wg@w3.org>
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-3.2
X-W3C-Hub-Spam-Report: AWL=-3.161, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1Tcrib-00038z-J4 41b14d6093c40fbff9767379b795bf3e
X-Original-To: ietf-http-wg@w3.org
Subject: WGLC issue: 'no-transform'
Archived-At: <http://www.w3.org/mid/4AC2AE4C-DCA9-4E05-9442-7D96C7C6AB9F@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15664
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

p1 says:

> A proxy must not modify or add any of the following fields in a =
message that contains the no-transform cache-control directive:
>=20
> 	=95 Content-Encoding (Section 3.1.2.2 of [Part2])
> 	=95 Content-Range (Section 5.2 of [Part5])
> 	=95 Content-Type (Section 3.1.1.5 of [Part2])
> A transforming proxy may modify or add these fields to a message that =
does not include no-transform, but if it does so, it must add a Warning =
214 (Transformation applied) if one does not already appear in the =
message (see Section 7.5 of [Part6]).

p6 says:=20

> 7.2.2.9 no-transform
>=20
> The "no-transform" response directive indicates that an intermediary =
(regardless of whether it implements a cache) must not change the =
Content-Encoding, Content-Range orContent-Type response header fields, =
nor the response representation.

2616 was a bit more wordy:

> 14.9.5 No-Transform Directive
>=20
>    no-transform
>       Implementors of intermediate caches (proxies) have found it =
useful
>       to convert the media type of certain entity bodies. A non-
>       transparent proxy might, for example, convert between image
>       formats in order to save cache space or to reduce the amount of
>       traffic on a slow link.
>=20
>       Serious operational problems occur, however, when these
>       transformations are applied to entity bodies intended for =
certain
>       kinds of applications. For example, applications for medical
>       imaging, scientific data analysis and those using end-to-end
>       authentication, all depend on receiving an entity body that is =
bit
>       for bit identical to the original entity-body.
>=20
>       Therefore, if a message includes the no-transform directive, an
>       intermediate cache or proxy MUST NOT change those headers that =
are
>       listed in section 13.5.2 as being subject to the no-transform
>       directive. This implies that the cache or proxy MUST NOT change
>       any aspect of the entity-body that is specified by these =
headers,
>       including the value of the entity-body itself.


(the text currently in p1 closely corresponds to that in 2616's 13.5.2).

The issue here is that the intent in 2616 is clear -- the body shouldn't =
be modified if no-transform is present -- but since we split it up, a =
reader of p1 doesn't have any indication of this unless they chase up in =
p6 (note there isn't any reference, beyond the unrelated one to the =
Warning header).

I'd suggest we need p1 to explicitly say the body can't be changed, as =
p6 does.

While we're at it, changing "A proxy must not modify or add any of the =
following fields..." to "A proxy (transparent or non-transparent) must =
not modify or add any of the following fields " would make what's going =
on a lot clearer.

--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Sun Nov 25 22:02:24 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 06FCD21F842A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 25 Nov 2012 22:02:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.554
X-Spam-Level: 
X-Spam-Status: No, score=-8.554 tagged_above=-999 required=5 tests=[AWL=-0.555, BAYES_50=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GMghEyyInqp2 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 25 Nov 2012 22:02:18 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 9BE7C21F8661 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 25 Nov 2012 22:02:03 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Tcrij-0003ZG-3h for ietf-http-wg-dist@listhub.w3.org; Mon, 26 Nov 2012 05:59:05 +0000
Resent-Date: Mon, 26 Nov 2012 05:59:05 +0000
Resent-Message-Id: <E1Tcrij-0003ZG-3h@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1Tcrib-0003Xu-VB for ietf-http-wg@listhub.w3.org; Mon, 26 Nov 2012 05:58:57 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1Tcria-00038x-6F for ietf-http-wg@w3.org; Mon, 26 Nov 2012 05:58:57 +0000
Received: from [192.168.1.75] (unknown [118.209.244.234]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 5D770509B6 for <ietf-http-wg@w3.org>; Mon, 26 Nov 2012 00:58:32 -0500 (EST)
From: Mark Nottingham <mnot@mnot.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Message-Id: <AABC4386-E9F3-4DA8-9367-BECA50D09D03@mnot.net>
Date: Mon, 26 Nov 2012 16:58:44 +1100
To: HTTP Working Group <ietf-http-wg@w3.org>
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-3.2
X-W3C-Hub-Spam-Report: AWL=-3.206, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1Tcria-00038x-6F 22cc52b16ab701b708b08511cbdeba76
X-Original-To: ietf-http-wg@w3.org
Subject: WGLC review of p2 -- Editorial Issues
Archived-At: <http://www.w3.org/mid/AABC4386-E9F3-4DA8-9367-BECA50D09D03@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15663
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

I think all of this feedback can be dealt with editorially; if anyone =
(including the editors) feels otherwise or objects to the proposed =
resolutions, please say so.

Much of it is regarding the use of SHOULD-level requirements in the =
specification.


* Several of the section headers should be pluralised; e.g., "2. =
Resource" -> "2. Resources"; "3. Representation" -> "3. =
Representations"; "3.1.1 Data Type" -> "3.1.1 Data Types"  (most =
sections are pluralised, and having a few that aren't is jarring)

* 2. Resource - "Resource owners SHOULD NOT include request semantics =
within a URI..."  This is a new requirement; I personally think it's =
justified for interop, but wanted to make sure everyone was aware.

* 3.1.1.1 Media Types - references to RFC4288 needs to be updated to =
draft-ietf-appsawg-media-type-regs.

* 3.1.x - we seem to have a variety of language about respecting the =
registries; use of non-registered media types is "discouraged", while =
"Applications SHOULD limit their use of character encodings to those =
defined within the IANA registry." No such advice is given about =
Content-Types, while content-codings "SHOULD be registered." Finally, we =
only note that language tags have a name space "administered by IANA."=20=


I'm not suggesting we have consistency for its own sake here, but it =
does seem like these are pretty wildly divergent, and I can't see why.

* 3.1.1.3 Canonicalization and Text Defaults -- "... a bare CR or LF =
MUST NOT be substituted for CRLF within any of the HTTP control =
structures (such as header fields and multipart boundaries)." At least =
for header fields, this seems to contradict common practice and the =
advice for Message Parsing Robustness in p1. This text was also in 2616.

* 3.1.1.4 Multipart Types -- "In all other respects, an HTTP user agent =
SHOULD follow the same or similar behaviour as a MIME user agent would =
upon receipt of a multipart type."  This is a meaningless SHOULD; =
suggest "ought to."

* 3.1.1.5 Content Type -- "... defines both the data format and how that =
data SHOULD be processed by the recipient..."  Is this really a =
conformance requirement? Suggest "ought to."

* 3.1.1.5 Content Type -- "A server SHOULD include a Content-Type header =
field in a message containing a payload body... unless the intended =
media type is unknown to the sender."   Have we settled on "SHOULD... =
unless" or "MUST... unless" for this type of construct? I don't want to =
provoke a religious war, just want a consistent spec.=20

* 3.1.2.2 Content-Encoding -- The second-to-last paragraph illustrates a =
situation where content negotiation is taking place; it would be good to =
mention the need to use Vary as well.

* 3.1.2.2 Content-Encoding -- last paragraph: "The server SHOULD respond =
with a status code of 415 (Unsupported Media Type)." Here and many other =
places, we use SHOULD to denote that in normal processing, that status =
code gets used, but that another status code might pre-empt it (e.g., =
401).  It would be nice if this were spelled out somewhere and referred =
to throughout, to make the conditions on the SHOULD unambiguous.=20

* 3.4.1 Proactive Negotiation -- this revision brings new terms, =
"proactive negotiation" and "reactive negotiation." This hasn't been =
discussed on-list, so I wanted to make sure people were aware. Also, it =
would be nice to refer to the old names (server-driven and =
client-driven) to help people map from the old spec.

* 3.4.1 Proactive Negotiation -- The note about User-Agent based =
negotiation implies that it's fragile because new clients might not be =
recognised. This is only part of the story; it's also fragile because =
the mapping of capabilities to the UA string is inexact at best. =
Finally, "clients" should be "user-agents", as other clients don't =
insert UA.

* 3.4.2 Reactive Negotiation -- The sentence beginning with "In =
addition, this specification does not define any mechanism..." would =
read better if it were moved to the end of the last paragraph and =
adjusted accordingly.

* 4. Product Tokens -- This section is quite awkward here. What about =
moving it as a subsection of the introduction? Or, moving it to the =
first place it's used (as has been done with several other constructs)?

* 5.1 Request Methods overview -- Same problem as in 3.1.2.2 WRT status =
codes and SHOULD (two occurrences)

* 5.2.1 Safe Methods -- "The GET, HEAD, OPTIONS and TRACE request =
methods are defined to be safe."  --> "Of the request methods in this =
specification, the GET, HEAD, OPTIONS and TRACE methods are defined to =
be safe."

* 5.2.1 Safe Methods -- "A user agent SHOULD distinguish between safe =
and unsafe methods when presenting potential actions to a user..."   =
This is a requirement on user interaction -- is it really a conformance =
requirement?

* 5.3.1 GET -- "... it is the produced data which shall be returned..." =
-- avoid RFC2119 language; suggest "will"

* 5.3.3 POST -- the list of functions could be read as exclusive; =
suggest clarifying that these are just examples.

* 5.3.3 POST -- "If a resource has been created on the origin server..." =
-> "If a resource (or more than one resources) has been created on the =
origin server..."

* 5.3.4 PUT -- "Unrecognized header fields SHOULD be ignored..." --> =
"... SHOULD be ignored by the server..."

* 5.3.5 DELETE -- The first paragraph is awkward; it seems like a =
collection of random statements.

* 5.3.6 CONNECT -- The first paragraph is awkward; it should come out =
and say that it's intended for proxies, not origin servers.

* 6.5 Context -- the title is quite curt; suggest "Request Context"

* 6.5.1 =46rom -- "The 'From' header field, if given, SHOULD contain an =
Internet e-mail address..." Why just SHOULD?

* 6.5.1 =46rom -- "In particular, robot agents SHOUDL include this =
header field..."  AIUI this isn't widely adhered to; should we downgrade =
to prose?

* 6.5.1 =46rom -- "The client SHOULD NOT send the =46rom header field =
without the user's approval..."  Does this need to be a requirement?

* 6.5.3 User-Agent -- "User agents SHOULD include this field with =
requests."  Is this really a conformance requirement?

* 7 Response Status Codes -- "In such cases, user agents SHOULD present =
to the user the representation enclosed with the response..."  Again, a =
UI requirement; downgrade to prose?

* 7.2.1 100 Continue -- "The client SHOULD continue with its request."  =
SHOULD -> ought to.

* 7.2.1 100 Continue -- "The client SHOULD continue by sending the =
remainder of the request" --> prose

* 7.2.2 101 Switching Protocols -- "The protocol SHOULD be switched only =
when it is advantageous to do so." --> prose

* 7.3.2 201 Created -- "If the action cannot be carried out immediately, =
the server SHOULD respond with 202 (Accepted) response instead."  --> =
prose

* 7.4.1 - 7.6.6 -- Many many SHOULDs that ought to be reformulated as =
prose.

* 7.5.6 406 Not Acceptable -- "If the response could be unacceptable, a =
user agent SHOULD temporarily stop receipt of more data and query the =
user for a decision on further actions." This is a UI constraint, and =
even without that consideration, making it a requirement seems quite =
strong.

8.1.1.2 Date -- "Clients can use the Date header field as well; in =
order..." --> "Clients can use the Date header field in requests as =
well; in order..."

* 8.1.2 Location -- "For 3xx (Redirection) responses, the location =
SHOULD indicate the server's preferred URI for automatic redirection to =
the resource."  --> prose

* 8.1.2 Location -- Should mention that new status codes MAY define =
semantics for Location.

* 8.1.2 Retry-After -- Should mention that new status codes MAY nominate =
the use of Retry-After.

* 8.2.1 Vary -- would benefit greatly from an example of two responses =
that a resource uses negotiation on (showing with and without gzip, for =
example).

* 8.2.1 Vary -- "The field-names given are not limited..." "given" is =
ambiguous; suggest "listed".

* 8.4 Informative -- The section title is quite terse; suggest =
"Informative Header Fields"

* 9.1.2 Considerations for new methods -- add: "If it is possible to =
make a request using a new method conditional [ref to p4], this ought to =
be documented by that method. Likewise, if partial request semantics =
[ref to p5] are meaningful for a new method, it ought to document this =
too."

* 10.1 Transfer of Sensitive Information -- "Therefore, applications =
SHOULD supply as much control over this information as possible..."  Is =
this really a conformance requirement?

* 10.1 Transfer of Sensitive Information -- "Four header fields are =
worth special mention in this context..." User-Agent needs to be =
included here.

* 10.2 Encoding Sensitive Information in URIs -- "...it is strongly =
recommended that the user be able to select..."  Recommended is an =
RFC2119 keyword; suggest "advised."

* 10.2 Encoding Sensitive Information in URIs -- "Clients SHOULD NOT =
include a referer header field in a (non-secure) HTTP request if the =
referring page was transferred with a secure protocol."  This is an odd =
place to bury this; the section title isn't applicable. Suggest moving =
it to the section defining the Referer header.

* 10.2 Encoding Sensitive Information in URIs -- "Clients SHOULD NOT =
include a referer header field in a (non-secure) HTTP request if the =
referring page was transferred with a secure protocol."  Why SHOULD NOT? =
I.e., what are the cases where they SHOULD? Ought it be a MUST?

* 10.2 Encoding Sensitive Information in URIs -- "Authors of services =
SHOULD NOT use GET-based forms for the submission of sensitive data..." =
Is this really a conformance requirement?

* 10.5 Privacy Issues Connect to Accept Header Fields -- "General =
purpose user agents which provide a high degree of header field =
configurability SHOULD warn users..."  Is this really a conformance =
requirement?

* Appendix A. Differences between HTTP and MIME -- contains several =
SHOULDs that don't describe conditions when it's OK to violate, and =
either aren't really conformance requirements, or seem quite important =
for interop (thereby arguing for MUST).

* Appendix C. Changes from RFC2616 -- These notes are quite terse, =
sometimes becoming difficult to read. Suggest rewriting to normalise =
tense and point of view.


--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Sun Nov 25 23:17:39 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2D38A21F85C5 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 25 Nov 2012 23:17:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8zxdpnqni+ML for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 25 Nov 2012 23:17:38 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 86A4321F853C for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 25 Nov 2012 23:17:38 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Tcsur-0005OF-7W for ietf-http-wg-dist@listhub.w3.org; Mon, 26 Nov 2012 07:15:41 +0000
Resent-Date: Mon, 26 Nov 2012 07:15:41 +0000
Resent-Message-Id: <E1Tcsur-0005OF-7W@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1Tcsul-0005N0-TJ for ietf-http-wg@listhub.w3.org; Mon, 26 Nov 2012 07:15:35 +0000
Received: from 1wt.eu ([62.212.114.60]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1Tcsuk-00060d-EN for ietf-http-wg@w3.org; Mon, 26 Nov 2012 07:15:35 +0000
Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id qAQ7F7KY022503; Mon, 26 Nov 2012 08:15:07 +0100
Date: Mon, 26 Nov 2012 08:15:06 +0100
From: Willy Tarreau <w@1wt.eu>
To: Mark Nottingham <mnot@mnot.net>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Message-ID: <20121126071506.GA22492@1wt.eu>
References: <4AC2AE4C-DCA9-4E05-9442-7D96C7C6AB9F@mnot.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4AC2AE4C-DCA9-4E05-9442-7D96C7C6AB9F@mnot.net>
User-Agent: Mutt/1.4.2.3i
Received-SPF: pass client-ip=62.212.114.60; envelope-from=w@1wt.eu; helo=1wt.eu
X-W3C-Hub-Spam-Status: No, score=-4.2
X-W3C-Hub-Spam-Report: AWL=-1.926, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.368, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1Tcsuk-00060d-EN 1800012d85b4f59899539a29cea27df1
X-Original-To: ietf-http-wg@w3.org
Subject: Re: WGLC issue: 'no-transform'
Archived-At: <http://www.w3.org/mid/20121126071506.GA22492@1wt.eu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15665
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Mon, Nov 26, 2012 at 04:58:46PM +1100, Mark Nottingham wrote:
> p1 says:
> 
> > A proxy must not modify or add any of the following fields in a message that contains the no-transform cache-control directive:
> > 
> > 	? Content-Encoding (Section 3.1.2.2 of [Part2])
> > 	? Content-Range (Section 5.2 of [Part5])
> > 	? Content-Type (Section 3.1.1.5 of [Part2])
> > A transforming proxy may modify or add these fields to a message that does not include no-transform, but if it does so, it must add a Warning 214 (Transformation applied) if one does not already appear in the message (see Section 7.5 of [Part6]).
> 
> p6 says: 
> 
> > 7.2.2.9 no-transform
> > 
> > The "no-transform" response directive indicates that an intermediary (regardless of whether it implements a cache) must not change the Content-Encoding, Content-Range orContent-Type response header fields, nor the response representation.
> 
> 2616 was a bit more wordy:
> 
> > 14.9.5 No-Transform Directive
> > 
> >    no-transform
> >       Implementors of intermediate caches (proxies) have found it useful
> >       to convert the media type of certain entity bodies. A non-
> >       transparent proxy might, for example, convert between image
> >       formats in order to save cache space or to reduce the amount of
> >       traffic on a slow link.
> > 
> >       Serious operational problems occur, however, when these
> >       transformations are applied to entity bodies intended for certain
> >       kinds of applications. For example, applications for medical
> >       imaging, scientific data analysis and those using end-to-end
> >       authentication, all depend on receiving an entity body that is bit
> >       for bit identical to the original entity-body.
> > 
> >       Therefore, if a message includes the no-transform directive, an
> >       intermediate cache or proxy MUST NOT change those headers that are
> >       listed in section 13.5.2 as being subject to the no-transform
> >       directive. This implies that the cache or proxy MUST NOT change
> >       any aspect of the entity-body that is specified by these headers,
> >       including the value of the entity-body itself.
> 
> 
> (the text currently in p1 closely corresponds to that in 2616's 13.5.2).
> 
> The issue here is that the intent in 2616 is clear -- the body shouldn't be modified if no-transform is present -- but since we split it up, a reader of p1 doesn't have any indication of this unless they chase up in p6 (note there isn't any reference, beyond the unrelated one to the Warning header).
> 
> I'd suggest we need p1 to explicitly say the body can't be changed, as p6 does.

I agree. Also, I think we should take the intent from 2616 which clearly
explains *why* proxies must absolutely respect this rule. I have already
seen some proxies recompress whatever they could without any consideration
for the importance of original data, so having this would be really nice.

> While we're at it, changing "A proxy must not modify or add any of the following fields..." to "A proxy (transparent or non-transparent) must not modify or add any of the following fields " would make what's going on a lot clearer.

+1 for me too.

Willy



From ietf-http-wg-request@listhub.w3.org  Sun Nov 25 23:37:26 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AA0E421F869E for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 25 Nov 2012 23:37:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vUkfXuz2yLVO for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 25 Nov 2012 23:37:26 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 29C2621F8668 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 25 Nov 2012 23:37:26 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TctER-0005Na-S1 for ietf-http-wg-dist@listhub.w3.org; Mon, 26 Nov 2012 07:35:55 +0000
Resent-Date: Mon, 26 Nov 2012 07:35:55 +0000
Resent-Message-Id: <E1TctER-0005Na-S1@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TctEM-0005Mr-RW for ietf-http-wg@listhub.w3.org; Mon, 26 Nov 2012 07:35:50 +0000
Received: from 1wt.eu ([62.212.114.60]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TctEL-0006gp-G2 for ietf-http-wg@w3.org; Mon, 26 Nov 2012 07:35:50 +0000
Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id qAQ7ZQFG022566 for ietf-http-wg@w3.org; Mon, 26 Nov 2012 08:35:26 +0100
Date: Mon, 26 Nov 2012 08:35:26 +0100
From: Willy Tarreau <w@1wt.eu>
To: HTTP Working Group <ietf-http-wg@w3.org>
Message-ID: <20121126073526.GB22492@1wt.eu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4.2.3i
Received-SPF: pass client-ip=62.212.114.60; envelope-from=w@1wt.eu; helo=1wt.eu
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: AWL=-1.852, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.368, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TctEL-0006gp-G2 a942240bba1437f834c4b037d94d4ca7
X-Original-To: ietf-http-wg@w3.org
Subject: Message length and caches
Archived-At: <http://www.w3.org/mid/20121126073526.GB22492@1wt.eu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15666
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Hi,

When there is no explicit body length in a message, it is terminated by
closing the connection. As we all know, this causes some ambiguity for
the client because it doesn't know whether a response body is complete
or was truncated by anything along the path, including timeouts. Thus
I'm wondering if some caches make a difference between such responses
or not (eg: a cache could decide not to cache objects terminated this
way).

The reason is that we recently implemented support for gzip compression
in haproxy and I preferred not to add an explicit response end to
messages which did not have one for the reason above. This results in
not compressing such responses at all (since we would not emit the
trailing gzip header with crc, making all responses appear as truncated).

Do some people think that this practice is paranoid ? Maybe after all
we could compress and chunk responses and make the client be certain
that the message is complete while we were not. It just makes me feel
a bit like lying to the client.

Depending on common practices and opinion, I think that we could add
a small paragraph in -p1 about this (eg: intermediaries should not
re-chunk a close-delimited response).

Regards,
Willy



From ietf-http-wg-request@listhub.w3.org  Sun Nov 25 23:53:42 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 36B1721F867B for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 25 Nov 2012 23:53:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.598
X-Spam-Level: 
X-Spam-Status: No, score=-10.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kXTSs6WHEagN for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 25 Nov 2012 23:53:41 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 82C2E21F8671 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 25 Nov 2012 23:53:41 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TctUc-0003H0-Qg for ietf-http-wg-dist@listhub.w3.org; Mon, 26 Nov 2012 07:52:38 +0000
Resent-Date: Mon, 26 Nov 2012 07:52:38 +0000
Resent-Message-Id: <E1TctUc-0003H0-Qg@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1TctUY-0003GK-AV for ietf-http-wg@listhub.w3.org; Mon, 26 Nov 2012 07:52:34 +0000
Received: from mail-la0-f43.google.com ([209.85.215.43]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1TctUT-0003rm-6w for ietf-http-wg@w3.org; Mon, 26 Nov 2012 07:52:32 +0000
Received: by mail-la0-f43.google.com with SMTP id z14so8373415lag.2 for <ietf-http-wg@w3.org>; Sun, 25 Nov 2012 23:52:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=0fMjp7YopRt0FFgObHOTdD0i/T7HOyPr1iHF1PWWCWU=; b=GRSAvxKSnJ/3ez4MnLsSTv4YAxa4sqiG4NnQPt4FRjUsU4BzSBwrBTR5EY9X+N1NvY xB9j0IE2Wioy30k8eRxsK0QCibMcRxkqDUj4AaHj97D7zYpUuuI5pntb/wmSZO55NHk6 k3pfbAqmkC+EDOU4yCzg/PDLo0bdmhf3ZSRRenhoRHBTSzx5O1kqzGN/Nf1m1oR0FqZ6 2easQKJW1YuezJI5eorHeAmWNJeDQZ8W++YYqUSMOsPQqUyPPuNy2bs2u5SCo5R1mjBn tH7W2gi756gE2hMGyPGMErq2IUklwIGxR10PvjBLFRVvTOuDg8qU39GNXOnC/FnfeqHG eIZA==
MIME-Version: 1.0
Received: by 10.152.148.40 with SMTP id tp8mr10149162lab.30.1353916322550; Sun, 25 Nov 2012 23:52:02 -0800 (PST)
Received: by 10.112.128.200 with HTTP; Sun, 25 Nov 2012 23:52:02 -0800 (PST)
In-Reply-To: <20121126073526.GB22492@1wt.eu>
References: <20121126073526.GB22492@1wt.eu>
Date: Sun, 25 Nov 2012 23:52:02 -0800
Message-ID: <CAP+FsNcundGs5cwPpa4uParuqrA3SaDVewEb-eZHfBFbzWbEVA@mail.gmail.com>
From: Roberto Peon <grmocg@gmail.com>
To: Willy Tarreau <w@1wt.eu>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=e89a8f23466576123504cf61359e
Received-SPF: pass client-ip=209.85.215.43; envelope-from=grmocg@gmail.com; helo=mail-la0-f43.google.com
X-W3C-Hub-Spam-Status: No, score=-4.5
X-W3C-Hub-Spam-Report: AWL=-1.760, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TctUT-0003rm-6w bf81e20626778af4d4262c824d9a29bb
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Message length and caches
Archived-At: <http://www.w3.org/mid/CAP+FsNcundGs5cwPpa4uParuqrA3SaDVewEb-eZHfBFbzWbEVA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15667
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--e89a8f23466576123504cf61359e
Content-Type: text/plain; charset=ISO-8859-1

I'm guessing you mean for non-chunked transfers.

imho frame-by-connection-closed should be avoided whenever possible. It is
evil, evil, evil, and causes many corrupted downloads.
I don't think it is particularly paranoid to ignore such responses in a
cache, should they show up, and believe that not re-chunking is
reasonable... however, it gets more interesting in an HTTP/2.0 world (where
we'd instead probably have to indicate that the other side is doing
something stupid).
-=R


On Sun, Nov 25, 2012 at 11:35 PM, Willy Tarreau <w@1wt.eu> wrote:

> Hi,
>
> When there is no explicit body length in a message, it is terminated by
> closing the connection. As we all know, this causes some ambiguity for
> the client because it doesn't know whether a response body is complete
> or was truncated by anything along the path, including timeouts. Thus
> I'm wondering if some caches make a difference between such responses
> or not (eg: a cache could decide not to cache objects terminated this
> way).
>
> The reason is that we recently implemented support for gzip compression
> in haproxy and I preferred not to add an explicit response end to
> messages which did not have one for the reason above. This results in
> not compressing such responses at all (since we would not emit the
> trailing gzip header with crc, making all responses appear as truncated).
>
> Do some people think that this practice is paranoid ? Maybe after all
> we could compress and chunk responses and make the client be certain
> that the message is complete while we were not. It just makes me feel
> a bit like lying to the client.
>
> Depending on common practices and opinion, I think that we could add
> a small paragraph in -p1 about this (eg: intermediaries should not
> re-chunk a close-delimited response).
>
> Regards,
> Willy
>
>
>

--e89a8f23466576123504cf61359e
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I&#39;m guessing you mean for non-chunked transfers.<div><br></div><div>imh=
o frame-by-connection-closed should be avoided whenever possible. It is evi=
l, evil, evil, and causes many corrupted downloads.</div><div>I don&#39;t t=
hink it is particularly paranoid to ignore such responses in a cache, shoul=
d they show up, and believe that not re-chunking is reasonable... however, =
it gets more interesting in an HTTP/2.0 world (where we&#39;d instead proba=
bly have to indicate that the other side is doing something stupid).<br>
<div>-=3DR</div></div><div class=3D"gmail_extra"><br><br><div class=3D"gmai=
l_quote">On Sun, Nov 25, 2012 at 11:35 PM, Willy Tarreau <span dir=3D"ltr">=
&lt;<a href=3D"mailto:w@1wt.eu" target=3D"_blank">w@1wt.eu</a>&gt;</span> w=
rote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Hi,<br>
<br>
When there is no explicit body length in a message, it is terminated by<br>
closing the connection. As we all know, this causes some ambiguity for<br>
the client because it doesn&#39;t know whether a response body is complete<=
br>
or was truncated by anything along the path, including timeouts. Thus<br>
I&#39;m wondering if some caches make a difference between such responses<b=
r>
or not (eg: a cache could decide not to cache objects terminated this<br>
way).<br>
<br>
The reason is that we recently implemented support for gzip compression<br>
in haproxy and I preferred not to add an explicit response end to<br>
messages which did not have one for the reason above. This results in<br>
not compressing such responses at all (since we would not emit the<br>
trailing gzip header with crc, making all responses appear as truncated).<b=
r>
<br>
Do some people think that this practice is paranoid ? Maybe after all<br>
we could compress and chunk responses and make the client be certain<br>
that the message is complete while we were not. It just makes me feel<br>
a bit like lying to the client.<br>
<br>
Depending on common practices and opinion, I think that we could add<br>
a small paragraph in -p1 about this (eg: intermediaries should not<br>
re-chunk a close-delimited response).<br>
<br>
Regards,<br>
Willy<br>
<br>
<br>
</blockquote></div><br></div>

--e89a8f23466576123504cf61359e--


From ietf-http-wg-request@listhub.w3.org  Mon Nov 26 00:11:52 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0522D21F8692 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 00:11:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KkGZ+ds6LVb0 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 00:11:51 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 7D1A621F867F for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 26 Nov 2012 00:11:50 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Tctlx-0004j3-F0 for ietf-http-wg-dist@listhub.w3.org; Mon, 26 Nov 2012 08:10:33 +0000
Resent-Date: Mon, 26 Nov 2012 08:10:33 +0000
Resent-Message-Id: <E1Tctlx-0004j3-F0@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <adrien@qbik.com>) id 1Tctlr-0004gB-2o for ietf-http-wg@listhub.w3.org; Mon, 26 Nov 2012 08:10:27 +0000
Received: from smtp.qbik.com ([210.55.214.35]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <adrien@qbik.com>) id 1Tctlp-0007tK-Ad for ietf-http-wg@w3.org; Mon, 26 Nov 2012 08:10:27 +0000
Received: From [192.168.0.10] (unverified [192.168.0.10]) by SMTP Server [192.168.0.1] (WinGate SMTP Receiver v7.2.8 (Build 3469)) with SMTP id <0019373074@smtp.qbik.com>; Mon, 26 Nov 2012 21:10:35 +1300
From: "Adrien W. de Croy" <adrien@qbik.com>
To: "Willy Tarreau" <w@1wt.eu>, "HTTP Working Group" <ietf-http-wg@w3.org>
Date: Mon, 26 Nov 2012 08:09:55 +0000
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; format=flowed; charset=utf-8
In-Reply-To: <20121126073526.GB22492@1wt.eu>
Message-Id: <em2d22585a-756e-42d0-9b16-fdd23aaba418@bombed>
Mime-Version: 1.0
Reply-To: "Adrien W. de Croy" <adrien@qbik.com>
User-Agent: eM_Client/4.0.15145.0
Received-SPF: pass client-ip=210.55.214.35; envelope-from=adrien@qbik.com; helo=smtp.qbik.com
X-W3C-Hub-Spam-Status: No, score=-4.6
X-W3C-Hub-Spam-Report: AWL=-2.315, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.368, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1Tctlp-0007tK-Ad 27eb328efcea25563d25f214d93938bd
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Message length and caches
Archived-At: <http://www.w3.org/mid/em2d22585a-756e-42d0-9b16-fdd23aaba418@bombed>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15668
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Hi Willy

it actually gets worse than this.

Some intermediaries chunk emitted data if the server indicated it would=20
close and sends no C-L (so that the intermediary can keep the client=20
connection alive).

Since that intermediary can't tell the difference between an abortive=20
and normal close, it will send a 0 chunk on close.

So the receiver of that message will never know what happened.

So I agree with Roberto about use of TCP close as a protocol signal,=20
but we're stuck with it.

Adrien


------ Original Message ------
From: "Willy Tarreau" <w@1wt.eu>
To: "HTTP Working Group" <ietf-http-wg@w3.org>
Sent: 26/11/2012 8:35:26 p.m.
Subject: Message length and caches
>Hi,
>
>When there is no explicit body length in a message, it is terminated by
>closing the connection. As we all know, this causes some ambiguity for
>the client because it doesn't know whether a response body is complete
>or was truncated by anything along the path, including timeouts. Thus
>I'm wondering if some caches make a difference between such responses
>or not (eg: a cache could decide not to cache objects terminated this
>way).
>
>The reason is that we recently implemented support for gzip compression
>in haproxy and I preferred not to add an explicit response end to
>messages which did not have one for the reason above. This results in
>not compressing such responses at all (since we would not emit the
>trailing gzip header with crc, making all responses appear as truncated).
>
>Do some people think that this practice is paranoid ? Maybe after all
>we could compress and chunk responses and make the client be certain
>that the message is complete while we were not. It just makes me feel
>a bit like lying to the client.
>
>Depending on common practices and opinion, I think that we could add
>a small paragraph in -p1 about this (eg: intermediaries should not
>re-chunk a close-delimited response).
>
>Regards,
>Willy
>
>
>
>



From ietf-http-wg-request@listhub.w3.org  Mon Nov 26 02:26:01 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6E03321F8542 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 02:26:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.598
X-Spam-Level: 
X-Spam-Status: No, score=-10.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XW1B3g5TCRNq for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 02:26:00 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 7265321F8524 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 26 Nov 2012 02:26:00 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TcvrA-00059G-Qf for ietf-http-wg-dist@listhub.w3.org; Mon, 26 Nov 2012 10:24:04 +0000
Resent-Date: Mon, 26 Nov 2012 10:24:04 +0000
Resent-Message-Id: <E1TcvrA-00059G-Qf@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1Tcvr4-00058b-LV for ietf-http-wg@listhub.w3.org; Mon, 26 Nov 2012 10:23:58 +0000
Received: from mail-lb0-f171.google.com ([209.85.217.171]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1Tcvr3-0004dp-FG for ietf-http-wg@w3.org; Mon, 26 Nov 2012 10:23:58 +0000
Received: by mail-lb0-f171.google.com with SMTP id gf7so8455442lbb.2 for <ietf-http-wg@w3.org>; Mon, 26 Nov 2012 02:23:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=4gEVIp7P4tBJ2dpNgnQTWlLHhzWXalSobP6bqWBd4kc=; b=cUhO29PcuKqzOBilytuVRZYVwzH45wmmAopn/9AwbzRR+f2eE2bfGBYUkntRwP2XKP GLRDel/REXxktPsP3bNpvNHknmrAUcMrGYvl4XdMEUydczw/qGtMy7JTo1FrwFdYaSKA RfvXnV56fFJFCtU+RRFMq64vjRgXr0Ksyste6Ak+alRHQgE5t2YOgEft2FFBsfLp+E76 +2rAreVcUWeWg6rZ47JG3sk7G0+Sp2Tv+8Q7TaG03LzRcCAGrp3ra/p0wToNRw9OLy7V 5n0iKqeGX9mIQ4ND4zxkQDdGUuak01TaygEG/0bWyXGVvCmLg/8xh8/DMi2godsl2XCl LnLw==
MIME-Version: 1.0
Received: by 10.112.11.33 with SMTP id n1mr3921757lbb.18.1353925410706; Mon, 26 Nov 2012 02:23:30 -0800 (PST)
Received: by 10.112.128.200 with HTTP; Mon, 26 Nov 2012 02:23:30 -0800 (PST)
In-Reply-To: <em2d22585a-756e-42d0-9b16-fdd23aaba418@bombed>
References: <20121126073526.GB22492@1wt.eu> <em2d22585a-756e-42d0-9b16-fdd23aaba418@bombed>
Date: Mon, 26 Nov 2012 02:23:30 -0800
Message-ID: <CAP+FsNcna=fQHz6EsVRWmZ42dDNcr6xdv-ouyTc0Tk_3S4ZPSQ@mail.gmail.com>
From: Roberto Peon <grmocg@gmail.com>
To: "Adrien W. de Croy" <adrien@qbik.com>
Cc: Willy Tarreau <w@1wt.eu>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=e0cb4efe2a302855e104cf635307
Received-SPF: pass client-ip=209.85.217.171; envelope-from=grmocg@gmail.com; helo=mail-lb0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-4.5
X-W3C-Hub-Spam-Report: AWL=-1.760, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1Tcvr3-0004dp-FG 195d3a98cbc346925287af16791fcc15
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Message length and caches
Archived-At: <http://www.w3.org/mid/CAP+FsNcna=fQHz6EsVRWmZ42dDNcr6xdv-ouyTc0Tk_3S4ZPSQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15669
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--e0cb4efe2a302855e104cf635307
Content-Type: text/plain; charset=ISO-8859-1

I was understanding that Willy was suggesting that we potentially add a
recommendation (or stronger) about what an intermediary should do when it
has a response which is framed by connection close.
Specifically, if a response is framed by connection close, then, treat the
response as if it was uncacheable and attempt to convey to the client that
the originator of the response framed with connection close.
That indication could be accomplished by also framing with connection:
close, or it could take the form (if we extend the spec) of a new header of
some kind.
-=R


On Mon, Nov 26, 2012 at 12:09 AM, Adrien W. de Croy <adrien@qbik.com> wrote:

> Hi Willy
>
> it actually gets worse than this.
>
> Some intermediaries chunk emitted data if the server indicated it would
> close and sends no C-L (so that the intermediary can keep the client
> connection alive).
>
> Since that intermediary can't tell the difference between an abortive and
> normal close, it will send a 0 chunk on close.
>
> So the receiver of that message will never know what happened.
>
> So I agree with Roberto about use of TCP close as a protocol signal, but
> we're stuck with it.
>
> Adrien
>
>
>
> ------ Original Message ------
> From: "Willy Tarreau" <w@1wt.eu>
> To: "HTTP Working Group" <ietf-http-wg@w3.org>
> Sent: 26/11/2012 8:35:26 p.m.
> Subject: Message length and caches
>
>> Hi,
>>
>> When there is no explicit body length in a message, it is terminated by
>> closing the connection. As we all know, this causes some ambiguity for
>> the client because it doesn't know whether a response body is complete
>> or was truncated by anything along the path, including timeouts. Thus
>> I'm wondering if some caches make a difference between such responses
>> or not (eg: a cache could decide not to cache objects terminated this
>> way).
>>
>> The reason is that we recently implemented support for gzip compression
>> in haproxy and I preferred not to add an explicit response end to
>> messages which did not have one for the reason above. This results in
>> not compressing such responses at all (since we would not emit the
>> trailing gzip header with crc, making all responses appear as truncated).
>>
>> Do some people think that this practice is paranoid ? Maybe after all
>> we could compress and chunk responses and make the client be certain
>> that the message is complete while we were not. It just makes me feel
>> a bit like lying to the client.
>>
>> Depending on common practices and opinion, I think that we could add
>> a small paragraph in -p1 about this (eg: intermediaries should not
>> re-chunk a close-delimited response).
>>
>> Regards,
>> Willy
>>
>>
>>
>>
>>
>
>

--e0cb4efe2a302855e104cf635307
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I was understanding that Willy was suggesting that we potentially add a rec=
ommendation (or stronger) about what an intermediary should do when it has =
a response which is framed by connection close.<div>Specifically, if a resp=
onse is framed by connection close, then, treat the response as if it was u=
ncacheable and attempt to convey to the client that the originator of the r=
esponse framed with connection close.</div>
<div>That indication could be accomplished by also framing with connection:=
 close, or it could take the form (if we extend the spec) of a new header o=
f some kind.</div><div>-=3DR</div><div class=3D"gmail_extra"><br><br><div c=
lass=3D"gmail_quote">
On Mon, Nov 26, 2012 at 12:09 AM, Adrien W. de Croy <span dir=3D"ltr">&lt;<=
a href=3D"mailto:adrien@qbik.com" target=3D"_blank">adrien@qbik.com</a>&gt;=
</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .=
8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Willy<br>
<br>
it actually gets worse than this.<br>
<br>
Some intermediaries chunk emitted data if the server indicated it would clo=
se and sends no C-L (so that the intermediary can keep the client connectio=
n alive).<br>
<br>
Since that intermediary can&#39;t tell the difference between an abortive a=
nd normal close, it will send a 0 chunk on close.<br>
<br>
So the receiver of that message will never know what happened.<br>
<br>
So I agree with Roberto about use of TCP close as a protocol signal, but we=
&#39;re stuck with it.<span class=3D"HOEnZb"><font color=3D"#888888"><br>
<br>
Adrien</font></span><div class=3D"HOEnZb"><div class=3D"h5"><br>
<br>
<br>
------ Original Message ------<br>
From: &quot;Willy Tarreau&quot; &lt;<a href=3D"mailto:w@1wt.eu" target=3D"_=
blank">w@1wt.eu</a>&gt;<br>
To: &quot;HTTP Working Group&quot; &lt;<a href=3D"mailto:ietf-http-wg@w3.or=
g" target=3D"_blank">ietf-http-wg@w3.org</a>&gt;<br>
Sent: 26/11/2012 8:35:26 p.m.<br>
Subject: Message length and caches<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
Hi,<br>
<br>
When there is no explicit body length in a message, it is terminated by<br>
closing the connection. As we all know, this causes some ambiguity for<br>
the client because it doesn&#39;t know whether a response body is complete<=
br>
or was truncated by anything along the path, including timeouts. Thus<br>
I&#39;m wondering if some caches make a difference between such responses<b=
r>
or not (eg: a cache could decide not to cache objects terminated this<br>
way).<br>
<br>
The reason is that we recently implemented support for gzip compression<br>
in haproxy and I preferred not to add an explicit response end to<br>
messages which did not have one for the reason above. This results in<br>
not compressing such responses at all (since we would not emit the<br>
trailing gzip header with crc, making all responses appear as truncated).<b=
r>
<br>
Do some people think that this practice is paranoid ? Maybe after all<br>
we could compress and chunk responses and make the client be certain<br>
that the message is complete while we were not. It just makes me feel<br>
a bit like lying to the client.<br>
<br>
Depending on common practices and opinion, I think that we could add<br>
a small paragraph in -p1 about this (eg: intermediaries should not<br>
re-chunk a close-delimited response).<br>
<br>
Regards,<br>
Willy<br>
<br>
<br>
<br>
<br>
</blockquote>
<br>
<br>
</div></div></blockquote></div><br></div>

--e0cb4efe2a302855e104cf635307--


From ietf-http-wg-request@listhub.w3.org  Mon Nov 26 03:28:59 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 95D6D21F8505 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 03:28:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ygX27MNamfHE for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 03:28:58 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id B760221F8503 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 26 Nov 2012 03:28:58 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Tcwq3-0007pm-6q for ietf-http-wg-dist@listhub.w3.org; Mon, 26 Nov 2012 11:26:59 +0000
Resent-Date: Mon, 26 Nov 2012 11:26:59 +0000
Resent-Message-Id: <E1Tcwq3-0007pm-6q@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1Tcwpy-0007p3-Jy for ietf-http-wg@listhub.w3.org; Mon, 26 Nov 2012 11:26:54 +0000
Received: from ip-58-28-153-233.static-xdsl.xnet.co.nz ([58.28.153.233] helo=treenet.co.nz) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1Tcwpt-000766-Qp for ietf-http-wg@w3.org; Mon, 26 Nov 2012 11:26:54 +0000
Received: from [192.168.1.100] (unknown [101.98.102.102]) by treenet.co.nz (Postfix) with ESMTP id 44438E7037 for <ietf-http-wg@w3.org>; Tue, 27 Nov 2012 00:26:26 +1300 (NZDT)
Message-ID: <50B351D8.50702@treenet.co.nz>
Date: Tue, 27 Nov 2012 00:26:16 +1300
From: Amos Jeffries <squid3@treenet.co.nz>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version: 1.0
To: ietf-http-wg@w3.org
References: <20121126073526.GB22492@1wt.eu> <em2d22585a-756e-42d0-9b16-fdd23aaba418@bombed> <CAP+FsNcna=fQHz6EsVRWmZ42dDNcr6xdv-ouyTc0Tk_3S4ZPSQ@mail.gmail.com>
In-Reply-To: <CAP+FsNcna=fQHz6EsVRWmZ42dDNcr6xdv-ouyTc0Tk_3S4ZPSQ@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=58.28.153.233; envelope-from=squid3@treenet.co.nz; helo=treenet.co.nz
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-2.499, BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1Tcwpt-000766-Qp 77705894765d7b77fa2326a6fdd10cc4
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Message length and caches
Archived-At: <http://www.w3.org/mid/50B351D8.50702@treenet.co.nz>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15670
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 26/11/2012 11:23 p.m., Roberto Peon wrote:
> I was understanding that Willy was suggesting that we potentially add 
> a recommendation (or stronger) about what an intermediary should do 
> when it has a response which is framed by connection close.
> Specifically, if a response is framed by connection close, then, treat 
> the response as if it was uncacheable and attempt to convey to the 
> client that the originator of the response framed with connection close.
> That indication could be accomplished by also framing with connection: 
> close, or it could take the form (if we extend the spec) of a new 
> header of some kind.

A header is kind of a non-starter unless it is a trailer or chunk 
indicator of some kind. Abortions can happen on responses too large to 
buffer - very likely to in fact.

Amos



From ietf-http-wg-request@listhub.w3.org  Mon Nov 26 14:39:21 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5193221F8503 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 14:39:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.598
X-Spam-Level: 
X-Spam-Status: No, score=-10.598 tagged_above=-999 required=5 tests=[AWL=-0.000, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 59-UMeNoiqNZ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 14:39:20 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 62B7921F84E7 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 26 Nov 2012 14:39:19 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Td7Ir-00046f-Sp for ietf-http-wg-dist@listhub.w3.org; Mon, 26 Nov 2012 22:37:25 +0000
Resent-Date: Mon, 26 Nov 2012 22:37:25 +0000
Resent-Message-Id: <E1Td7Ir-00046f-Sp@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <adrien@qbik.com>) id 1Td7Ik-00045l-A5 for ietf-http-wg@listhub.w3.org; Mon, 26 Nov 2012 22:37:18 +0000
Received: from smtp.qbik.com ([210.55.214.35]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <adrien@qbik.com>) id 1Td7Ig-00082g-VQ for ietf-http-wg@w3.org; Mon, 26 Nov 2012 22:37:18 +0000
Received: From [192.168.0.10] (unverified [192.168.0.10]) by SMTP Server [192.168.0.1] (WinGate SMTP Receiver v7.2.8 (Build 3469)) with SMTP id <0019374224@smtp.qbik.com>; Tue, 27 Nov 2012 11:37:27 +1300
From: "Adrien W. de Croy" <adrien@qbik.com>
To: "Roberto Peon" <grmocg@gmail.com>
Cc: "Willy Tarreau" <w@1wt.eu>, "HTTP Working Group" <ietf-http-wg@w3.org>
Date: Mon, 26 Nov 2012 22:36:45 +0000
Content-Type: multipart/alternative; boundary="------=_MBACE068BE-9FAF-4B52-A5F8-68262237E697"
In-Reply-To: <CAP+FsNcna=fQHz6EsVRWmZ42dDNcr6xdv-ouyTc0Tk_3S4ZPSQ@mail.gmail.com>
Message-Id: <em62d6e00f-7444-4954-82ee-91ec97fe6894@bombed>
Mime-Version: 1.0
Reply-To: "Adrien W. de Croy" <adrien@qbik.com>
User-Agent: eM_Client/4.0.15145.0
Received-SPF: pass client-ip=210.55.214.35; envelope-from=adrien@qbik.com; helo=smtp.qbik.com
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-2.161, BAYES_00=-1.9, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-0.368, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1Td7Ig-00082g-VQ 4bfb17f731ba5516671d6029e8223e80
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Message length and caches
Archived-At: <http://www.w3.org/mid/em62d6e00f-7444-4954-82ee-91ec97fe6894@bombed>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15671
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--------=_MBACE068BE-9FAF-4B52-A5F8-68262237E697
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; format=flowed; charset=utf-8


in the case I was talking about, the intermediary already chunked the=20
data.  So it really has no option when the server closes.  It can't=20
close to the client without sending a 0 chunk, since that would turn a=20
potentially complete resource into an aborted one.  So it must send the=20
0 chunk.

Unless you're going to say any time the intermediary expects the server=20
to close it should not chunk the data to the client.

I think we're just stuck with this until 1.2 or 2.0 deprecates the=20
mechanism completely.  Has it really been that big a problem?

Adrien

------ Original Message ------
From: "Roberto Peon" <grmocg@gmail.com>
To: "Adrien W. de Croy" <adrien@qbik.com>
Cc: "Willy Tarreau" <w@1wt.eu>;"HTTP Working Group"=20
<ietf-http-wg@w3.org>
Sent: 26/11/2012 11:23:30 p.m.
Subject: Re: Message length and caches
>I was understanding that Willy was suggesting that we potentially add=20
>a recommendation (or stronger) about what an intermediary should do=20
>when it has a response which is framed by connection close.  Specifically,=
=20
>if a response is framed by connection close, then, treat the response=20
>as if it was uncacheable and attempt to convey to the client that the=20
>originator of the response framed with connection close.
>That indication could be accomplished by also framing with connection:=20
>close, or it could take the form (if we extend the spec) of a new=20
>header of some kind.
>-=3DR
>
>
>On Mon, Nov 26, 2012 at 12:09 AM, Adrien W. de Croy <adrien@qbik.com> wrot=
e:
> Hi Willy
>=20
> it actually gets worse than this.
>=20
> Some intermediaries chunk emitted data if the server indicated it=20
> would close and sends no C-L (so that the intermediary can keep the=20
> client connection alive).
>=20
> Since that intermediary can't tell the difference between an abortive=20
> and normal close, it will send a 0 chunk on close.
>=20
> So the receiver of that message will never know what happened.
>=20
> So I agree with Roberto about use of TCP close as a protocol signal,=20
> but we're stuck with it.
>=20
> Adrien
>=20
>=20
> ------ Original Message ------
> From: "Willy Tarreau" <w@1wt.eu>
> To: "HTTP Working Group" <ietf-http-wg@w3.org>
> Sent: 26/11/2012 8:35:26 p.m.
> Subject: Message length and caches
>  Hi,
> =20
>  When there is no explicit body length in a message, it is terminated=20
>  by
>  closing the connection. As we all know, this causes some ambiguity=20
>  for
>  the client because it doesn't know whether a response body is=20
>  complete
>  or was truncated by anything along the path, including timeouts. Thus
>  I'm wondering if some caches make a difference between such responses
>  or not (eg: a cache could decide not to cache objects terminated this
>  way).
> =20
>  The reason is that we recently implemented support for gzip=20
>  compression
>  in haproxy and I preferred not to add an explicit response end to
>  messages which did not have one for the reason above. This results in
>  not compressing such responses at all (since we would not emit the
>  trailing gzip header with crc, making all responses appear as=20
>  truncated).
> =20
>  Do some people think that this practice is paranoid ? Maybe after all
>  we could compress and chunk responses and make the client be certain
>  that the message is complete while we were not. It just makes me feel
>  a bit like lying to the client.
> =20
>  Depending on common practices and opinion, I think that we could add
>  a small paragraph in -p1 about this (eg: intermediaries should not
>  re-chunk a close-delimited response).
> =20
>  Regards,
>  Willy
> =20
> =20
> =20
> =20
 =20
 =20
=20

--------=_MBACE068BE-9FAF-4B52-A5F8-68262237E697
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=utf-8

<HTML><HEAD>
<STYLE id=3DeMClientCss>blockquote.cite { margin-left: 5px; margin-right:=
 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #000000=
 }
.plain pre { font-family: monospace; font-size: 100%; font-weight: normal;=
 font-style: normal; }
body {font-family: Tahoma;font-size: 12pt;}
.plain pre {font-family: Tahoma;font-size: 12pt;}

#7279115c5cbb45188907f432aab2999a BLOCKQUOTE.cite
{BORDER-LEFT: #000000 1px solid; PADDING-LEFT: 10px; PADDING-RIGHT: 0px;=
 MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px}
#7279115c5cbb45188907f432aab2999a .plain PRE
{FONT-STYLE: normal; FONT-FAMILY: monospace; FONT-SIZE: 100%; FONT-WEIGHT:=
 normal}
#7279115c5cbb45188907f432aab2999a=20
{FONT-FAMILY: Tahoma; FONT-SIZE: 12pt}
#7279115c5cbb45188907f432aab2999a .plain PRE
{FONT-FAMILY: Tahoma; FONT-SIZE: 12pt}</STYLE>
</HEAD>
<BODY scroll=3Dauto class>
<DIV>&nbsp;</DIV>
<DIV>in the case I was talking about, the intermediary already chunked the=
 data.&nbsp; So it really has no option when the server closes.&nbsp; It=
 can't close to the client without sending a 0 chunk, since that would turn=
 a potentially complete resource into an aborted one.&nbsp; So it must send=
 the 0 chunk.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Unless you're going to say any time the intermediary expects the serve=
r to close it should not chunk the data to the client.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I think we're just stuck with this until 1.2 or 2.0 deprecates the =
mechanism completely.&nbsp; Has it really been that big a problem?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Adrien</DIV>
<DIV><BR>------ Original Message ------<BR>From: "Roberto Peon" &lt;grmocg@=
gmail.com&gt;<BR>To: "Adrien W. de Croy" &lt;adrien@qbik.com&gt;<BR>Cc: =
"Willy Tarreau" &lt;w@1wt.eu&gt;;"HTTP Working Group" &lt;ietf-http-wg@w3.o=
rg&gt;<BR>Sent: 26/11/2012 11:23:30 p.m.<BR>Subject: Re: Message length =
and caches<BR></DIV>
<BLOCKQUOTE class=3Dcite cite=3DCAP+FsNcna=3DfQHz6EsVRWmZ42dDNcr6xdv-ouyTc0=
Tk_3S4ZPSQ@mail.gmail.com type=3D"cite">
<DIV id=3D7279115c5cbb45188907f432aab2999a>I was understanding that Willy=
 was suggesting that we potentially add a recommendation (or stronger) abou=
t what an intermediary should do when it has a response which is framed =
by connection close.=20
<DIV>Specifically, if a response is framed by connection close, then, treat=
 the response as if it was uncacheable and attempt to convey to the client=
 that the originator of the response framed with connection close.</DIV>
<DIV>That indication could be accomplished by also framing with connection:=
 close, or it could take the form (if we extend the spec) of a new header=
 of some kind.</DIV>
<DIV>-=3DR</DIV>
<DIV class=3Dgmail_extra><BR><BR>
<DIV class=3Dgmail_quote>On Mon, Nov 26, 2012 at 12:09 AM, Adrien W. de =
Croy <SPAN dir=3Dltr>&lt;<A href=3D"mailto:adrien@qbik.com"><A href=3D"mail=
to:adrien@qbik.com">adrien@qbik.com</A></A>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE style=3D"BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex=
; PADDING-LEFT: 1ex" class=3Dgmail_quote>Hi Willy<BR><BR>it actually gets=
 worse than this.<BR><BR>Some intermediaries chunk emitted data if the serv=
er indicated it would close and sends no C-L (so that the intermediary can=
 keep the client connection alive).<BR><BR>Since that intermediary can't=
 tell the difference between an abortive and normal close, it will send =
a 0 chunk on close.<BR><BR>So the receiver of that message will never know=
 what happened.<BR><BR>So I agree with Roberto about use of TCP close as=
 a protocol signal, but we're stuck with it.<SPAN class=3DHOEnZb><FONT colo=
r=3D#888888><BR><BR>Adrien</FONT></SPAN>=20
<DIV class=3DHOEnZb>
<DIV class=3Dh5><BR><BR><BR>------ Original Message ------<BR>From: "Willy=
 Tarreau" &lt;<A href=3D"mailto:w@1wt.eu"><A href=3D"mailto:w@1wt.eu">w@1wt=
.eu</A></A>&gt;<BR>To: "HTTP Working Group" &lt;<A href=3D"mailto:ietf-http=
-wg@w3.org"><A href=3D"mailto:ietf-http-wg@w3.org">ietf-http-wg@w3.org</A><=
/A>&gt;<BR>Sent: 26/11/2012 8:35:26 p.m.<BR>Subject: Message length and =
caches<BR>
<BLOCKQUOTE style=3D"BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex=
; PADDING-LEFT: 1ex" class=3Dgmail_quote>Hi,<BR><BR>When there is no explic=
it body length in a message, it is terminated by<BR>closing the connection.=
 As we all know, this causes some ambiguity for<BR>the client because it=
 doesn't know whether a response body is complete<BR>or was truncated by=
 anything along the path, including timeouts. Thus<BR>I'm wondering if some=
 caches make a difference between such responses<BR>or not (eg: a cache =
could decide not to cache objects terminated this<BR>way).<BR><BR>The reaso=
n is that we recently implemented support for gzip compression<BR>in haprox=
y and I preferred not to add an explicit response end to<BR>messages which=
 did not have one for the reason above. This results in<BR>not compressing=
 such responses at all (since we would not emit the<BR>trailing gzip header=
 with crc, making all responses appear as truncated).<BR><BR>Do some people=
 think that this practice is paranoid ? Maybe after all<BR>we could compres=
s and chunk responses and make the client be certain<BR>that the message=
 is complete while we were not. It just makes me feel<BR>a bit like lying=
 to the client.<BR><BR>Depending on common practices and opinion, I think=
 that we could add<BR>a small paragraph in -p1 about this (eg: intermediari=
es should not<BR>re-chunk a close-delimited response).<BR><BR>Regards,<BR>W=
illy<BR><BR><BR><BR><BR></BLOCKQUOTE><BR><BR></DIV></DIV></BLOCKQUOTE></DIV=
><BR></DIV></DIV></BLOCKQUOTE></BODY></HTML>
--------=_MBACE068BE-9FAF-4B52-A5F8-68262237E697--



From ietf-http-wg-request@listhub.w3.org  Mon Nov 26 15:05:06 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3E5DD21F86C6 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 15:05:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.598
X-Spam-Level: 
X-Spam-Status: No, score=-10.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8r3c9Q-jElQw for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 15:05:05 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id E95EF21F8541 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 26 Nov 2012 15:04:56 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Td7iT-0008DA-SJ for ietf-http-wg-dist@listhub.w3.org; Mon, 26 Nov 2012 23:03:53 +0000
Resent-Date: Mon, 26 Nov 2012 23:03:53 +0000
Resent-Message-Id: <E1Td7iT-0008DA-SJ@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <fielding@gbiv.com>) id 1Td7iO-0008CL-2W for ietf-http-wg@listhub.w3.org; Mon, 26 Nov 2012 23:03:48 +0000
Received: from caiajhbdcbef.dreamhost.com ([208.97.132.145] helo=homiemail-a74.g.dreamhost.com) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <fielding@gbiv.com>) id 1Td7iL-0000YC-7j for ietf-http-wg@w3.org; Mon, 26 Nov 2012 23:03:48 +0000
Received: from homiemail-a74.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a74.g.dreamhost.com (Postfix) with ESMTP id B8F7067C06B; Mon, 26 Nov 2012 15:03:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gbiv.com; h=subject :mime-version:content-type:from:in-reply-to:date:cc:message-id :references:to; s=gbiv.com; bh=sZ5eYD8aIdqJz6rx0we37ZViAjE=; b=h SsazxLqRS2hOMR+Si7PV/M7OGcSZe0IJnN0EFLD+4eAHtoHwWswQ/ksgc1JMhMsP 1AsYhsO7WXfQSMEYUqTGaqnOkZFz4a4EQrLSyvksKwPFSZnqaBwoygaWwfyKCGly ZIqmmegZwJlfBW8ZqguTkcaXa+1nXBrXlwITAvS40E=
Received: from [192.168.1.84] (99-21-208-82.lightspeed.irvnca.sbcglobal.net [99.21.208.82]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: fielding@gbiv.com) by homiemail-a74.g.dreamhost.com (Postfix) with ESMTPSA id 3F65567C069; Mon, 26 Nov 2012 15:03:22 -0800 (PST)
Mime-Version: 1.0 (Apple Message framework v1283)
Content-Type: multipart/alternative; boundary="Apple-Mail=_21B6AC09-CCB5-4F88-B4DA-CDAF981B2414"
From: "Roy T. Fielding" <fielding@gbiv.com>
In-Reply-To: <em62d6e00f-7444-4954-82ee-91ec97fe6894@bombed>
Date: Mon, 26 Nov 2012 15:03:25 -0800
Cc: "Roberto Peon" <grmocg@gmail.com>, "Willy Tarreau" <w@1wt.eu>, "HTTP Working Group" <ietf-http-wg@w3.org>
Message-Id: <49E49F3E-4979-4681-BE47-A9CF1282DEAA@gbiv.com>
References: <em62d6e00f-7444-4954-82ee-91ec97fe6894@bombed>
To: "Adrien W. de Croy" <adrien@qbik.com>
X-Mailer: Apple Mail (2.1283)
Received-SPF: none client-ip=208.97.132.145; envelope-from=fielding@gbiv.com; helo=homiemail-a74.g.dreamhost.com
X-W3C-Hub-Spam-Status: No, score=-4.5
X-W3C-Hub-Spam-Report: AWL=-2.470, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001
X-W3C-Scan-Sig: lisa.w3.org 1Td7iL-0000YC-7j 5f50eaf4374de213347cdcd746eb6264
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Message length and caches
Archived-At: <http://www.w3.org/mid/49E49F3E-4979-4681-BE47-A9CF1282DEAA@gbiv.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15672
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--Apple-Mail=_21B6AC09-CCB5-4F88-B4DA-CDAF981B2414
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

In waka, each message ends with an 8bit status code -- it is
either the same as that given in the beginning or a new code if the
message was sent incomplete (on a request, it is used to indicate that
an upload is being aborted).  I send the entire code because I want
to distinguish between "origin closed connection" and "intermediary
timed out waiting for more data from origin".  I assume that something
similar could be accomplished in SPDY by ending the last frame with
some sort of unexpected upstream termination bit.

....Roy

On Nov 26, 2012, at 2:36 PM, Adrien W. de Croy wrote:

> =20
> in the case I was talking about, the intermediary already chunked the =
data.  So it really has no option when the server closes.  It can't =
close to the client without sending a 0 chunk, since that would turn a =
potentially complete resource into an aborted one.  So it must send the =
0 chunk.
> =20
> Unless you're going to say any time the intermediary expects the =
server to close it should not chunk the data to the client.
> =20
> I think we're just stuck with this until 1.2 or 2.0 deprecates the =
mechanism completely.  Has it really been that big a problem?
> =20
> Adrien
>=20
> ------ Original Message ------
> From: "Roberto Peon" <grmocg@gmail.com>
> To: "Adrien W. de Croy" <adrien@qbik.com>
> Cc: "Willy Tarreau" <w@1wt.eu>;"HTTP Working Group" =
<ietf-http-wg@w3.org>
> Sent: 26/11/2012 11:23:30 p.m.
> Subject: Re: Message length and caches
>> I was understanding that Willy was suggesting that we potentially add =
a recommendation (or stronger) about what an intermediary should do when =
it has a response which is framed by connection close.
>> Specifically, if a response is framed by connection close, then, =
treat the response as if it was uncacheable and attempt to convey to the =
client that the originator of the response framed with connection close.
>> That indication could be accomplished by also framing with =
connection: close, or it could take the form (if we extend the spec) of =
a new header of some kind.
>> -=3DR
>>=20
>>=20
>> On Mon, Nov 26, 2012 at 12:09 AM, Adrien W. de Croy <adrien@qbik.com> =
wrote:
>> Hi Willy
>>=20
>> it actually gets worse than this.
>>=20
>> Some intermediaries chunk emitted data if the server indicated it =
would close and sends no C-L (so that the intermediary can keep the =
client connection alive).
>>=20
>> Since that intermediary can't tell the difference between an abortive =
and normal close, it will send a 0 chunk on close.
>>=20
>> So the receiver of that message will never know what happened.
>>=20
>> So I agree with Roberto about use of TCP close as a protocol signal, =
but we're stuck with it.
>>=20
>> Adrien
>>=20
>>=20
>>=20
>> ------ Original Message ------
>> From: "Willy Tarreau" <w@1wt.eu>
>> To: "HTTP Working Group" <ietf-http-wg@w3.org>
>> Sent: 26/11/2012 8:35:26 p.m.
>> Subject: Message length and caches
>> Hi,
>>=20
>> When there is no explicit body length in a message, it is terminated =
by
>> closing the connection. As we all know, this causes some ambiguity =
for
>> the client because it doesn't know whether a response body is =
complete
>> or was truncated by anything along the path, including timeouts. Thus
>> I'm wondering if some caches make a difference between such responses
>> or not (eg: a cache could decide not to cache objects terminated this
>> way).
>>=20
>> The reason is that we recently implemented support for gzip =
compression
>> in haproxy and I preferred not to add an explicit response end to
>> messages which did not have one for the reason above. This results in
>> not compressing such responses at all (since we would not emit the
>> trailing gzip header with crc, making all responses appear as =
truncated).
>>=20
>> Do some people think that this practice is paranoid ? Maybe after all
>> we could compress and chunk responses and make the client be certain
>> that the message is complete while we were not. It just makes me feel
>> a bit like lying to the client.
>>=20
>> Depending on common practices and opinion, I think that we could add
>> a small paragraph in -p1 about this (eg: intermediaries should not
>> re-chunk a close-delimited response).
>>=20
>> Regards,
>> Willy


--Apple-Mail=_21B6AC09-CCB5-4F88-B4DA-CDAF981B2414
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">In =
waka, each message ends with an 8bit status code -- it is<div>either the =
same as that given in the beginning or a new code if =
the</div><div>message was sent incomplete (on a request, it is used to =
indicate that</div><div>an upload is being aborted). &nbsp;I send the =
entire code because I want</div><div>to distinguish between "origin =
closed connection" and "intermediary</div><div>timed out waiting for =
more data from origin". &nbsp;I assume that something</div><div>similar =
could be accomplished in SPDY&nbsp;by ending the last frame =
with</div><div>some sort of unexpected =
upstream&nbsp;termination&nbsp;bit.</div><div><br></div><div>....Roy</div>=
<div><br></div><div><div><div>On Nov 26, 2012, at 2:36 PM, Adrien W. de =
Croy wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><span class=3D"Apple-style-span" style=3D"border-collapse: =
separate; font-family: Monaco; font-style: normal; font-variant: normal; =
font-weight: normal; letter-spacing: normal; line-height: normal; =
orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: =
none; white-space: normal; widows: 2; word-spacing: 0px; =
-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: =
0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div =
scroll=3D"auto" class=3D"" style=3D"font-family: Tahoma; font-size: =
12pt; "><div>&nbsp;</div><div>in the case I was talking about, the =
intermediary already chunked the data.&nbsp; So it really has no option =
when the server closes.&nbsp; It can't close to the client without =
sending a 0 chunk, since that would turn a potentially complete resource =
into an aborted one.&nbsp; So it must send the 0 =
chunk.</div><div>&nbsp;</div><div>Unless you're going to say any time =
the intermediary expects the server to close it should not chunk the =
data to the client.</div><div>&nbsp;</div><div>I think we're just stuck =
with this until 1.2 or 2.0 deprecates the mechanism completely.&nbsp; =
Has it really been that big a =
problem?</div><div>&nbsp;</div><div>Adrien</div><div><br>------ Original =
Message ------<br>From: "Roberto Peon" &lt;<a =
href=3D"mailto:grmocg@gmail.com">grmocg@gmail.com</a>&gt;<br>To: "Adrien =
W. de Croy" &lt;<a =
href=3D"mailto:adrien@qbik.com">adrien@qbik.com</a>&gt;<br>Cc: "Willy =
Tarreau" &lt;<a href=3D"mailto:w@1wt.eu">w@1wt.eu</a>&gt;;"HTTP Working =
Group" &lt;<a =
href=3D"mailto:ietf-http-wg@w3.org">ietf-http-wg@w3.org</a>&gt;<br>Sent: =
26/11/2012 11:23:30 p.m.<br>Subject: Re: Message length and =
caches<br></div><blockquote class=3D"cite" =
cite=3D"x-msg://537/CAP+FsNcna=3DfQHz6EsVRWmZ42dDNcr6xdv-ouyTc0Tk_3S4ZPSQ@=
mail.gmail.com" type=3D"cite" style=3D"margin-left: 5px; margin-right: =
0px; padding-left: 10px; padding-right: 0px; border-left-width: 1px; =
border-left-style: solid; border-left-color: rgb(0, 0, 0); "><div =
id=3D"7279115c5cbb45188907f432aab2999a">I was understanding that Willy =
was suggesting that we potentially add a recommendation (or stronger) =
about what an intermediary should do when it has a response which is =
framed by connection close.<div>Specifically, if a response is framed by =
connection close, then, treat the response as if it was uncacheable and =
attempt to convey to the client that the originator of the response =
framed with connection close.</div><div>That indication could be =
accomplished by also framing with connection: close, or it could take =
the form (if we extend the spec) of a new header of some =
kind.</div><div>-=3DR</div><div class=3D"gmail_extra"><br><br><div =
class=3D"gmail_quote">On Mon, Nov 26, 2012 at 12:09 AM, Adrien W. de =
Croy<span class=3D"Apple-converted-space">&nbsp;</span><span =
dir=3D"ltr">&lt;<a href=3D"mailto:adrien@qbik.com"></a><a =
href=3D"mailto:adrien@qbik.com">adrien@qbik.com</a>&gt;</span><span =
class=3D"Apple-converted-space">&nbsp;</span>wrote:<br><blockquote =
class=3D"gmail_quote" style=3D"border-left-color: rgb(204, 204, 204); =
border-left-width: 1px; border-left-style: solid; margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; padding-left: =
1ex; ">Hi Willy<br><br>it actually gets worse than this.<br><br>Some =
intermediaries chunk emitted data if the server indicated it would close =
and sends no C-L (so that the intermediary can keep the client =
connection alive).<br><br>Since that intermediary can't tell the =
difference between an abortive and normal close, it will send a 0 chunk =
on close.<br><br>So the receiver of that message will never know what =
happened.<br><br>So I agree with Roberto about use of TCP close as a =
protocol signal, but we're stuck with it.<span class=3D"HOEnZb"><font =
color=3D"#888888"><br><br>Adrien</font></span><div class=3D"HOEnZb"><div =
class=3D"h5"><br><br><br>------ Original Message ------<br>From: "Willy =
Tarreau" &lt;<a href=3D"mailto:w@1wt.eu"></a><a =
href=3D"mailto:w@1wt.eu">w@1wt.eu</a>&gt;<br>To: "HTTP Working Group" =
&lt;<a href=3D"mailto:ietf-http-wg@w3.org"></a><a =
href=3D"mailto:ietf-http-wg@w3.org">ietf-http-wg@w3.org</a>&gt;<br>Sent: =
26/11/2012 8:35:26 p.m.<br>Subject: Message length and =
caches<br><blockquote class=3D"gmail_quote" style=3D"border-left-color: =
rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid; =
margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: =
0.8ex; padding-left: 1ex; ">Hi,<br><br>When there is no explicit body =
length in a message, it is terminated by<br>closing the connection. As =
we all know, this causes some ambiguity for<br>the client because it =
doesn't know whether a response body is complete<br>or was truncated by =
anything along the path, including timeouts. Thus<br>I'm wondering if =
some caches make a difference between such responses<br>or not (eg: a =
cache could decide not to cache objects terminated =
this<br>way).<br><br>The reason is that we recently implemented support =
for gzip compression<br>in haproxy and I preferred not to add an =
explicit response end to<br>messages which did not have one for the =
reason above. This results in<br>not compressing such responses at all =
(since we would not emit the<br>trailing gzip header with crc, making =
all responses appear as truncated).<br><br>Do some people think that =
this practice is paranoid ? Maybe after all<br>we could compress and =
chunk responses and make the client be certain<br>that the message is =
complete while we were not. It just makes me feel<br>a bit like lying to =
the client.<br><br>Depending on common practices and opinion, I think =
that we could add<br>a small paragraph in -p1 about this (eg: =
intermediaries should not<br>re-chunk a close-delimited =
response).<br><br>Regards,<br>Willy</blockquote></div></div></blockquote><=
/div></div></div></blockquote></div></span></blockquote></div><br></div></=
body></html>=

--Apple-Mail=_21B6AC09-CCB5-4F88-B4DA-CDAF981B2414--


From ietf-http-wg-request@listhub.w3.org  Mon Nov 26 15:14:53 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7E41921F8588 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 15:14:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.598
X-Spam-Level: 
X-Spam-Status: No, score=-10.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1tjh45iVAlY7 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 15:14:52 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 4B0D721F84D9 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 26 Nov 2012 15:14:52 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Td7ry-0003M8-4l for ietf-http-wg-dist@listhub.w3.org; Mon, 26 Nov 2012 23:13:42 +0000
Resent-Date: Mon, 26 Nov 2012 23:13:42 +0000
Resent-Message-Id: <E1Td7ry-0003M8-4l@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1Td7rt-0003LT-0e for ietf-http-wg@listhub.w3.org; Mon, 26 Nov 2012 23:13:37 +0000
Received: from mail-lb0-f171.google.com ([209.85.217.171]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1Td7rr-0000Ga-L8 for ietf-http-wg@w3.org; Mon, 26 Nov 2012 23:13:36 +0000
Received: by mail-lb0-f171.google.com with SMTP id gf7so9128767lbb.2 for <ietf-http-wg@w3.org>; Mon, 26 Nov 2012 15:13:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=GSpQCZ1sSsE1XtLU8wTJdZwQ2/JRkInm12fbtzLbqoQ=; b=QDyF14GrcXFzBCYbOd9wNKW9vF4gFWJiJyq9VuFDeAyog0V1In8jw8P0ydxymhIw1S gdtdsbktsB5g4bkRXTrHyI5KoExOIhoW0N5U33sXUDMOXLaFGiIKqen+/MTkKm8mP/l/ YjeBrCdlbhLcxO9SNZzpidGBPUCB21q3DmcY5EQJRQg0TJxddmDsUbQGkxSVHa9dfN0T bKEqGu+AZd9KaHUe9ouzL6ayoCcGaL3y1Ra4s7egwJqTLtoDmx8wBxVoks5iGv2M4Xjl NwshmIEQ2Hy3kozQwwd3jEJB2jgK7LuUkPM6fUntFH1drfCZPQnzpJVYwqoLorgoVSnq tt/w==
MIME-Version: 1.0
Received: by 10.152.105.33 with SMTP id gj1mr12663273lab.49.1353971588265; Mon, 26 Nov 2012 15:13:08 -0800 (PST)
Received: by 10.112.128.200 with HTTP; Mon, 26 Nov 2012 15:13:08 -0800 (PST)
In-Reply-To: <49E49F3E-4979-4681-BE47-A9CF1282DEAA@gbiv.com>
References: <em62d6e00f-7444-4954-82ee-91ec97fe6894@bombed> <49E49F3E-4979-4681-BE47-A9CF1282DEAA@gbiv.com>
Date: Mon, 26 Nov 2012 15:13:08 -0800
Message-ID: <CAP+FsNfcYJeGLDWVzq+N3skmPyTsjEe6iWyU860P8gajvcDyeA@mail.gmail.com>
From: Roberto Peon <grmocg@gmail.com>
To: "Roy T. Fielding" <fielding@gbiv.com>
Cc: "Adrien W. de Croy" <adrien@qbik.com>, Willy Tarreau <w@1wt.eu>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=f46d040716e38df75804cf6e13eb
Received-SPF: pass client-ip=209.85.217.171; envelope-from=grmocg@gmail.com; helo=mail-lb0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-4.3
X-W3C-Hub-Spam-Report: AWL=-1.635, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1Td7rr-0000Ga-L8 a75a436029aca814f1081480f58e047b
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Message length and caches
Archived-At: <http://www.w3.org/mid/CAP+FsNfcYJeGLDWVzq+N3skmPyTsjEe6iWyU860P8gajvcDyeA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15673
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--f46d040716e38df75804cf6e13eb
Content-Type: text/plain; charset=ISO-8859-1

Roy--

That definitely solves part of the problem (there really need to be two
status codes, one for the server and one for the point-to-point
connection), but for a caching intermediary, it would like to know up-front
if it should bother to put that data into the cache. I know that I wouldn't
want to put anything framed with connection closed into the cache, and so
having something propagate the nature of the worst point-to-point framing
is probably useful.

-=R


On Mon, Nov 26, 2012 at 3:03 PM, Roy T. Fielding <fielding@gbiv.com> wrote:

> In waka, each message ends with an 8bit status code -- it is
> either the same as that given in the beginning or a new code if the
> message was sent incomplete (on a request, it is used to indicate that
> an upload is being aborted).  I send the entire code because I want
> to distinguish between "origin closed connection" and "intermediary
> timed out waiting for more data from origin".  I assume that something
> similar could be accomplished in SPDY by ending the last frame with
> some sort of unexpected upstream termination bit.
>
> ....Roy
>
> On Nov 26, 2012, at 2:36 PM, Adrien W. de Croy wrote:
>
>
> in the case I was talking about, the intermediary already chunked the
> data.  So it really has no option when the server closes.  It can't close
> to the client without sending a 0 chunk, since that would turn a
> potentially complete resource into an aborted one.  So it must send the 0
> chunk.
>
> Unless you're going to say any time the intermediary expects the server to
> close it should not chunk the data to the client.
>
> I think we're just stuck with this until 1.2 or 2.0 deprecates the
> mechanism completely.  Has it really been that big a problem?
>
> Adrien
>
> ------ Original Message ------
> From: "Roberto Peon" <grmocg@gmail.com>
> To: "Adrien W. de Croy" <adrien@qbik.com>
> Cc: "Willy Tarreau" <w@1wt.eu>;"HTTP Working Group" <ietf-http-wg@w3.org>
> Sent: 26/11/2012 11:23:30 p.m.
> Subject: Re: Message length and caches
>
> I was understanding that Willy was suggesting that we potentially add a
> recommendation (or stronger) about what an intermediary should do when it
> has a response which is framed by connection close.
> Specifically, if a response is framed by connection close, then, treat the
> response as if it was uncacheable and attempt to convey to the client that
> the originator of the response framed with connection close.
> That indication could be accomplished by also framing with connection:
> close, or it could take the form (if we extend the spec) of a new header of
> some kind.
> -=R
>
>
> On Mon, Nov 26, 2012 at 12:09 AM, Adrien W. de Croy < <adrien@qbik.com>
> adrien@qbik.com> wrote:
>
>> Hi Willy
>>
>> it actually gets worse than this.
>>
>> Some intermediaries chunk emitted data if the server indicated it would
>> close and sends no C-L (so that the intermediary can keep the client
>> connection alive).
>>
>> Since that intermediary can't tell the difference between an abortive and
>> normal close, it will send a 0 chunk on close.
>>
>> So the receiver of that message will never know what happened.
>>
>> So I agree with Roberto about use of TCP close as a protocol signal, but
>> we're stuck with it.
>>
>> Adrien
>>
>>
>>
>> ------ Original Message ------
>> From: "Willy Tarreau" < <w@1wt.eu>w@1wt.eu>
>> To: "HTTP Working Group" < <ietf-http-wg@w3.org>ietf-http-wg@w3.org>
>> Sent: 26/11/2012 8:35:26 p.m.
>> Subject: Message length and caches
>>
>>> Hi,
>>>
>>> When there is no explicit body length in a message, it is terminated by
>>> closing the connection. As we all know, this causes some ambiguity for
>>> the client because it doesn't know whether a response body is complete
>>> or was truncated by anything along the path, including timeouts. Thus
>>> I'm wondering if some caches make a difference between such responses
>>> or not (eg: a cache could decide not to cache objects terminated this
>>> way).
>>>
>>> The reason is that we recently implemented support for gzip compression
>>> in haproxy and I preferred not to add an explicit response end to
>>> messages which did not have one for the reason above. This results in
>>> not compressing such responses at all (since we would not emit the
>>> trailing gzip header with crc, making all responses appear as truncated).
>>>
>>> Do some people think that this practice is paranoid ? Maybe after all
>>> we could compress and chunk responses and make the client be certain
>>> that the message is complete while we were not. It just makes me feel
>>> a bit like lying to the client.
>>>
>>> Depending on common practices and opinion, I think that we could add
>>> a small paragraph in -p1 about this (eg: intermediaries should not
>>> re-chunk a close-delimited response).
>>>
>>> Regards,
>>> Willy
>>
>>
>

--f46d040716e38df75804cf6e13eb
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Roy--<div><br></div><div>That definitely solves part of the problem (there =
really need to be two status codes, one for the server and one for the poin=
t-to-point connection), but for a caching intermediary, it would like to kn=
ow up-front if it should bother to put that data into the cache. I know tha=
t I wouldn&#39;t want to put anything framed with connection closed into th=
e cache, and so having something propagate the nature of the worst point-to=
-point framing is probably useful.</div>
<div><br></div><div>-=3DR</div><div class=3D"gmail_extra"><br><br><div clas=
s=3D"gmail_quote">On Mon, Nov 26, 2012 at 3:03 PM, Roy T. Fielding <span di=
r=3D"ltr">&lt;<a href=3D"mailto:fielding@gbiv.com" target=3D"_blank">fieldi=
ng@gbiv.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div style=3D"word-wrap:break-word">In waka,=
 each message ends with an 8bit status code -- it is<div>either the same as=
 that given in the beginning or a new code if the</div>
<div>message was sent incomplete (on a request, it is used to indicate that=
</div><div>an upload is being aborted). =A0I send the entire code because I=
 want</div><div>to distinguish between &quot;origin closed connection&quot;=
 and &quot;intermediary</div>
<div>timed out waiting for more data from origin&quot;. =A0I assume that so=
mething</div><div>similar could be accomplished in SPDY=A0by ending the las=
t frame with</div><div>some sort of unexpected upstream=A0termination=A0bit=
.</div>
<span class=3D"HOEnZb"><font color=3D"#888888"><div><br></div><div>....Roy<=
/div></font></span><div><div class=3D"h5"><div><br></div><div><div><div>On =
Nov 26, 2012, at 2:36 PM, Adrien W. de Croy wrote:</div><br><blockquote typ=
e=3D"cite">
<span style=3D"border-collapse:separate;font-family:Monaco;font-style:norma=
l;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:=
normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-sp=
ace:normal;word-spacing:0px;font-size:medium"><div style=3D"font-family:Tah=
oma;font-size:12pt">
<div>=A0</div><div>in the case I was talking about, the intermediary alread=
y chunked the data.=A0 So it really has no option when the server closes.=
=A0 It can&#39;t close to the client without sending a 0 chunk, since that =
would turn a potentially complete resource into an aborted one.=A0 So it mu=
st send the 0 chunk.</div>
<div>=A0</div><div>Unless you&#39;re going to say any time the intermediary=
 expects the server to close it should not chunk the data to the client.</d=
iv><div>=A0</div><div>I think we&#39;re just stuck with this until 1.2 or 2=
.0 deprecates the mechanism completely.=A0 Has it really been that big a pr=
oblem?</div>
<div>=A0</div><div>Adrien</div><div><br>------ Original Message ------<br>F=
rom: &quot;Roberto Peon&quot; &lt;<a href=3D"mailto:grmocg@gmail.com" targe=
t=3D"_blank">grmocg@gmail.com</a>&gt;<br>To: &quot;Adrien W. de Croy&quot; =
&lt;<a href=3D"mailto:adrien@qbik.com" target=3D"_blank">adrien@qbik.com</a=
>&gt;<br>
Cc: &quot;Willy Tarreau&quot; &lt;<a href=3D"mailto:w@1wt.eu" target=3D"_bl=
ank">w@1wt.eu</a>&gt;;&quot;HTTP Working Group&quot; &lt;<a href=3D"mailto:=
ietf-http-wg@w3.org" target=3D"_blank">ietf-http-wg@w3.org</a>&gt;<br>Sent:=
 26/11/2012 11:23:30 p.m.<br>
Subject: Re: Message length and caches<br></div><blockquote type=3D"cite" s=
tyle=3D"margin-left:5px;margin-right:0px;padding-left:10px;padding-right:0p=
x;border-left-width:1px;border-left-style:solid;border-left-color:rgb(0,0,0=
)">
<div>I was understanding that Willy was suggesting that we potentially add =
a recommendation (or stronger) about what an intermediary should do when it=
 has a response which is framed by connection close.<div>Specifically, if a=
 response is framed by connection close, then, treat the response as if it =
was uncacheable and attempt to convey to the client that the originator of =
the response framed with connection close.</div>
<div>That indication could be accomplished by also framing with connection:=
 close, or it could take the form (if we extend the spec) of a new header o=
f some kind.</div><div>-=3DR</div><div class=3D"gmail_extra"><br><br><div c=
lass=3D"gmail_quote">
On Mon, Nov 26, 2012 at 12:09 AM, Adrien W. de Croy<span>=A0</span><span di=
r=3D"ltr">&lt;<a href=3D"mailto:adrien@qbik.com" target=3D"_blank"></a><a h=
ref=3D"mailto:adrien@qbik.com" target=3D"_blank">adrien@qbik.com</a>&gt;</s=
pan><span>=A0</span>wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left-color:rgb(204,204,20=
4);border-left-width:1px;border-left-style:solid;margin-top:0px;margin-righ=
t:0px;margin-bottom:0px;margin-left:0.8ex;padding-left:1ex">Hi Willy<br><br=
>
it actually gets worse than this.<br><br>Some intermediaries chunk emitted =
data if the server indicated it would close and sends no C-L (so that the i=
ntermediary can keep the client connection alive).<br><br>Since that interm=
ediary can&#39;t tell the difference between an abortive and normal close, =
it will send a 0 chunk on close.<br>
<br>So the receiver of that message will never know what happened.<br><br>S=
o I agree with Roberto about use of TCP close as a protocol signal, but we&=
#39;re stuck with it.<span><font color=3D"#888888"><br><br>Adrien</font></s=
pan><div>
<div><br><br><br>------ Original Message ------<br>From: &quot;Willy Tarrea=
u&quot; &lt;<a href=3D"mailto:w@1wt.eu" target=3D"_blank"></a><a href=3D"ma=
ilto:w@1wt.eu" target=3D"_blank">w@1wt.eu</a>&gt;<br>To: &quot;HTTP Working=
 Group&quot; &lt;<a href=3D"mailto:ietf-http-wg@w3.org" target=3D"_blank"><=
/a><a href=3D"mailto:ietf-http-wg@w3.org" target=3D"_blank">ietf-http-wg@w3=
.org</a>&gt;<br>
Sent: 26/11/2012 8:35:26 p.m.<br>Subject: Message length and caches<br><blo=
ckquote class=3D"gmail_quote" style=3D"border-left-color:rgb(204,204,204);b=
order-left-width:1px;border-left-style:solid;margin-top:0px;margin-right:0p=
x;margin-bottom:0px;margin-left:0.8ex;padding-left:1ex">
Hi,<br><br>When there is no explicit body length in a message, it is termin=
ated by<br>closing the connection. As we all know, this causes some ambigui=
ty for<br>the client because it doesn&#39;t know whether a response body is=
 complete<br>
or was truncated by anything along the path, including timeouts. Thus<br>I&=
#39;m wondering if some caches make a difference between such responses<br>=
or not (eg: a cache could decide not to cache objects terminated this<br>
way).<br><br>The reason is that we recently implemented support for gzip co=
mpression<br>in haproxy and I preferred not to add an explicit response end=
 to<br>messages which did not have one for the reason above. This results i=
n<br>
not compressing such responses at all (since we would not emit the<br>trail=
ing gzip header with crc, making all responses appear as truncated).<br><br=
>Do some people think that this practice is paranoid ? Maybe after all<br>
we could compress and chunk responses and make the client be certain<br>tha=
t the message is complete while we were not. It just makes me feel<br>a bit=
 like lying to the client.<br><br>Depending on common practices and opinion=
, I think that we could add<br>
a small paragraph in -p1 about this (eg: intermediaries should not<br>re-ch=
unk a close-delimited response).<br><br>Regards,<br>Willy</blockquote></div=
></div></blockquote></div></div></div></blockquote></div></span></blockquot=
e>
</div><br></div></div></div></div></blockquote></div><br></div>

--f46d040716e38df75804cf6e13eb--


From ietf-http-wg-request@listhub.w3.org  Mon Nov 26 15:14:53 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DAD9F21F84D9 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 15:14:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.598
X-Spam-Level: 
X-Spam-Status: No, score=-10.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KFN1cOds+W81 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 15:14:52 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id BA5E321F8586 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 26 Nov 2012 15:14:52 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Td7sa-0003Ow-6X for ietf-http-wg-dist@listhub.w3.org; Mon, 26 Nov 2012 23:14:20 +0000
Resent-Date: Mon, 26 Nov 2012 23:14:20 +0000
Resent-Message-Id: <E1Td7sa-0003Ow-6X@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1Td7sV-0003OC-0k for ietf-http-wg@listhub.w3.org; Mon, 26 Nov 2012 23:14:15 +0000
Received: from mail-la0-f43.google.com ([209.85.215.43]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1Td7sT-0000sc-HL for ietf-http-wg@w3.org; Mon, 26 Nov 2012 23:14:14 +0000
Received: by mail-la0-f43.google.com with SMTP id z14so9149860lag.2 for <ietf-http-wg@w3.org>; Mon, 26 Nov 2012 15:13:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=9SYrYa3ocjilj+kpocaa/n/q8Z6MGb6IyCTEju4mVjc=; b=dpFLYhxE3S+N1jyzljIGc0zni7Y9ggbn4Ypx6LfOHt3XUT/AletqtEsUYsoQHSduJ/ ZsxpSJ1+csdeSs9WmCNfLiBMQaBaqWaD4/MxX31cQ4rWEKtPfOm0Fypzz4tqynzA4xdJ vzI2j/PClsaoJOckBe8kYz5wag65JTir0tNKIJ3AGsPNU02xOQ/qeHNEobiQCRK9LOw0 yg9QIjX2YVpRMrvaY1XFTUwYVPxSywMtizbvblntb91N8scAK8XwiW2cVr5hn05YCV2o RY+ORRXgx4IfWSJ5irH2YC6JbacZwidpIbS2LNPdrGkJy4POWl9jN+iimkvdhfHXMSfA lX/g==
MIME-Version: 1.0
Received: by 10.112.8.67 with SMTP id p3mr2158871lba.103.1353971625845; Mon, 26 Nov 2012 15:13:45 -0800 (PST)
Received: by 10.112.128.200 with HTTP; Mon, 26 Nov 2012 15:13:45 -0800 (PST)
In-Reply-To: <CAP+FsNfcYJeGLDWVzq+N3skmPyTsjEe6iWyU860P8gajvcDyeA@mail.gmail.com>
References: <em62d6e00f-7444-4954-82ee-91ec97fe6894@bombed> <49E49F3E-4979-4681-BE47-A9CF1282DEAA@gbiv.com> <CAP+FsNfcYJeGLDWVzq+N3skmPyTsjEe6iWyU860P8gajvcDyeA@mail.gmail.com>
Date: Mon, 26 Nov 2012 15:13:45 -0800
Message-ID: <CAP+FsNenSXACqbAv_XjXodyNcHfQZbqQYvR2Uv=+hM41bYir-Q@mail.gmail.com>
From: Roberto Peon <grmocg@gmail.com>
To: "Roy T. Fielding" <fielding@gbiv.com>
Cc: "Adrien W. de Croy" <adrien@qbik.com>, Willy Tarreau <w@1wt.eu>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=00248c176b34cb62d404cf6e1539
Received-SPF: pass client-ip=209.85.215.43; envelope-from=grmocg@gmail.com; helo=mail-la0-f43.google.com
X-W3C-Hub-Spam-Status: No, score=-4.3
X-W3C-Hub-Spam-Report: AWL=-1.635, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1Td7sT-0000sc-HL 1b5f57f5cd6ef22e8d5cbc1459dd4871
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Message length and caches
Archived-At: <http://www.w3.org/mid/CAP+FsNenSXACqbAv_XjXodyNcHfQZbqQYvR2Uv=+hM41bYir-Q@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15674
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--00248c176b34cb62d404cf6e1539
Content-Type: text/plain; charset=ISO-8859-1

(or am I crazy? :) )
-=R


On Mon, Nov 26, 2012 at 3:13 PM, Roberto Peon <grmocg@gmail.com> wrote:

> Roy--
>
> That definitely solves part of the problem (there really need to be two
> status codes, one for the server and one for the point-to-point
> connection), but for a caching intermediary, it would like to know up-front
> if it should bother to put that data into the cache. I know that I wouldn't
> want to put anything framed with connection closed into the cache, and so
> having something propagate the nature of the worst point-to-point framing
> is probably useful.
>
> -=R
>
>
> On Mon, Nov 26, 2012 at 3:03 PM, Roy T. Fielding <fielding@gbiv.com>wrote:
>
>> In waka, each message ends with an 8bit status code -- it is
>> either the same as that given in the beginning or a new code if the
>> message was sent incomplete (on a request, it is used to indicate that
>> an upload is being aborted).  I send the entire code because I want
>> to distinguish between "origin closed connection" and "intermediary
>> timed out waiting for more data from origin".  I assume that something
>> similar could be accomplished in SPDY by ending the last frame with
>> some sort of unexpected upstream termination bit.
>>
>> ....Roy
>>
>> On Nov 26, 2012, at 2:36 PM, Adrien W. de Croy wrote:
>>
>>
>> in the case I was talking about, the intermediary already chunked the
>> data.  So it really has no option when the server closes.  It can't close
>> to the client without sending a 0 chunk, since that would turn a
>> potentially complete resource into an aborted one.  So it must send the 0
>> chunk.
>>
>> Unless you're going to say any time the intermediary expects the server
>> to close it should not chunk the data to the client.
>>
>> I think we're just stuck with this until 1.2 or 2.0 deprecates the
>> mechanism completely.  Has it really been that big a problem?
>>
>> Adrien
>>
>> ------ Original Message ------
>> From: "Roberto Peon" <grmocg@gmail.com>
>> To: "Adrien W. de Croy" <adrien@qbik.com>
>> Cc: "Willy Tarreau" <w@1wt.eu>;"HTTP Working Group" <ietf-http-wg@w3.org>
>> Sent: 26/11/2012 11:23:30 p.m.
>> Subject: Re: Message length and caches
>>
>> I was understanding that Willy was suggesting that we potentially add a
>> recommendation (or stronger) about what an intermediary should do when it
>> has a response which is framed by connection close.
>> Specifically, if a response is framed by connection close, then, treat
>> the response as if it was uncacheable and attempt to convey to the client
>> that the originator of the response framed with connection close.
>> That indication could be accomplished by also framing with connection:
>> close, or it could take the form (if we extend the spec) of a new header of
>> some kind.
>> -=R
>>
>>
>> On Mon, Nov 26, 2012 at 12:09 AM, Adrien W. de Croy < <adrien@qbik.com>
>> adrien@qbik.com> wrote:
>>
>>> Hi Willy
>>>
>>> it actually gets worse than this.
>>>
>>> Some intermediaries chunk emitted data if the server indicated it would
>>> close and sends no C-L (so that the intermediary can keep the client
>>> connection alive).
>>>
>>> Since that intermediary can't tell the difference between an abortive
>>> and normal close, it will send a 0 chunk on close.
>>>
>>> So the receiver of that message will never know what happened.
>>>
>>> So I agree with Roberto about use of TCP close as a protocol signal, but
>>> we're stuck with it.
>>>
>>> Adrien
>>>
>>>
>>>
>>> ------ Original Message ------
>>> From: "Willy Tarreau" < <w@1wt.eu>w@1wt.eu>
>>> To: "HTTP Working Group" < <ietf-http-wg@w3.org>ietf-http-wg@w3.org>
>>> Sent: 26/11/2012 8:35:26 p.m.
>>> Subject: Message length and caches
>>>
>>>> Hi,
>>>>
>>>> When there is no explicit body length in a message, it is terminated by
>>>> closing the connection. As we all know, this causes some ambiguity for
>>>> the client because it doesn't know whether a response body is complete
>>>> or was truncated by anything along the path, including timeouts. Thus
>>>> I'm wondering if some caches make a difference between such responses
>>>> or not (eg: a cache could decide not to cache objects terminated this
>>>> way).
>>>>
>>>> The reason is that we recently implemented support for gzip compression
>>>> in haproxy and I preferred not to add an explicit response end to
>>>> messages which did not have one for the reason above. This results in
>>>> not compressing such responses at all (since we would not emit the
>>>> trailing gzip header with crc, making all responses appear as
>>>> truncated).
>>>>
>>>> Do some people think that this practice is paranoid ? Maybe after all
>>>> we could compress and chunk responses and make the client be certain
>>>> that the message is complete while we were not. It just makes me feel
>>>> a bit like lying to the client.
>>>>
>>>> Depending on common practices and opinion, I think that we could add
>>>> a small paragraph in -p1 about this (eg: intermediaries should not
>>>> re-chunk a close-delimited response).
>>>>
>>>> Regards,
>>>> Willy
>>>
>>>
>>
>

--00248c176b34cb62d404cf6e1539
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

(or am I crazy? :) )<div>-=3DR</div><div class=3D"gmail_extra"><br><br><div=
 class=3D"gmail_quote">On Mon, Nov 26, 2012 at 3:13 PM, Roberto Peon <span =
dir=3D"ltr">&lt;<a href=3D"mailto:grmocg@gmail.com" target=3D"_blank">grmoc=
g@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Roy--<div><br></div><div>That definitely sol=
ves part of the problem (there really need to be two status codes, one for =
the server and one for the point-to-point connection), but for a caching in=
termediary, it would like to know up-front if it should bother to put that =
data into the cache. I know that I wouldn&#39;t want to put anything framed=
 with connection closed into the cache, and so having something propagate t=
he nature of the worst point-to-point framing is probably useful.</div>
<span class=3D"HOEnZb"><font color=3D"#888888">
<div><br></div><div>-=3DR</div></font></span><div class=3D"HOEnZb"><div cla=
ss=3D"h5"><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On =
Mon, Nov 26, 2012 at 3:03 PM, Roy T. Fielding <span dir=3D"ltr">&lt;<a href=
=3D"mailto:fielding@gbiv.com" target=3D"_blank">fielding@gbiv.com</a>&gt;</=
span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div style=3D"word-wrap:break-word">In waka,=
 each message ends with an 8bit status code -- it is<div>either the same as=
 that given in the beginning or a new code if the</div>

<div>message was sent incomplete (on a request, it is used to indicate that=
</div><div>an upload is being aborted). =A0I send the entire code because I=
 want</div><div>to distinguish between &quot;origin closed connection&quot;=
 and &quot;intermediary</div>

<div>timed out waiting for more data from origin&quot;. =A0I assume that so=
mething</div><div>similar could be accomplished in SPDY=A0by ending the las=
t frame with</div><div>some sort of unexpected upstream=A0termination=A0bit=
.</div>

<span><font color=3D"#888888"><div><br></div><div>....Roy</div></font></spa=
n><div><div><div><br></div><div><div><div>On Nov 26, 2012, at 2:36 PM, Adri=
en W. de Croy wrote:</div><br><blockquote type=3D"cite">
<span style=3D"border-collapse:separate;font-family:Monaco;font-style:norma=
l;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:=
normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-sp=
ace:normal;word-spacing:0px;font-size:medium"><div style=3D"font-family:Tah=
oma;font-size:12pt">

<div>=A0</div><div>in the case I was talking about, the intermediary alread=
y chunked the data.=A0 So it really has no option when the server closes.=
=A0 It can&#39;t close to the client without sending a 0 chunk, since that =
would turn a potentially complete resource into an aborted one.=A0 So it mu=
st send the 0 chunk.</div>

<div>=A0</div><div>Unless you&#39;re going to say any time the intermediary=
 expects the server to close it should not chunk the data to the client.</d=
iv><div>=A0</div><div>I think we&#39;re just stuck with this until 1.2 or 2=
.0 deprecates the mechanism completely.=A0 Has it really been that big a pr=
oblem?</div>

<div>=A0</div><div>Adrien</div><div><br>------ Original Message ------<br>F=
rom: &quot;Roberto Peon&quot; &lt;<a href=3D"mailto:grmocg@gmail.com" targe=
t=3D"_blank">grmocg@gmail.com</a>&gt;<br>To: &quot;Adrien W. de Croy&quot; =
&lt;<a href=3D"mailto:adrien@qbik.com" target=3D"_blank">adrien@qbik.com</a=
>&gt;<br>

Cc: &quot;Willy Tarreau&quot; &lt;<a href=3D"mailto:w@1wt.eu" target=3D"_bl=
ank">w@1wt.eu</a>&gt;;&quot;HTTP Working Group&quot; &lt;<a href=3D"mailto:=
ietf-http-wg@w3.org" target=3D"_blank">ietf-http-wg@w3.org</a>&gt;<br>Sent:=
 26/11/2012 11:23:30 p.m.<br>

Subject: Re: Message length and caches<br></div><blockquote type=3D"cite" s=
tyle=3D"margin-left:5px;margin-right:0px;padding-left:10px;padding-right:0p=
x;border-left-width:1px;border-left-style:solid;border-left-color:rgb(0,0,0=
)">

<div>I was understanding that Willy was suggesting that we potentially add =
a recommendation (or stronger) about what an intermediary should do when it=
 has a response which is framed by connection close.<div>Specifically, if a=
 response is framed by connection close, then, treat the response as if it =
was uncacheable and attempt to convey to the client that the originator of =
the response framed with connection close.</div>

<div>That indication could be accomplished by also framing with connection:=
 close, or it could take the form (if we extend the spec) of a new header o=
f some kind.</div><div>-=3DR</div><div class=3D"gmail_extra"><br><br><div c=
lass=3D"gmail_quote">

On Mon, Nov 26, 2012 at 12:09 AM, Adrien W. de Croy<span>=A0</span><span di=
r=3D"ltr">&lt;<a href=3D"mailto:adrien@qbik.com" target=3D"_blank"></a><a h=
ref=3D"mailto:adrien@qbik.com" target=3D"_blank">adrien@qbik.com</a>&gt;</s=
pan><span>=A0</span>wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"border-left-color:rgb(204,204,20=
4);border-left-width:1px;border-left-style:solid;margin-top:0px;margin-righ=
t:0px;margin-bottom:0px;margin-left:0.8ex;padding-left:1ex">Hi Willy<br><br=
>

it actually gets worse than this.<br><br>Some intermediaries chunk emitted =
data if the server indicated it would close and sends no C-L (so that the i=
ntermediary can keep the client connection alive).<br><br>Since that interm=
ediary can&#39;t tell the difference between an abortive and normal close, =
it will send a 0 chunk on close.<br>

<br>So the receiver of that message will never know what happened.<br><br>S=
o I agree with Roberto about use of TCP close as a protocol signal, but we&=
#39;re stuck with it.<span><font color=3D"#888888"><br><br>Adrien</font></s=
pan><div>

<div><br><br><br>------ Original Message ------<br>From: &quot;Willy Tarrea=
u&quot; &lt;<a href=3D"mailto:w@1wt.eu" target=3D"_blank"></a><a href=3D"ma=
ilto:w@1wt.eu" target=3D"_blank">w@1wt.eu</a>&gt;<br>To: &quot;HTTP Working=
 Group&quot; &lt;<a href=3D"mailto:ietf-http-wg@w3.org" target=3D"_blank"><=
/a><a href=3D"mailto:ietf-http-wg@w3.org" target=3D"_blank">ietf-http-wg@w3=
.org</a>&gt;<br>

Sent: 26/11/2012 8:35:26 p.m.<br>Subject: Message length and caches<br><blo=
ckquote class=3D"gmail_quote" style=3D"border-left-color:rgb(204,204,204);b=
order-left-width:1px;border-left-style:solid;margin-top:0px;margin-right:0p=
x;margin-bottom:0px;margin-left:0.8ex;padding-left:1ex">

Hi,<br><br>When there is no explicit body length in a message, it is termin=
ated by<br>closing the connection. As we all know, this causes some ambigui=
ty for<br>the client because it doesn&#39;t know whether a response body is=
 complete<br>

or was truncated by anything along the path, including timeouts. Thus<br>I&=
#39;m wondering if some caches make a difference between such responses<br>=
or not (eg: a cache could decide not to cache objects terminated this<br>

way).<br><br>The reason is that we recently implemented support for gzip co=
mpression<br>in haproxy and I preferred not to add an explicit response end=
 to<br>messages which did not have one for the reason above. This results i=
n<br>

not compressing such responses at all (since we would not emit the<br>trail=
ing gzip header with crc, making all responses appear as truncated).<br><br=
>Do some people think that this practice is paranoid ? Maybe after all<br>

we could compress and chunk responses and make the client be certain<br>tha=
t the message is complete while we were not. It just makes me feel<br>a bit=
 like lying to the client.<br><br>Depending on common practices and opinion=
, I think that we could add<br>

a small paragraph in -p1 about this (eg: intermediaries should not<br>re-ch=
unk a close-delimited response).<br><br>Regards,<br>Willy</blockquote></div=
></div></blockquote></div></div></div></blockquote></div></span></blockquot=
e>

</div><br></div></div></div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>

--00248c176b34cb62d404cf6e1539--


From ietf-http-wg-request@listhub.w3.org  Mon Nov 26 15:47:48 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EE6D121F84D3 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 15:47:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FK7cYZ42Irhd for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 15:47:46 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id C677921F8479 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 26 Nov 2012 15:47:46 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Td8NL-000427-0T for ietf-http-wg-dist@listhub.w3.org; Mon, 26 Nov 2012 23:46:07 +0000
Resent-Date: Mon, 26 Nov 2012 23:46:07 +0000
Resent-Message-Id: <E1Td8NL-000427-0T@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <dwm@xpasc.com>) id 1Td8NG-00041A-Lu for ietf-http-wg@listhub.w3.org; Mon, 26 Nov 2012 23:46:02 +0000
Received: from c2w3p-2.abacamail.com ([209.133.53.32]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <dwm@xpasc.com>) id 1Td8NF-0002GQ-14 for ietf-http-wg@w3.org; Mon, 26 Nov 2012 23:46:02 +0000
Received: from xpasc.com (unknown [68.164.244.188]) by c2w3p-2.abacamail.com (Postfix) with ESMTP id 69C0740065 for <ietf-http-wg@w3.org>; Mon, 26 Nov 2012 23:45:33 +0000 (UTC)
Received: from egate.xpasc.com (egate.xpasc.com [10.1.2.49]) by xpasc.com (8.13.8/8.13.8) with ESMTP id qAQNjXQ5022199 for <ietf-http-wg@w3.org>; Mon, 26 Nov 2012 15:45:33 -0800
Date: Mon, 26 Nov 2012 15:45:33 -0800 (PST)
From: David Morris <dwm@xpasc.com>
Reply-To: "'HTTP Working Group'" <ietf-http-wg@w3.org>
To: "'HTTP Working Group'" <ietf-http-wg@w3.org>
In-Reply-To: <em62d6e00f-7444-4954-82ee-91ec97fe6894@bombed>
Message-ID: <alpine.LRH.2.01.1211261538520.20780@egate.xpasc.com>
References: <em62d6e00f-7444-4954-82ee-91ec97fe6894@bombed>
User-Agent: Alpine 2.01 (LRH 1266 2009-07-14)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Milter-Version: master.1+13-gbab1945
X-AV-Type: clean
X-AV-Accuracy: exact
Received-SPF: pass client-ip=209.133.53.32; envelope-from=dwm@xpasc.com; helo=c2w3p-2.abacamail.com
X-W3C-Hub-Spam-Status: No, score=-1.9
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1Td8NF-0002GQ-14 397fe93fa0831dc7c04bda1a8ef3c830
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Message length and caches
Archived-At: <http://www.w3.org/mid/alpine.LRH.2.01.1211261538520.20780@egate.xpasc.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15675
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Mon, 26 Nov 2012, Adrien W. de Croy wrote:

> 
> in the case I was talking about, the intermediary already chunked the data.
> So it really has no option when the server closes.  It can't close to the
> client without sending a 0 chunk, since that would turn a potentially complete
> resource into an aborted one.  So it must send the 0 chunk.
> 
> Unless you're going to say any time the intermediary expects the server to
> close it should not chunk the data to the client.
> 
> I think we're just stuck with this until 1.2 or 2.0 deprecates the mechanism
> completely.  Has it really been that big a problem?

In case where the origin server provides a response claimed to be 1.1 w/o
a content length or chunked encoding, that is an invalid HTTP/1.1 
response, is it not? That error needs to be signaled to the client so I
think the proper handling is to close the chunked response stream W/O 
sending the 0 chunk .. yes there is a penalty here of closing the
connection, but this is an error and I believe it MUST be signaled as
effectively as possible. If we really had effective trailers, that would
be a better handling alternative.


From ietf-http-wg-request@listhub.w3.org  Mon Nov 26 16:16:43 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 956CF21F8742 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 16:16:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wsY+hsbMcALS for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 16:16:42 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id CCCF521F84BB for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 26 Nov 2012 16:16:42 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Td8pb-0000ZO-Mw for ietf-http-wg-dist@listhub.w3.org; Tue, 27 Nov 2012 00:15:19 +0000
Resent-Date: Tue, 27 Nov 2012 00:15:19 +0000
Resent-Message-Id: <E1Td8pb-0000ZO-Mw@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <adrien@qbik.com>) id 1Td8pX-0000Y4-0m for ietf-http-wg@listhub.w3.org; Tue, 27 Nov 2012 00:15:15 +0000
Received: from smtp.qbik.com ([210.55.214.35]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <adrien@qbik.com>) id 1Td8pV-0003GM-Ky; Tue, 27 Nov 2012 00:15:14 +0000
Received: From [192.168.0.10] (unverified [192.168.0.10]) by SMTP Server [192.168.0.1] (WinGate SMTP Receiver v7.2.8 (Build 3469)) with SMTP id <0019374404@smtp.qbik.com>; Tue, 27 Nov 2012 13:15:27 +1300
From: "Adrien W. de Croy" <adrien@qbik.com>
To: "'HTTP Working Group'" <ietf-http-wg@w3.org>, "'HTTP Working Group'" <ietf-http-wg@w3.org>
Date: Tue, 27 Nov 2012 00:14:45 +0000
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; format=flowed; charset=utf-8
In-Reply-To: <alpine.LRH.2.01.1211261538520.20780@egate.xpasc.com>
Message-Id: <emf98aa428-2994-4633-bf43-49d71ff4cd3a@bombed>
Mime-Version: 1.0
Reply-To: "Adrien W. de Croy" <adrien@qbik.com>
User-Agent: eM_Client/4.0.15145.0
Received-SPF: pass client-ip=210.55.214.35; envelope-from=adrien@qbik.com; helo=smtp.qbik.com
X-W3C-Hub-Spam-Status: No, score=-4.3
X-W3C-Hub-Spam-Report: AWL=-2.026, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.368, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1Td8pV-0003GM-Ky 62a0cbef649ca95e5aed94c890d5573f
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Message length and caches
Archived-At: <http://www.w3.org/mid/emf98aa428-2994-4633-bf43-49d71ff4cd3a@bombed>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15676
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

------ Original Message ------
From: "David Morris" <dwm@xpasc.com>
>On Mon, 26 Nov 2012, Adrien W. de Croy wrote:
>
>
>>
>>
>>in the case I was talking about, the intermediary already chunked the =
data.
>>So it really has no option when the server closes.  It can't close to =
the
>>client without sending a 0 chunk, since that would turn a potentially =
complete
>>resource into an aborted one.  So it must send the 0 chunk.
>>
>>Unless you're going to say any time the intermediary expects the server=
 to
>>close it should not chunk the data to the client.
>>
>>I think we're just stuck with this until 1.2 or 2.0 deprecates the mechan=
ism
>>completely.  Has it really been that big a problem?
>>
>
>
>In case where the origin server provides a response claimed to be 1.1 w/o
>a content length or chunked encoding, that is an invalid HTTP/1.1
>response, is it not?
>
nope, it should indicate Connection: close though

>That error needs to be signaled to the client so I
>think the proper handling is to close the chunked response stream W/O
>sending the 0 chunk .. yes there is a penalty here of closing the
>connection, but this is an error and I believe it MUST be signaled as
>effectively as possible. If we really had effective trailers, that would
>be a better handling alternative.
>
>
>


I'd prefer extending the chunk schema to allow for some sort of status=20
rather than using a trailer which is an HTTP header relating to the=20
entity rather than transfer thereof

but this is moot? Unless we are going to target a 1.2, we won't be=20
extending chunking in the same way, and the new chunk design should=20
have room for signalling all manner of issues.

and should probably be the only transfer mechanism.

instead of a 0 chunk, we could adopt an IP header approach - more=20
fragments or not.  That would allow transfer of an entity in a single=20
chunk without requiring an additional PDU to close the stream.

Adrien
>



From ietf-http-wg-request@listhub.w3.org  Mon Nov 26 18:40:08 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1E6FF21F8470 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 18:40:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.902
X-Spam-Level: 
X-Spam-Status: No, score=-7.902 tagged_above=-999 required=5 tests=[AWL=2.697, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FLTAMFx+MGg3 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 18:40:07 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id E33CF21F8466 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 26 Nov 2012 18:40:06 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdB3Y-0000aN-GL for ietf-http-wg-dist@listhub.w3.org; Tue, 27 Nov 2012 02:37:52 +0000
Resent-Date: Tue, 27 Nov 2012 02:37:52 +0000
Resent-Message-Id: <E1TdB3Y-0000aN-GL@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TdB3T-0000Zi-P5 for ietf-http-wg@listhub.w3.org; Tue, 27 Nov 2012 02:37:47 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TdB3S-0006ic-MX for ietf-http-wg@w3.org; Tue, 27 Nov 2012 02:37:47 +0000
Received: from [192.168.1.75] (unknown [118.209.244.234]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 1B419509B9 for <ietf-http-wg@w3.org>; Mon, 26 Nov 2012 21:37:23 -0500 (EST)
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <4AC2AE4C-DCA9-4E05-9442-7D96C7C6AB9F@mnot.net>
Date: Tue, 27 Nov 2012 13:37:20 +1100
Content-Transfer-Encoding: quoted-printable
Message-Id: <5C4DDBA2-B50D-43AA-A3BB-ECAF10C4FB03@mnot.net>
References: <4AC2AE4C-DCA9-4E05-9442-7D96C7C6AB9F@mnot.net>
To: HTTP Working Group <ietf-http-wg@w3.org>
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-4.2
X-W3C-Hub-Spam-Report: AWL=-2.262, BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TdB3S-0006ic-MX d1115a3db652355ac787d7b24f81de6c
X-Original-To: ietf-http-wg@w3.org
Subject: Re: WGLC issue: 'no-transform'
Archived-At: <http://www.w3.org/mid/5C4DDBA2-B50D-43AA-A3BB-ECAF10C4FB03@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15677
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

... now <http://trac.tools.ietf.org/wg/httpbis/trac/ticket/418>.


On 26/11/2012, at 4:58 PM, Mark Nottingham <mnot@mnot.net> wrote:

> p1 says:
>=20
>> A proxy must not modify or add any of the following fields in a =
message that contains the no-transform cache-control directive:
>>=20
>> 	=95 Content-Encoding (Section 3.1.2.2 of [Part2])
>> 	=95 Content-Range (Section 5.2 of [Part5])
>> 	=95 Content-Type (Section 3.1.1.5 of [Part2])
>> A transforming proxy may modify or add these fields to a message that =
does not include no-transform, but if it does so, it must add a Warning =
214 (Transformation applied) if one does not already appear in the =
message (see Section 7.5 of [Part6]).
>=20
> p6 says:=20
>=20
>> 7.2.2.9 no-transform
>>=20
>> The "no-transform" response directive indicates that an intermediary =
(regardless of whether it implements a cache) must not change the =
Content-Encoding, Content-Range orContent-Type response header fields, =
nor the response representation.
>=20
> 2616 was a bit more wordy:
>=20
>> 14.9.5 No-Transform Directive
>>=20
>>   no-transform
>>      Implementors of intermediate caches (proxies) have found it =
useful
>>      to convert the media type of certain entity bodies. A non-
>>      transparent proxy might, for example, convert between image
>>      formats in order to save cache space or to reduce the amount of
>>      traffic on a slow link.
>>=20
>>      Serious operational problems occur, however, when these
>>      transformations are applied to entity bodies intended for =
certain
>>      kinds of applications. For example, applications for medical
>>      imaging, scientific data analysis and those using end-to-end
>>      authentication, all depend on receiving an entity body that is =
bit
>>      for bit identical to the original entity-body.
>>=20
>>      Therefore, if a message includes the no-transform directive, an
>>      intermediate cache or proxy MUST NOT change those headers that =
are
>>      listed in section 13.5.2 as being subject to the no-transform
>>      directive. This implies that the cache or proxy MUST NOT change
>>      any aspect of the entity-body that is specified by these =
headers,
>>      including the value of the entity-body itself.
>=20
>=20
> (the text currently in p1 closely corresponds to that in 2616's =
13.5.2).
>=20
> The issue here is that the intent in 2616 is clear -- the body =
shouldn't be modified if no-transform is present -- but since we split =
it up, a reader of p1 doesn't have any indication of this unless they =
chase up in p6 (note there isn't any reference, beyond the unrelated one =
to the Warning header).
>=20
> I'd suggest we need p1 to explicitly say the body can't be changed, as =
p6 does.
>=20
> While we're at it, changing "A proxy must not modify or add any of the =
following fields..." to "A proxy (transparent or non-transparent) must =
not modify or add any of the following fields " would make what's going =
on a lot clearer.
>=20
> --
> Mark Nottingham   http://www.mnot.net/
>=20
>=20
>=20
>=20

--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Mon Nov 26 19:17:02 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4451B21F87D2 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 19:17:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.441
X-Spam-Level: 
X-Spam-Status: No, score=-8.441 tagged_above=-999 required=5 tests=[AWL=2.158, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2xlZSRXIhKje for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 19:17:01 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 7B9B021F8759 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 26 Nov 2012 19:17:01 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdBeC-0001FN-2b for ietf-http-wg-dist@listhub.w3.org; Tue, 27 Nov 2012 03:15:44 +0000
Resent-Date: Tue, 27 Nov 2012 03:15:44 +0000
Resent-Message-Id: <E1TdBeC-0001FN-2b@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TdBe6-0001E5-ND for ietf-http-wg@listhub.w3.org; Tue, 27 Nov 2012 03:15:38 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TdBe5-0007sl-JL for ietf-http-wg@w3.org; Tue, 27 Nov 2012 03:15:38 +0000
Received: from [192.168.1.75] (unknown [118.209.244.234]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 55989509B5; Mon, 26 Nov 2012 22:15:14 -0500 (EST)
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <0C1C32C4-FAFF-4BC1-A8D4-F5B8524E0CF1@mnot.net>
Date: Tue, 27 Nov 2012 14:15:11 +1100
Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <C7570068-9D1A-45AF-934F-54A83EDE2AA7@mnot.net>
References: <507A332B.3020301@treenet.co.nz> <BD13C05A-992C-4EB9-874F-577F726CE6D9@mnot.net> <50A4CADD.5070205@treenet.co.nz> <0C1C32C4-FAFF-4BC1-A8D4-F5B8524E0CF1@mnot.net>
To: Amos Jeffries <squid3@treenet.co.nz>
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: AWL=-2.232, BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TdBe5-0007sl-JL 4a2ccf963416a25e14603e8aa8301c38
X-Original-To: ietf-http-wg@w3.org
Subject: Re: #403: cacheability of Authentication and no-cache
Archived-At: <http://www.w3.org/mid/C7570068-9D1A-45AF-934F-54A83EDE2AA7@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15678
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

I've removed the caching-specific language from p7 and replaced it with =
a reference to p6.

Amos, I think we can close the issue now; please speak up if you have =
more information.

Cheers,


On 16/11/2012, at 9:23 AM, Mark Nottingham <mnot@mnot.net> wrote:

>=20
> On 15/11/2012, at 9:58 PM, Amos Jeffries <squid3@treenet.co.nz> wrote:
>=20
>> On 15/11/2012 6:50 p.m., Mark Nottingham wrote:
>>> Hi Amos,
>>>=20
>>> I've created that as =
<http://trac.tools.ietf.org/wg/httpbis/trac/ticket/403>.
>>>=20
>>> My .02 -- I seem to remember some discussion about this. While it's =
true that revalidation is necessary to make an authenticated, cached =
response work properly, it doesn't follow that every condition that =
would lead to mandatory revalidation is a signal from the origin server =
that it's OK to cache the response to an authenticated request. =
"no-cache" is a particularly poor example of such a signal, since it's =
often misunderstood.
>>>=20
>>> IIRC this is why we left no-cache out.
>>=20
>> I'm not quite sure I follow that. You left no-cache out of the list =
because it would be hard to explain rather than its semantics were wrong =
for the job?
>> Or can anyone point me at a use case where no-cache would cause the =
wrong behaviour when storing an authenticated response?
>=20
> It's easy enough to explain; we'd just add it to the list. The issue =
IIRC is that the other directives have always been an explicit signal =
from the origin that it's OK to store an authenticated response; =
no-cache has never explicitly been that signal, even though its =
behaviour may be similar. Changing that signal retroactively may have =
surprising effects for some who didn't intend it to be interpreted that =
way.
>=20
> Cheers,
>=20
> --
> Mark Nottingham   http://www.mnot.net/
>=20
>=20
>=20
>=20

--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Mon Nov 26 19:32:02 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6302D21F8469 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 19:32:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.573
X-Spam-Level: 
X-Spam-Status: No, score=-7.573 tagged_above=-999 required=5 tests=[AWL=0.571, BAYES_00=-2.599, FRT_ADOBE2=2.455, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i3rQ4aY3erCH for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 19:32:01 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 1B07721F8468 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 26 Nov 2012 19:32:01 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdBss-0007jZ-Iv for ietf-http-wg-dist@listhub.w3.org; Tue, 27 Nov 2012 03:30:54 +0000
Resent-Date: Tue, 27 Nov 2012 03:30:54 +0000
Resent-Message-Id: <E1TdBss-0007jZ-Iv@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TdBsa-0007iC-Hi for ietf-http-wg@listhub.w3.org; Tue, 27 Nov 2012 03:30:36 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TdBsY-0008F0-Op for ietf-http-wg@w3.org; Tue, 27 Nov 2012 03:30:36 +0000
Received: from [192.168.1.75] (unknown [118.209.244.234]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 5158A509B6; Mon, 26 Nov 2012 22:30:10 -0500 (EST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <677A9831-0C89-4506-B4D9-F34B7C664879@mnot.net>
Date: Tue, 27 Nov 2012 14:30:07 +1100
Cc: Larry Masinter <masinter@adobe.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <79D29054-A52F-4B96-AE5C-23DD3D32E969@mnot.net>
References: <7D2A809E-F3E0-4128-AFEA-8EEEBF3AC26E@mnot.net> <ACD069C6-1CD9-4CD1-9644-BA82C0B9DE84@mnot.net> <C68CB012D9182D408CED7B884F441D4D1E3702753B@nambxv01a.corp.adobe.com> <A6CCA03C-5D9E-4FCD-9AB2-652461027CB3@mnot.net> <7298A7B1-2D63-48BC-B396-A994429FDF81@gbiv.com> <677A9831-0C89-4506-B4D9-F34B7C664879@mnot.net>
To: "Roy T. Fielding" <fielding@gbiv.com>
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-3.6
X-W3C-Hub-Spam-Report: AWL=-2.702, BAYES_00=-1.9, FRT_ADOBE2=1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TdBsY-0008F0-Op 3bcbb01ef20dc6c114f9f58f60313bda
X-Original-To: ietf-http-wg@w3.org
Subject: Re: #401 /#402: Our old friends, weak ETags
Archived-At: <http://www.w3.org/mid/79D29054-A52F-4B96-AE5C-23DD3D32E969@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15679
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

I've recorded the resolution for incorporation in -22 as:

>   a. add a MUST requirement for strong ETag uniqueness, and
>   b. clarify in prose that if you issue the same weak ETag for *any* =
two representations of a resource, you consider them interchangeable =
(possibly in the examples), and
>   c. clarify the definition of ETags WRT "differentiate"




On 19/11/2012, at 5:11 PM, Mark Nottingham <mnot@mnot.net> wrote:

>=20
> On 19/11/2012, at 5:01 PM, "Roy T. Fielding" <fielding@gbiv.com> =
wrote:
>=20
>> I think you are misunderstanding the "for differentiating between".
>> It does not imply that all entity tags uniquely differentiate.
>=20
> Perhaps, but it's easy to misunderstand. Can you suggest a =
clarification?
>=20
>=20
>=20
>>=20
>> ....Roy
>>=20
>> On Nov 18, 2012, at 3:12 PM, Mark Nottingham wrote:
>>=20
>>> OK, so it sounds like the proposal for #401 is to:
>>>=20
>>> a) add a requirement for strong ETag uniqueness, and
>>> b) clarify in prose that if you issue the same weak ETag for *any* =
two representations of a resource, you consider them interchangeable =
(possibly in the examples), and
>>> c) change the definition of ETags from:
>>>=20
>>>> An entity-tag is an opaque validator for differentiating between =
multiple
>>>> representations of the same resource, regardless of whether those =
multiple
>>>> representations are due to resource state changes over time, =
content
>>>> negotiation resulting in multiple representations being valid at =
the same time, or
>>>> both.
>>>=20
>>> to:
>>>=20
>>>> An entity-tag is an opaque validator with a weakness flag.=20
>>>=20
>>> Make sense?
>>>=20
>>>=20
>>>=20
>>> On 19/11/2012, at 7:33 AM, Larry Masinter <masinter@adobe.com> =
wrote:
>>>=20
>>>>>> When an ETag is marked weak with "W/", it need not change across =
different
>>>>> content encodings. "Weak" means the entity is semantically =
equivalent but not
>>>>> bit-equivalent. But Redbot complains that it doesn't change with =
different
>>>>> content encodings.
>>>>>> """
>>>>>>=20
>>>>>> Looking into this, a couple of things pop up:
>>>>>>=20
>>>>>> 1) The obvious question, whether two different *negotiated* =
representations
>>>>> of the same resource can (or should) have the same weak ETag.
>>>>=20
>>>> The intent of a weak ETag was to let the server decide. So two =
different negotiated representations _can_ have the same weak ETag, but =
whether they SHOULD have the same weak ETag is up to the server to =
decide whether it is happy about it.
>>>>=20
>>>>=20
>>>> Our current
>>>>> definition is this:
>>>>>>=20
>>>>>> """
>>>>>> In contrast, a "weak validator" is a representation metadata =
value that might
>>>>> not be changed for every change to the representation data. This =
weakness
>>>>> might be due to limitations in how the value is calculated, such =
as clock
>>>>> resolution or an inability to ensure uniqueness for all possible =
representations of
>>>>> the resource, or due to a desire by the resource owner to group
>>>>> representations by some self-determined set of equivalency rather =
than unique
>>>>> sequences of data. An origin server should change a weak =
entity-tag whenever
>>>>> it considers prior representations to be unacceptable as a =
substitute for the
>>>>> current representation. In other words, a weak entity-tag ought to =
change
>>>>> whenever the origin server wants caches to invalidate old =
responses.
>>>>>> """ =
<https://svn.tools.ietf.org/svn/wg/httpbis/draft-ietf-httpbis/latest/p4-
>>>>> conditional.html#weak.and.strong.validators>
>>>>>>=20
>>>>>> Strictly speaking, I don't think this is a problem for caches; =
following the rules
>>>>> for reusing a stored response =
<https://svn.tools.ietf.org/svn/wg/httpbis/draft-
>>>>> =
ietf-httpbis/latest/p6-cache.html#constructing.responses.from.caches>, a
>>>>> cache doesn't use the ETag to select a representation (what we =
used to call a
>>>>> variant) from a pool of many.
>>>>>>=20
>>>>>> Having said that, I'm still a bit uneasy. An ETag is supposed to =
be scoped to an
>>>>> entire resource, not just the selected representation. Because the =
response is
>>>>> negotiated, I'm tempted to argue that a compressed response is NOT
>>>>> semantically equivalent to an uncompressed one, just as a French =
response isn't
>>>>> equivalent to an English one, because the client has stated they =
don't
>>>>> understand English.
>>>>=20
>>>> An image which is mainly just an image but has a few French words =
might be preferred for French and the same image with a few English =
words replaced might be preferred for English, if you're doing content =
negotiation, but the server can decide to give them the same weak ETag =
if the server wants to, or not.=20
>>>>=20
>>>>=20
>>>>=20
>>>>>> Thoughts? Is it worth clarifying this, or is it acceptable to =
have two different
>>>>> negotiated representations of the same resource share a weak ETag?
>>>>>=20
>>>>> Thinking about this a bit more, I think my uneasiness stems from a =
situation
>>>>> where the server has sent these two responses (with the same =
target URI):
>>>>>=20
>>>>> Vary: Accept-Encoding
>>>>> Content-Encoding: gzip
>>>>> ETag: W/"abc"
>>>>>=20
>>>>> Vary: Accept-Encoding
>>>>> ETag: W/"abc"
>>>>>=20
>>>>> This is effectively contradicting itself; Vary indicates that the =
response differs
>>>>> based upon the Accept-Encoding request header (and =
Content-Encoding
>>>>> confirms that), but the ETag says that they're the same (albeit, =
only
>>>>> "semantically" the same).
>>>>=20
>>>> I don't see the problem. The server is saying "If you want to use =
the old one instead of the new one, go ahead, it's fine with me".
>>>>=20
>>>>=20
>>>>> OTOH, I don't see any hard requirements for ETag uniqueness within =
the scope
>>>>> of a resource -- either in 2616 or bis -- so technically, the =
example above could
>>>>> be with strong ETags and still be confomant. I think it'd still be =
functional within
>>>>> the caching spec as well (although some implementations may not =
behave well).
>>>>=20
>>>> I disagree about strong ETags, here, because you should be able to =
do byte range computations if you have strong ETags.
>>>>=20
>>>>> Both, however, conflict with our current description of ETag's =
semantics (or at
>>>>> least its spirit):
>>>>>=20
>>>>>> An entity-tag is an opaque validator for differentiating between =
multiple
>>>>> representations of the same resource, regardless of whether those =
multiple
>>>>> representations are due to resource state changes over time, =
content
>>>>> negotiation resulting in multiple representations being valid at =
the same time, or
>>>>> both.
>>>>>=20
>>>>> I see a couple of possible ways forward:
>>>>>=20
>>>>> a) Require that ETags differ when the server performs selection / =
conneg,
>>>>> regardless of their strength.
>>>>=20
>>>> I think this is inconsistent with the purpose of weak ETags. Yes, =
for strong ones.
>>>>=20
>>>>> b) Explain in prose that content negotiation usually affects the =
meaning of the
>>>>> response, therefore necessitating a different ETag.
>>>>=20
>>>> Ditto
>>>>=20
>>>>> c) Modify the definition of ETag to avoid this conflict
>>>>=20
>>>> Clarify the definition of ETag possibly.
>>>>=20
>>>>> (Those are in my personal preference order; however, I'm more =
interested in
>>>>> getting the issue solved than any particular outcome)
>>>>>=20
>>>>> Separate from that, I wonder if we should place specific =
requirements on ETag
>>>>> uniqueness across the representations of a resource. It'd likely =
be that strong
>>>>> ETags MUST differ when the body is byte-for-byte different,  or =
there is a
>>>>> meaningful change in the representation's headers;
>>>>=20
>>>> Yes
>>>>=20
>>>>> for weak ETags, it'd be a
>>>>> meaningful change in the headers or body (when "meaningful" is =
defined by the
>>>>> server).
>>>>=20
>>>> I think the server can decide based on whatever criteria it wants =
-- time of day, name of client, cookies, session state, whatever.=20
>>>>=20
>>>>> Thoughts?
>>>>>=20
>>>>>=20
>>>>>> 2) In the definitions of If-Match and If-None-Match, we don't =
specify whether
>>>>> the weak or strong comparison function is to be used when these =
validations
>>>>> actually occur, although we spend a lot of text on when to use =
weak vs. strong
>>>>> ETags themselves.
>>>>>>=20
>>>>>> Now, you might say that an origin server can decide whether to =
use the weak
>>>>> or strong function, but an intermediary or client cache doesn't =
have license to do
>>>>> weak comparison, and could cause a lot of trouble if it did. =
AFAICT we don't
>>>>> specify this, but I think we should.
>>>>=20
>>>> The weak ETag response *is* the license. =20
>>>>>=20
>>>>> I propose we specify that proxy and client caches MUST use the =
strong
>>>>> comparison function with If-Match and If-None-Match.
>>>>=20
>>>> Why gut the intent of weak ETags?
>>>>=20
>>>>> --
>>>>> Mark Nottingham   http://www.mnot.net/
>>>>>=20
>>>>>=20
>>>>>=20
>>>>=20
>>>=20
>>> --
>>> Mark Nottingham   http://www.mnot.net/
>>>=20
>>>=20
>>>=20
>>>=20
>>=20
>=20
> --
> Mark Nottingham   http://www.mnot.net/
>=20
>=20
>=20

--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Mon Nov 26 19:38:48 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4F5D421F846C for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 19:38:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.655
X-Spam-Level: 
X-Spam-Status: No, score=-7.655 tagged_above=-999 required=5 tests=[AWL=0.489, BAYES_00=-2.599, FRT_ADOBE2=2.455, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id msRwX4uRIAiR for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 19:38:47 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 9B70221F846A for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 26 Nov 2012 19:38:47 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdBzn-000131-FZ for ietf-http-wg-dist@listhub.w3.org; Tue, 27 Nov 2012 03:38:03 +0000
Resent-Date: Tue, 27 Nov 2012 03:38:03 +0000
Resent-Message-Id: <E1TdBzn-000131-FZ@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TdBzi-00011Y-6j for ietf-http-wg@listhub.w3.org; Tue, 27 Nov 2012 03:37:58 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TdBzh-0002un-4b for ietf-http-wg@w3.org; Tue, 27 Nov 2012 03:37:58 +0000
Received: from [192.168.1.75] (unknown [118.209.244.234]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 7F3E9509B8; Mon, 26 Nov 2012 22:37:34 -0500 (EST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <C68CB012D9182D408CED7B884F441D4D1E3702753B@nambxv01a.corp.adobe.com>
Date: Tue, 27 Nov 2012 14:37:31 +1100
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <BCB8C7DC-CB92-47AB-B800-A175608D6D02@mnot.net>
References: <7D2A809E-F3E0-4128-AFEA-8EEEBF3AC26E@mnot.net> <ACD069C6-1CD9-4CD1-9644-BA82C0B9DE84@mnot.net> <C68CB012D9182D408CED7B884F441D4D1E3702753B@nambxv01a.corp.adobe.com>
To: Larry Masinter <masinter@adobe.com>
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-3.6
X-W3C-Hub-Spam-Report: AWL=-2.738, BAYES_00=-1.9, FRT_ADOBE2=1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TdBzh-0002un-4b 14aa13ebd4a2bfb143b0126fead4466d
X-Original-To: ietf-http-wg@w3.org
Subject: #402: Comparison function for If-Match and If-None-Match
Archived-At: <http://www.w3.org/mid/BCB8C7DC-CB92-47AB-B800-A175608D6D02@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15680
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

<http://trac.tools.ietf.org/wg/httpbis/trac/ticket/402>

On 19/11/2012, at 7:33 AM, Larry Masinter <masinter@adobe.com> wrote:

>>> 2) In the definitions of If-Match and If-None-Match, we don't =
specify whether
>> the weak or strong comparison function is to be used when these =
validations
>> actually occur, although we spend a lot of text on when to use weak =
vs. strong
>> ETags themselves.
>>>=20
>>> Now, you might say that an origin server can decide whether to use =
the weak
>> or strong function, but an intermediary or client cache doesn't have =
license to do
>> weak comparison, and could cause a lot of trouble if it did. AFAICT =
we don't
>> specify this, but I think we should.
>=20
> The weak ETag response *is* the license. =20
>>=20
>> I propose we specify that proxy and client caches MUST use the strong
>> comparison function with If-Match and If-None-Match.
>=20
> Why gut the intent of weak ETags?

OK, makes sense. Any issue with documenting them as using the weak =
comparison function?

Regards,

--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Mon Nov 26 21:24:08 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5636021F84BC for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 21:24:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.944
X-Spam-Level: 
X-Spam-Status: No, score=-8.944 tagged_above=-999 required=5 tests=[AWL=1.655, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tRYv7qqiQw7z for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 21:24:07 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 7A43A21F84BA for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 26 Nov 2012 21:24:07 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdDcM-0005K1-Qp for ietf-http-wg-dist@listhub.w3.org; Tue, 27 Nov 2012 05:21:58 +0000
Resent-Date: Tue, 27 Nov 2012 05:21:58 +0000
Resent-Message-Id: <E1TdDcM-0005K1-Qp@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TdDcF-0005Iz-T4 for ietf-http-wg@listhub.w3.org; Tue, 27 Nov 2012 05:21:51 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TdDcE-000385-S4 for ietf-http-wg@w3.org; Tue, 27 Nov 2012 05:21:51 +0000
Received: from [192.168.1.75] (unknown [118.209.244.234]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 912A0509B5 for <ietf-http-wg@w3.org>; Tue, 27 Nov 2012 00:21:28 -0500 (EST)
From: Mark Nottingham <mnot@mnot.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Message-Id: <6B2AE18D-643B-470A-9C79-B167BE50D15A@mnot.net>
Date: Tue, 27 Nov 2012 16:21:25 +1100
To: HTTP Working Group <ietf-http-wg@w3.org>
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: AWL=-2.167, BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TdDcE-000385-S4 638df31f319328e1bfdc06851a7315ba
X-Original-To: ietf-http-wg@w3.org
Subject: P1: Content-Length SHOULD be sent
Archived-At: <http://www.w3.org/mid/6B2AE18D-643B-470A-9C79-B167BE50D15A@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15681
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Currently, p1 says:

> When a message is allowed to contain a message body, does not have a =
Transfer-Encoding header field, and has a payload body length that is =
known to the sender before the message header section has been sent, the =
sender should send a Content-Length header field to indicate the length =
of the payload body as a decimal number of octets.

This unqualified SHOULD leads people to convoluted readings of the spec =
where Content-Length is required to be sent on a GET request:
  =
https://github.com/kennethreitz/requests/issues/223#issuecomment-10745532

Proposal:

> When a message is allowed to contain a body, does not have a =
Transfer-Encoding header field, and has a payload body length that is =
known to the sender before the message header section has been sent, the =
sender should send a Content-Length header field to indicate the length =
of the payload body as a decimal number of octets, unless the message is =
a request and the payload length is zero (in which case the =
Content-Length header MAY be sent).=20


--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Mon Nov 26 22:07:46 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D352221F865F for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 22:07:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tMkgYwFNd58v for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 22:07:46 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 2C77121F8658 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 26 Nov 2012 22:07:45 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdEIl-0003JR-Px for ietf-http-wg-dist@listhub.w3.org; Tue, 27 Nov 2012 06:05:47 +0000
Resent-Date: Tue, 27 Nov 2012 06:05:47 +0000
Resent-Message-Id: <E1TdEIl-0003JR-Px@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TdEIh-0003Ih-Hh for ietf-http-wg@listhub.w3.org; Tue, 27 Nov 2012 06:05:43 +0000
Received: from 1wt.eu ([62.212.114.60]) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TdEIg-0004Jo-8n for ietf-http-wg@w3.org; Tue, 27 Nov 2012 06:05:43 +0000
Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id qAR65G1s031153; Tue, 27 Nov 2012 07:05:16 +0100
Date: Tue, 27 Nov 2012 07:05:16 +0100
From: Willy Tarreau <w@1wt.eu>
To: Mark Nottingham <mnot@mnot.net>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Message-ID: <20121127060516.GK28405@1wt.eu>
References: <6B2AE18D-643B-470A-9C79-B167BE50D15A@mnot.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <6B2AE18D-643B-470A-9C79-B167BE50D15A@mnot.net>
User-Agent: Mutt/1.4.2.3i
Received-SPF: pass client-ip=62.212.114.60; envelope-from=w@1wt.eu; helo=1wt.eu
X-W3C-Hub-Spam-Status: No, score=-4.2
X-W3C-Hub-Spam-Report: AWL=-1.926, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.368, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TdEIg-0004Jo-8n de2e4817ee392640afc0b2a13fed1c3e
X-Original-To: ietf-http-wg@w3.org
Subject: Re: P1: Content-Length SHOULD be sent
Archived-At: <http://www.w3.org/mid/20121127060516.GK28405@1wt.eu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15682
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Tue, Nov 27, 2012 at 04:21:25PM +1100, Mark Nottingham wrote:
> Currently, p1 says:
> 
> > When a message is allowed to contain a message body, does not have a Transfer-Encoding header field, and has a payload body length that is known to the sender before the message header section has been sent, the sender should send a Content-Length header field to indicate the length of the payload body as a decimal number of octets.
> 
> This unqualified SHOULD leads people to convoluted readings of the spec where Content-Length is required to be sent on a GET request:
>   https://github.com/kennethreitz/requests/issues/223#issuecomment-10745532
> 
> Proposal:
> 
> > When a message is allowed to contain a body, does not have a Transfer-Encoding header field, and has a payload body length that is known to the sender before the message header section has been sent, the sender should send a Content-Length header field to indicate the length of the payload body as a decimal number of octets, unless the message is a request and the payload length is zero (in which case the Content-Length header MAY be sent). 

Seems fine to me too.

Willy



From ietf-http-wg-request@listhub.w3.org  Mon Nov 26 23:11:41 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EB90421F8471 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 23:11:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9pjoT3D1HntE for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 26 Nov 2012 23:11:41 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id B695221F847F for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 26 Nov 2012 23:11:40 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdFIT-0006Fo-14 for ietf-http-wg-dist@listhub.w3.org; Tue, 27 Nov 2012 07:09:33 +0000
Resent-Date: Tue, 27 Nov 2012 07:09:33 +0000
Resent-Message-Id: <E1TdFIT-0006Fo-14@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mjs@apple.com>) id 1TdFIM-0006E6-0Y for ietf-http-wg@listhub.w3.org; Tue, 27 Nov 2012 07:09:26 +0000
Received: from bramley.apple.com ([17.151.62.49] helo=mail-out.apple.com) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_MD5:16) (Exim 4.72) (envelope-from <mjs@apple.com>) id 1TdFIL-0006gY-5U for ietf-http-wg@w3.org; Tue, 27 Nov 2012 07:09:25 +0000
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Content-type: text/plain; CHARSET=US-ASCII
Received: from relay11.apple.com ([17.128.113.48]) by mail-out.apple.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPS id <0ME400LKJX6SJ7S1@mail-out.apple.com> for ietf-http-wg@w3.org; Mon, 26 Nov 2012 23:08:57 -0800 (PST)
X-AuditID: 11807130-b7f566d000003523-73-50b46709bd7b
Received: from kencur (kencur.apple.com [17.151.62.38]) (using TLS with cipher RC4-MD5 (RC4-MD5/128 bits)) (Client did not present a certificate)	by relay11.apple.com (Apple SCV relay) with SMTP id F1.75.13603.90764B05; Mon, 26 Nov 2012 23:08:57 -0800 (PST)
Received: from [10.0.1.103] (c-24-6-209-189.hsd1.ca.comcast.net [24.6.209.189]) by kencur.apple.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPSA id <0ME400D35X6XSJB0@kencur.apple.com> for ietf-http-wg@w3.org; Mon, 26 Nov 2012 23:08:57 -0800 (PST)
From: Maciej Stachowiak <mjs@apple.com>
In-reply-to: <81B50A99-F38C-4712-AEB4-8A6A9697EC60@mnot.net>
Date: Mon, 26 Nov 2012 23:08:56 -0800
Cc: Julian Reschke <julian.reschke@gmx.de>, HTTP Working Group <ietf-http-wg@w3.org>
Message-id: <262119AD-92E1-42B2-A8B3-24C0E696336B@apple.com>
References: <61A1D0E5-23AD-4DF4-BDE8-DE9E3BE7FD5A@apple.com> <664D77AB-BA98-4843-8FCC-9620654CE8A1@apple.com> <5086409B.4010802@gmx.de> <702054BA-0177-488B-963F-BB496D5A2E14@mnot.net> <5086447E.7050707@gmx.de> <56AC02A5-DF02-4BD4-97E3-AB56532E6942@apple.com> <81B50A99-F38C-4712-AEB4-8A6A9697EC60@mnot.net>
To: Mark Nottingham <mnot@mnot.net>
X-Mailer: Apple Mail (2.1501)
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOLMWRmVeSWpSXmKPExsUiON1OTZczfUuAwfxZZhaHW2YxOTB6HJ23 nzWAMYrLJiU1J7MstUjfLoEr4/KM6IJNQhWvrz9namC8xNfFyMkhIWAi8Wx3ExOELSZx4d56 ti5GLg4hgXYmiYW3etkhnO1MEsfvfmYBqWIW0JJYv/M4WAevgJ5E//sZbCC2sEC4xJlVm5hB bDYBdYm7R46xg9icAjYSO6/OYQWxWQRUJU5++8IOMSdM4urCDWwQtrbEk3cXWCFm2kjM6HvH BLF4F5PEupv7wRaLCChLfJ+/hAXiVFmJ9iW32CcwCsxCctMsJDfNQjJ3ASPzKkbBotScxEpD Q73EgoKcVL3k/NxNjKDgayg02MG49if/IUYBDkYlHl7BBZsDhFgTy4orcw8xSnAwK4nwLtbZ EiDEm5JYWZValB9fVJqTWnyIUZqDRUmcV/YTULVAemJJanZqakFqEUyWiYNTqoFRd9nMkppN WXN0fUI723JnXn4eeSiQncvW5NKhvBQFlYeCefbzM8Unv/AU5Gr70uXt7ruHv8/BlFGks+V3 LLsxn09Zw2N1w2POv86aHMswnH+h+f2LzNjFvxTNpl4OYlxiq5b0qsxLr+e/w80eb6aLO0/f 6eBeI5DmzvryV0f6RvEPOnyxbUosxRmJhlrMRcWJAIBa8Rc6AgAA
Received-SPF: pass client-ip=17.151.62.49; envelope-from=mjs@apple.com; helo=mail-out.apple.com
X-W3C-Hub-Spam-Status: No, score=-5.8
X-W3C-Hub-Spam-Report: AWL=-0.404, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.368, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TdFIL-0006gY-5U 3682100e75d9ef58c6ad4b22be27058e
X-Original-To: ietf-http-wg@w3.org
Subject: Re: #238, was: User interface requirements for redirecting to unsafe  methods
Archived-At: <http://www.w3.org/mid/262119AD-92E1-42B2-A8B3-24C0E696336B@apple.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15683
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Oct 23, 2012, at 3:16 AM, Mark Nottingham <mnot@mnot.net> wrote:

> 
> On 23/10/2012, at 7:56 PM, Maciej Stachowiak <mjs@apple.com> wrote:
> 
>> As a matter of process, I wish I could have been notified in some more active way about the resolution when the ticket was resolved. Since it was resolved several years after I raised the issue, I was no longer monitoring the WG closely enough to notice. Had I been aware of the resolution, I likely would have spotted the error (i.e. that one of four mentions of confirmation was not addressed).
> 
> That's not our process. We use the issue tracker as a convenience (as we do the diffs, the announcements, the change logs, etc.), but ultimately if you care about a particular bit of the text, you need to track it. Hence, the Last Calls (whereupon you *did* spot the error).


Here's how things happened from my point of view, and piecing things together from the archives:
- The original email thread raising the issue appeared to reject the comment without addressing it.
- The WG gave no indication at the time that it would even take up the issue.
- The tracker ticket about this was raised months later, in response to a separate thread after the original request was ignored
- No response was ever made to the original thread that the WG would take up the issue, even when the tracker ticket was opened.
- There was no obvious email notification of the changes that I could find, nor is a random individual able to Cc themselves on a ticket.
- Years later I thought that my comment was summarily rejected, rather than accepted but adopted in a buggy way; I was reminded of it only by happenstance.

In light of this, I'm not sure how I could have known that there was any bit of text for me to track, nor am I sure how I could have tracked it other than by reloading the spec draft regularly. This seems like a significant burden on individuals providing feedback. It would be really helpful if it was possible for those providing feedback to track when/whether their comments are addressed without requiring them to pay constant attention, e.g. by some form of active notification. I hope you consider this input if there is ever a point at which you revise your process. 

Thanks,
Maciej
 


From ietf-http-wg-request@listhub.w3.org  Tue Nov 27 01:08:55 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A730121F84D9 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 27 Nov 2012 01:08:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qpJ4IP01BFKS for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 27 Nov 2012 01:08:54 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id B1D7C21F84D7 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 27 Nov 2012 01:08:54 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdH7y-0006xa-K4 for ietf-http-wg-dist@listhub.w3.org; Tue, 27 Nov 2012 09:06:50 +0000
Resent-Date: Tue, 27 Nov 2012 09:06:50 +0000
Resent-Message-Id: <E1TdH7y-0006xa-K4@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1TdH7u-0006wq-CJ for ietf-http-wg@listhub.w3.org; Tue, 27 Nov 2012 09:06:46 +0000
Received: from ip-58-28-153-233.static-xdsl.xnet.co.nz ([58.28.153.233] helo=treenet.co.nz) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1TdH7t-0001sf-5x for ietf-http-wg@w3.org; Tue, 27 Nov 2012 09:06:46 +0000
Received: from [192.168.1.100] (unknown [101.98.102.102]) by treenet.co.nz (Postfix) with ESMTP id 37655E7154 for <ietf-http-wg@w3.org>; Tue, 27 Nov 2012 22:06:16 +1300 (NZDT)
Message-ID: <50B48280.7020501@treenet.co.nz>
Date: Tue, 27 Nov 2012 22:06:08 +1300
From: Amos Jeffries <squid3@treenet.co.nz>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version: 1.0
To: ietf-http-wg@w3.org
References: <507A332B.3020301@treenet.co.nz> <BD13C05A-992C-4EB9-874F-577F726CE6D9@mnot.net> <50A4CADD.5070205@treenet.co.nz> <0C1C32C4-FAFF-4BC1-A8D4-F5B8524E0CF1@mnot.net> <C7570068-9D1A-45AF-934F-54A83EDE2AA7@mnot.net>
In-Reply-To: <C7570068-9D1A-45AF-934F-54A83EDE2AA7@mnot.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=58.28.153.233; envelope-from=squid3@treenet.co.nz; helo=treenet.co.nz
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-2.499, BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TdH7t-0001sf-5x 7fb16762a1e8982e12a6045425d2214d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: #403: cacheability of Authentication and no-cache
Archived-At: <http://www.w3.org/mid/50B48280.7020501@treenet.co.nz>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15684
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 27/11/2012 4:15 p.m., Mark Nottingham wrote:
> I've removed the caching-specific language from p7 and replaced it with a reference to p6.
>
> Amos, I think we can close the issue now; please speak up if you have more information.

I would just like to know what the new text looks like to see how the 
clauses hold together now.
(no patch in that bug ticket AFAICS and -21 is not guideline on what you 
changed)

Amos



From ietf-http-wg-request@listhub.w3.org  Tue Nov 27 01:34:49 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7506F21F8561 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 27 Nov 2012 01:34:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Q6SS3gx18-IL for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 27 Nov 2012 01:34:48 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id B0F3B21F8559 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 27 Nov 2012 01:34:48 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdHXp-0004qb-Ni for ietf-http-wg-dist@listhub.w3.org; Tue, 27 Nov 2012 09:33:33 +0000
Resent-Date: Tue, 27 Nov 2012 09:33:33 +0000
Resent-Message-Id: <E1TdHXp-0004qb-Ni@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1TdHXj-0004pw-8I for ietf-http-wg@listhub.w3.org; Tue, 27 Nov 2012 09:33:27 +0000
Received: from ip-58-28-153-233.static-xdsl.xnet.co.nz ([58.28.153.233] helo=treenet.co.nz) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1TdHXh-0007yA-ST for ietf-http-wg@w3.org; Tue, 27 Nov 2012 09:33:27 +0000
Received: from [192.168.1.100] (unknown [101.98.102.102]) by treenet.co.nz (Postfix) with ESMTP id 07E32E7154 for <ietf-http-wg@w3.org>; Tue, 27 Nov 2012 22:33:00 +1300 (NZDT)
Message-ID: <50B488C4.4040508@treenet.co.nz>
Date: Tue, 27 Nov 2012 22:32:52 +1300
From: Amos Jeffries <squid3@treenet.co.nz>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version: 1.0
To: ietf-http-wg@w3.org
References: <6B2AE18D-643B-470A-9C79-B167BE50D15A@mnot.net>
In-Reply-To: <6B2AE18D-643B-470A-9C79-B167BE50D15A@mnot.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=58.28.153.233; envelope-from=squid3@treenet.co.nz; helo=treenet.co.nz
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-3.449, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TdHXh-0007yA-ST 3a69ce6b8a59adfcfbd753901f7927ea
X-Original-To: ietf-http-wg@w3.org
Subject: Re: P1: Content-Length SHOULD be sent
Archived-At: <http://www.w3.org/mid/50B488C4.4040508@treenet.co.nz>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15685
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 27/11/2012 6:21 p.m., Mark Nottingham wrote:
> Currently, p1 says:
>
>> When a message is allowed to contain a message body, does not have a Transfer-Encoding header field, and has a payload body length that is known to the sender before the message header section has been sent, the sender should send a Content-Length header field to indicate the length of the payload body as a decimal number of octets.
> This unqualified SHOULD leads people to convoluted readings of the spec where Content-Length is required to be sent on a GET request:
>    https://github.com/kennethreitz/requests/issues/223#issuecomment-10745532

Reading that thread I don't see anyone requiring CL on a GET. Just CL:0 
on a POST with no body - which seems correct.
> Proposal:
>
>> When a message is allowed to contain a body, does not have a Transfer-Encoding header field, and has a payload body length that is known to the sender before the message header section has been sent, the sender should send a Content-Length header field to indicate the length of the payload body as a decimal number of octets, unless the message is a request and the payload length is zero (in which case the Content-Length header MAY be sent).

If I'm reading that right any recipient MUST consider a request with no 
Content-Length or Transfer-Encoding header as being 0-length.
   That opens a request smuggling loophole when overly zealous 
privacy/anonymizer config has been implemented. When proxy-A is known to 
erase CL headers (but obeys them) it can be sent a POST with smuggled 
request and victim request in pipeline. Proxy-A duly erases the CL and 
passes what server X is now required to interpret as three requests, 
resulting in proxy-A getting the smuggled requests response stored as 
the victums reply - and some garbage at the end of the pipeline.
  Bit rare, but I have seen people erasing every header they thought was 
optional because "some requests dont have it".


That paragraph also looks like a confusingly long set of conditionals to me.

What about something along the lines of:
   When a message is allowed to contain a body Content-Length SHOULD be 
sent, if the length of body is not known or is not easily retrieved in 
adavnce Transfer-Encoding:chunked SHOULD be used instead.

I am also inclined to suggest a MUST on there being some indication of 
length other than close. If that does not cause too many existing 
implementation to become invalid we have a chance to kill off that pesky 
close signal earlier rather than later.

Amos


From ietf-http-wg-request@listhub.w3.org  Tue Nov 27 02:05:17 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BC42D21F852C for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 27 Nov 2012 02:05:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BBIrLiSuPahR for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 27 Nov 2012 02:05:11 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 1923921F852B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 27 Nov 2012 02:05:11 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdI11-00053v-DA for ietf-http-wg-dist@listhub.w3.org; Tue, 27 Nov 2012 10:03:43 +0000
Resent-Date: Tue, 27 Nov 2012 10:03:43 +0000
Resent-Message-Id: <E1TdI11-00053v-DA@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <julian.reschke@gmx.de>) id 1TdI0u-000534-LI for ietf-http-wg@listhub.w3.org; Tue, 27 Nov 2012 10:03:36 +0000
Received: from mailout-de.gmx.net ([213.165.64.22]) by maggie.w3.org with smtp (Exim 4.72) (envelope-from <julian.reschke@gmx.de>) id 1TdI0t-0003uq-HU for ietf-http-wg@w3.org; Tue, 27 Nov 2012 10:03:36 +0000
Received: (qmail invoked by alias); 27 Nov 2012 10:03:05 -0000
Received: from p5DD95620.dip.t-dialin.net (EHLO [192.168.178.36]) [93.217.86.32] by mail.gmx.net (mp070) with SMTP; 27 Nov 2012 11:03:05 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX19GFbc4TDhGDcAUsdygjc3NvkdV9pLqWKnlWnIJeI zTfvhS4SCaZkds
Message-ID: <50B48FD5.1020107@gmx.de>
Date: Tue, 27 Nov 2012 11:03:01 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version: 1.0
To: Amos Jeffries <squid3@treenet.co.nz>
CC: ietf-http-wg@w3.org
References: <507A332B.3020301@treenet.co.nz> <BD13C05A-992C-4EB9-874F-577F726CE6D9@mnot.net> <50A4CADD.5070205@treenet.co.nz> <0C1C32C4-FAFF-4BC1-A8D4-F5B8524E0CF1@mnot.net> <C7570068-9D1A-45AF-934F-54A83EDE2AA7@mnot.net> <50B48280.7020501@treenet.co.nz>
In-Reply-To: <50B48280.7020501@treenet.co.nz>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
Received-SPF: pass client-ip=213.165.64.22; envelope-from=julian.reschke@gmx.de; helo=mailout-de.gmx.net
X-W3C-Hub-Spam-Status: No, score=-4.3
X-W3C-Hub-Spam-Report: AWL=-2.445, BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TdI0t-0003uq-HU b44e8d0482c03df21651a5bc428e6287
X-Original-To: ietf-http-wg@w3.org
Subject: Re: #403: cacheability of Authentication and no-cache
Archived-At: <http://www.w3.org/mid/50B48FD5.1020107@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15686
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 2012-11-27 10:06, Amos Jeffries wrote:
> On 27/11/2012 4:15 p.m., Mark Nottingham wrote:
>> I've removed the caching-specific language from p7 and replaced it
>> with a reference to p6.
>>
>> Amos, I think we can close the issue now; please speak up if you have
>> more information.
>
> I would just like to know what the new text looks like to see how the
> clauses hold together now.
> (no patch in that bug ticket AFAICS and -21 is not guideline on what you
> changed)

See <http://trac.tools.ietf.org/wg/httpbis/trac/changeset/1999#file1> 
and 
<http://greenbytes.de/tech/webdav/draft-ietf-httpbis-p7-auth-latest-from-previous.diff.html>.

Best regards, Julian



From ietf-http-wg-request@listhub.w3.org  Tue Nov 27 02:45:07 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EC45921F850C for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 27 Nov 2012 02:45:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9kXvt2OStr4P for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 27 Nov 2012 02:45:07 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 521E421F8507 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 27 Nov 2012 02:45:07 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdId2-0007EV-5B for ietf-http-wg-dist@listhub.w3.org; Tue, 27 Nov 2012 10:43:00 +0000
Resent-Date: Tue, 27 Nov 2012 10:43:00 +0000
Resent-Message-Id: <E1TdId2-0007EV-5B@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1TdIcx-0007Di-Bl for ietf-http-wg@listhub.w3.org; Tue, 27 Nov 2012 10:42:55 +0000
Received: from ip-58-28-153-233.static-xdsl.xnet.co.nz ([58.28.153.233] helo=treenet.co.nz) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1TdIcs-0005C0-Fk for ietf-http-wg@w3.org; Tue, 27 Nov 2012 10:42:55 +0000
Received: from [192.168.1.100] (unknown [101.98.102.102]) by treenet.co.nz (Postfix) with ESMTP id 8F6E9E7169 for <ietf-http-wg@w3.org>; Tue, 27 Nov 2012 23:42:26 +1300 (NZDT)
Message-ID: <50B4990A.707@treenet.co.nz>
Date: Tue, 27 Nov 2012 23:42:18 +1300
From: Amos Jeffries <squid3@treenet.co.nz>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version: 1.0
To: ietf-http-wg@w3.org
References: <507A332B.3020301@treenet.co.nz> <BD13C05A-992C-4EB9-874F-577F726CE6D9@mnot.net> <50A4CADD.5070205@treenet.co.nz> <0C1C32C4-FAFF-4BC1-A8D4-F5B8524E0CF1@mnot.net> <C7570068-9D1A-45AF-934F-54A83EDE2AA7@mnot.net> <50B48280.7020501@treenet.co.nz> <50B48FD5.1020107@gmx.de>
In-Reply-To: <50B48FD5.1020107@gmx.de>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=58.28.153.233; envelope-from=squid3@treenet.co.nz; helo=treenet.co.nz
X-W3C-Hub-Spam-Status: No, score=-4.2
X-W3C-Hub-Spam-Report: AWL=-2.343, BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TdIcs-0005C0-Fk 66b32620f60a74ada9c4faafa8e7b3cf
X-Original-To: ietf-http-wg@w3.org
Subject: Re: #403: cacheability of Authentication and no-cache
Archived-At: <http://www.w3.org/mid/50B4990A.707@treenet.co.nz>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15687
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 27/11/2012 11:03 p.m., Julian Reschke wrote:
> On 2012-11-27 10:06, Amos Jeffries wrote:
>> On 27/11/2012 4:15 p.m., Mark Nottingham wrote:
>>> I've removed the caching-specific language from p7 and replaced it
>>> with a reference to p6.
>>>
>>> Amos, I think we can close the issue now; please speak up if you have
>>> more information.
>>
>> I would just like to know what the new text looks like to see how the
>> clauses hold together now.
>> (no patch in that bug ticket AFAICS and -21 is not guideline on what you
>> changed)
>
> See <http://trac.tools.ietf.org/wg/httpbis/trac/changeset/1999#file1> 
> and 
> <http://greenbytes.de/tech/webdav/draft-ietf-httpbis-p7-auth-latest-from-previous.diff.html>.
>
> Best regards, Julian
>
>

Thank you.

My original request to get no-cache listed is not actioned. Bit sad, but 
okay.

proxy-revalidate may also be desirable adding to the p6 section 3.2 
list. It would need a disclaimer that it only allows caching 
Authenticated requests on shared caches though.

Amos


From ietf-http-wg-request@listhub.w3.org  Tue Nov 27 07:06:58 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7F10521F84DD for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 27 Nov 2012 07:06:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rDKincX66UR4 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 27 Nov 2012 07:06:57 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id B280721F84DC for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 27 Nov 2012 07:06:53 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdMhk-0000o0-23 for ietf-http-wg-dist@listhub.w3.org; Tue, 27 Nov 2012 15:04:08 +0000
Resent-Date: Tue, 27 Nov 2012 15:04:08 +0000
Resent-Message-Id: <E1TdMhk-0000o0-23@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <zhong.j.yu@gmail.com>) id 1TdMhZ-0000lp-Kc for ietf-http-wg@listhub.w3.org; Tue, 27 Nov 2012 15:03:57 +0000
Received: from mail-oa0-f43.google.com ([209.85.219.43]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <zhong.j.yu@gmail.com>) id 1TdMhQ-0004pL-6R for ietf-http-wg@w3.org; Tue, 27 Nov 2012 15:03:57 +0000
Received: by mail-oa0-f43.google.com with SMTP id k1so13036376oag.2 for <ietf-http-wg@w3.org>; Tue, 27 Nov 2012 07:03:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=f15JpuVWc72BwRQbvbAM0CDcq8HdOAR1czLlWdQRzEg=; b=WBVzM4Q86mqLtw/WXnrNluk7W/cS4ZMt/+Hb1t2SWZ8FaD9OVyNXi8ti+KyEn9kwy3 DvjjQaAfMRYOvNP2rAFO2ktvDXlE+kn53gITGg0nXqBQQwQJkIxVvQmgo7IbAqv+AL6j uy5BC6SYYcD4iNMbP+hJgzhg2N0TxY7JUxALMV/AeARfwjVow+TVDVYkbuptD1KQIxFA 65O8oBhZf0nHINQWq25R3zTvDTHagpwC7o2PWtWhpKIe6oQths84rPOv6Yydgw7EYPPP B6nVODxUSLKRazdWyhMVB7ZWYaXHksjsErBlFbyFsjckl+6i64yR6575dUOfDdmE19A2 9kww==
MIME-Version: 1.0
Received: by 10.60.11.105 with SMTP id p9mr13416538oeb.128.1354028602244; Tue, 27 Nov 2012 07:03:22 -0800 (PST)
Received: by 10.76.12.227 with HTTP; Tue, 27 Nov 2012 07:03:22 -0800 (PST)
In-Reply-To: <6B2AE18D-643B-470A-9C79-B167BE50D15A@mnot.net>
References: <6B2AE18D-643B-470A-9C79-B167BE50D15A@mnot.net>
Date: Tue, 27 Nov 2012 09:03:22 -0600
Message-ID: <CACuKZqEB2EcgXKmL5bkFBZ8p5JxPTqp=Ky3CSKx+StH333tj=g@mail.gmail.com>
From: Zhong Yu <zhong.j.yu@gmail.com>
To: Mark Nottingham <mnot@mnot.net>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=209.85.219.43; envelope-from=zhong.j.yu@gmail.com; helo=mail-oa0-f43.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.704, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TdMhQ-0004pL-6R 62ed4ca33d07ba19cbddaeb0ba033ebb
X-Original-To: ietf-http-wg@w3.org
Subject: Re: P1: Content-Length SHOULD be sent
Archived-At: <http://www.w3.org/mid/CACuKZqEB2EcgXKmL5bkFBZ8p5JxPTqp=Ky3CSKx+StH333tj=g@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15688
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Mon, Nov 26, 2012 at 11:21 PM, Mark Nottingham <mnot@mnot.net> wrote:
> Currently, p1 says:
>
>> When a message is allowed to contain a message body, does not have a Tra=
nsfer-Encoding header field, and has a payload body length that is known to=
 the sender before the message header section has been sent, the sender sho=
uld send a Content-Length header field to indicate the length of the payloa=
d body as a decimal number of octets.
>
> This unqualified SHOULD leads people to convoluted readings of the spec w=
here Content-Length is required to be sent on a GET request:
>   https://github.com/kennethreitz/requests/issues/223#issuecomment-107455=
32
>
> Proposal:
>
>> When a message is allowed to contain a body, does not have a Transfer-En=
coding header field, and has a payload body length that is known to the sen=
der before the message header section has been sent, the sender should send=
 a Content-Length header field to indicate the length of the payload body a=
s a decimal number of octets, unless the message is a request and the paylo=
ad length is zero (in which case the Content-Length header MAY be sent).

Isn't there a semantic difference between a request without a payload
and a request with an empty payload?

If a POST request payload is empty (which is perfectly valid, e.g. an
HTML form post without parameters), and it doesn't include
"Content-Length:0", it may break server implementations, because the
server checks whether a request has an "entity" based on
Content-Length/Transfer-Encoding, regardless of request method. If
Content-Length:0 is missing, the server will think that this is a POST
request without "entity", which it is probably unprepared for.

Zhong Yu

>
>
> --
> Mark Nottingham   http://www.mnot.net/
>
>
>
>


From ietf-http-wg-request@listhub.w3.org  Tue Nov 27 07:36:36 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6EB8B21F857A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 27 Nov 2012 07:36:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.773
X-Spam-Level: 
X-Spam-Status: No, score=-6.773 tagged_above=-999 required=5 tests=[AWL=3.825, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nTdXZhhT8tWR for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 27 Nov 2012 07:36:33 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id B903C21F8235 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 27 Nov 2012 07:36:20 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdNBe-00021F-H2 for ietf-http-wg-dist@listhub.w3.org; Tue, 27 Nov 2012 15:35:02 +0000
Resent-Date: Tue, 27 Nov 2012 15:35:02 +0000
Resent-Message-Id: <E1TdNBe-00021F-H2@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <hallam@gmail.com>) id 1TdNBP-0001hi-L0 for ietf-http-wg@listhub.w3.org; Tue, 27 Nov 2012 15:34:47 +0000
Received: from mail-vc0-f171.google.com ([209.85.220.171]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <hallam@gmail.com>) id 1TdNBO-00068M-50 for ietf-http-wg@w3.org; Tue, 27 Nov 2012 15:34:47 +0000
Received: by mail-vc0-f171.google.com with SMTP id fo14so9892094vcb.2 for <ietf-http-wg@w3.org>; Tue, 27 Nov 2012 07:34:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=qBa0ld9I5nS3cM5PGNktcseiNX9PNE6XDbyJdzkBcqw=; b=ixMO6UXFdr81/hL2E2s2IeIxbD7qRTDoyjqj4/0rvK0oEJbhDL/4FyfAaoVrak0LzK l5YkgS8LR1Wg2+WPyyK0RjRRh0qXLJxmFNA1/5Ugs+SNgISIJiUYvu63XpnmjTzR2GS6 yQydKb2E1U1eHcrSyxuSjhKmZCq4AbNDUo1JhT6hs7tQnzDD+hHZJf/QuM8deN3vD3uy u5/0nM8oX2M2SBSYuwJyuRMge54078cu3cTcEm904GzH61S01s18HY9Od9XM5LDx/K05 khz6MzmU8P+eCOATd0hsi5QAT/brw7aHzCQ85JCgNHYKyOhEPWAvHYsm+bz/qKzbnD8o DyIg==
MIME-Version: 1.0
Received: by 10.220.221.5 with SMTP id ia5mr24511365vcb.65.1354030459919; Tue, 27 Nov 2012 07:34:19 -0800 (PST)
Received: by 10.58.19.130 with HTTP; Tue, 27 Nov 2012 07:34:19 -0800 (PST)
In-Reply-To: <50B488C4.4040508@treenet.co.nz>
References: <6B2AE18D-643B-470A-9C79-B167BE50D15A@mnot.net> <50B488C4.4040508@treenet.co.nz>
Date: Tue, 27 Nov 2012 10:34:19 -0500
Message-ID: <CAMm+LwgmGYvViiev4H=-DgvyGLcWR-9gkCjOv9o87QKLcoa4xA@mail.gmail.com>
From: Phillip Hallam-Baker <hallam@gmail.com>
To: Amos Jeffries <squid3@treenet.co.nz>
Cc: ietf-http-wg@w3.org
Content-Type: multipart/alternative; boundary=14dae9cfce52941d1a04cf7bc8a0
Received-SPF: pass client-ip=209.85.220.171; envelope-from=hallam@gmail.com; helo=mail-vc0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.697, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TdNBO-00068M-50 5234d94d1c8c6bdc2a334246a85b1ba3
X-Original-To: ietf-http-wg@w3.org
Subject: Re: P1: Content-Length SHOULD be sent
Archived-At: <http://www.w3.org/mid/CAMm+LwgmGYvViiev4H=-DgvyGLcWR-9gkCjOv9o87QKLcoa4xA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15689
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--14dae9cfce52941d1a04cf7bc8a0
Content-Type: text/plain; charset=ISO-8859-1

On Tue, Nov 27, 2012 at 4:32 AM, Amos Jeffries <squid3@treenet.co.nz> wrote:
>
> If I'm reading that right any recipient MUST consider a request with no
> Content-Length or Transfer-Encoding header as being 0-length.
>   That opens a request smuggling loophole when overly zealous
> privacy/anonymizer config has been implemented. When proxy-A is known to
> erase CL headers (but obeys them) it can be sent a POST with smuggled
> request and victim request in pipeline. Proxy-A duly erases the CL and
> passes what server X is now required to interpret as three requests,
> resulting in proxy-A getting the smuggled requests response stored as the
> victums reply - and some garbage at the end of the pipeline.
>  Bit rare, but I have seen people erasing every header they thought was
> optional because "some requests dont have it".
>

Why isn't the answer to the above corner case simply 'you lose' ?

Seems to me that a lot of potential for forward progress in the HTTP world
is being blocked by people dredging up the most bizarre corner cases
imaginable. Often times corner cases that probably should not be fixed.

What is a privacy proxy anyway? And why would a person be using it? And why
would it be a good idea for the HTTP protocol to provide a way to
circumvent the control?

If people write proxies that break on very frequent cases such as the POST
request then they are going to be broken no matter what we write in the
spec.


I don't think it is worth any working group spending time on a
non-conforming implementation that has less than a 5% deployed base. For
HTTP that is a LOT of deployed base.


-- 
Website: http://hallambaker.com/

--14dae9cfce52941d1a04cf7bc8a0
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote">On Tue, Nov 27, 2012 at 4:32 AM, Amos Je=
ffries <span dir=3D"ltr">&lt;<a href=3D"mailto:squid3@treenet.co.nz" target=
=3D"_blank">squid3@treenet.co.nz</a>&gt;</span> wrote:<blockquote class=3D"=
gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-=
left:1ex">

If I&#39;m reading that right any recipient MUST consider a request with no=
 Content-Length or Transfer-Encoding header as being 0-length.<br>
=A0 That opens a request smuggling loophole when overly zealous privacy/ano=
nymizer config has been implemented. When proxy-A is known to erase CL head=
ers (but obeys them) it can be sent a POST with smuggled request and victim=
 request in pipeline. Proxy-A duly erases the CL and passes what server X i=
s now required to interpret as three requests, resulting in proxy-A getting=
 the smuggled requests response stored as the victums reply - and some garb=
age at the end of the pipeline.<br>

=A0Bit rare, but I have seen people erasing every header they thought was o=
ptional because &quot;some requests dont have it&quot;.<br></blockquote><di=
v><br></div><div>Why isn&#39;t the answer to the above corner case simply &=
#39;you lose&#39; ?</div>
<div><br></div><div>Seems to me that a lot of potential for forward progres=
s in the HTTP world is being blocked by people dredging up the most bizarre=
 corner cases imaginable. Often times corner cases that probably should not=
 be fixed.</div>
<div><br></div><div>What is a privacy proxy anyway? And why would a person =
be using it? And why would it be a good idea for the HTTP protocol to provi=
de a way to circumvent the control?=A0</div><div><br></div><div>If people w=
rite proxies that break on very frequent cases such as the POST request the=
n they are going to be broken no matter what we write in the spec.</div>
<div><br></div><div><br></div><div>I don&#39;t think it is worth any workin=
g group spending time on a non-conforming implementation that has less than=
 a 5% deployed base. For HTTP that is a LOT of deployed base.</div><div>
<br></div><div>=A0</div></div>-- <br>Website: <a href=3D"http://hallambaker=
.com/">http://hallambaker.com/</a><br><br>

--14dae9cfce52941d1a04cf7bc8a0--


From ietf-http-wg-request@listhub.w3.org  Tue Nov 27 11:30:42 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4331421F855D for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 27 Nov 2012 11:30:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L87+zNwkntka for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 27 Nov 2012 11:30:41 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 4328B21F8744 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 27 Nov 2012 11:30:40 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdQpu-0006Af-OT for ietf-http-wg-dist@listhub.w3.org; Tue, 27 Nov 2012 19:28:50 +0000
Resent-Date: Tue, 27 Nov 2012 19:28:50 +0000
Resent-Message-Id: <E1TdQpu-0006Af-OT@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <fielding@gbiv.com>) id 1TdQpp-00069R-7n for ietf-http-wg@listhub.w3.org; Tue, 27 Nov 2012 19:28:45 +0000
Received: from mailbigip.dreamhost.com ([208.97.132.5] helo=homiemail-a36.g.dreamhost.com) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <fielding@gbiv.com>) id 1TdQpn-0006AB-S9 for ietf-http-wg@w3.org; Tue, 27 Nov 2012 19:28:45 +0000
Received: from homiemail-a36.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a36.g.dreamhost.com (Postfix) with ESMTP id 488A577806E; Tue, 27 Nov 2012 11:28:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gbiv.com; h=subject :mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=gbiv.com; bh=ZwIYHnfzHzYzittdMC1raYd6CAg=; b=ZF+uvig9jxXKy/Z2mmBTilcbOvp3 2aTqPRCpXp9BHP0FrLsrifGudpZ+jPT9PM7AfXsiiiJ7vzEuxlVyzv8iTP/akqIP 8g5uppFBZF4PO7NPQYr/OYSpBjULFpkWi0KpASlDYK13OBRwVdlTHSSz78KZW7/o 0hqzL57USkY6N6Y=
Received: from [192.168.1.84] (99-21-208-82.lightspeed.irvnca.sbcglobal.net [99.21.208.82]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: fielding@gbiv.com) by homiemail-a36.g.dreamhost.com (Postfix) with ESMTPSA id EDE4577801F; Tue, 27 Nov 2012 11:28:20 -0800 (PST)
Mime-Version: 1.0 (Apple Message framework v1283)
Content-Type: text/plain; charset=us-ascii
From: "Roy T. Fielding" <fielding@gbiv.com>
In-Reply-To: <6B2AE18D-643B-470A-9C79-B167BE50D15A@mnot.net>
Date: Tue, 27 Nov 2012 11:28:19 -0800
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <B6C6B278-D30C-4EA8-8243-0DCB2545B75D@gbiv.com>
References: <6B2AE18D-643B-470A-9C79-B167BE50D15A@mnot.net>
To: Mark Nottingham <mnot@mnot.net>
X-Mailer: Apple Mail (2.1283)
Received-SPF: none client-ip=208.97.132.5; envelope-from=fielding@gbiv.com; helo=homiemail-a36.g.dreamhost.com
X-W3C-Hub-Spam-Status: No, score=-4.5
X-W3C-Hub-Spam-Report: AWL=-2.470, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001
X-W3C-Scan-Sig: maggie.w3.org 1TdQpn-0006AB-S9 799f912574979e1d4a3827907eda4001
X-Original-To: ietf-http-wg@w3.org
Subject: Re: P1: Content-Length SHOULD be sent
Archived-At: <http://www.w3.org/mid/B6C6B278-D30C-4EA8-8243-0DCB2545B75D@gbiv.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15690
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Nov 26, 2012, at 9:21 PM, Mark Nottingham wrote:

> Currently, p1 says:
>=20
>> When a message is allowed to contain a message body, does not have a =
Transfer-Encoding header field, and has a payload body length that is =
known to the sender before the message header section has been sent, the =
sender should send a Content-Length header field to indicate the length =
of the payload body as a decimal number of octets.
>=20
> This unqualified SHOULD leads people to convoluted readings of the =
spec where Content-Length is required to be sent on a GET request:
>  =
https://github.com/kennethreitz/requests/issues/223#issuecomment-10745532
>=20
> Proposal:
>=20
>> When a message is allowed to contain a body, does not have a =
Transfer-Encoding header field, and has a payload body length that is =
known to the sender before the message header section has been sent, the =
sender should send a Content-Length header field to indicate the length =
of the payload body as a decimal number of octets, unless the message is =
a request and the payload length is zero (in which case the =
Content-Length header MAY be sent).=20

That would be incorrect, so I don't see why it is being suggested.
Try it with POST on a valid CGI script and it will result in a
parser failure (if not a segfault).

....Roy



From ietf-http-wg-request@listhub.w3.org  Tue Nov 27 15:01:02 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 835BB21F842A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 27 Nov 2012 15:01:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.668
X-Spam-Level: 
X-Spam-Status: No, score=-8.668 tagged_above=-999 required=5 tests=[AWL=1.931, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2Mdrkq9emaww for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 27 Nov 2012 15:01:01 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id C242421F8428 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 27 Nov 2012 15:01:01 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdU7c-0003O4-Rt for ietf-http-wg-dist@listhub.w3.org; Tue, 27 Nov 2012 22:59:20 +0000
Resent-Date: Tue, 27 Nov 2012 22:59:20 +0000
Resent-Message-Id: <E1TdU7c-0003O4-Rt@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TdU7U-0003NL-PC for ietf-http-wg@listhub.w3.org; Tue, 27 Nov 2012 22:59:12 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TdU7T-0007Sw-NC for ietf-http-wg@w3.org; Tue, 27 Nov 2012 22:59:12 +0000
Received: from [192.168.1.75] (unknown [118.209.244.234]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id F24F0509B9; Tue, 27 Nov 2012 17:58:48 -0500 (EST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <B6C6B278-D30C-4EA8-8243-0DCB2545B75D@gbiv.com>
Date: Wed, 28 Nov 2012 09:58:45 +1100
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <996C441B-3CFD-4F39-AF52-FAABD408DD98@mnot.net>
References: <6B2AE18D-643B-470A-9C79-B167BE50D15A@mnot.net> <B6C6B278-D30C-4EA8-8243-0DCB2545B75D@gbiv.com>
To: Roy T. Fielding <fielding@gbiv.com>
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-3.2
X-W3C-Hub-Spam-Report: AWL=-3.191, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TdU7T-0007Sw-NC 7585aad9f63cc0fa22c297c7fc1df2c4
X-Original-To: ietf-http-wg@w3.org
Subject: Re: P1: Content-Length SHOULD be sent
Archived-At: <http://www.w3.org/mid/996C441B-3CFD-4F39-AF52-FAABD408DD98@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15691
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 28/11/2012, at 6:28 AM, Roy T. Fielding <fielding@gbiv.com> wrote:

>=20
> On Nov 26, 2012, at 9:21 PM, Mark Nottingham wrote:
>=20
>> Currently, p1 says:
>>=20
>>> When a message is allowed to contain a message body, does not have a =
Transfer-Encoding header field, and has a payload body length that is =
known to the sender before the message header section has been sent, the =
sender should send a Content-Length header field to indicate the length =
of the payload body as a decimal number of octets.
>>=20
>> This unqualified SHOULD leads people to convoluted readings of the =
spec where Content-Length is required to be sent on a GET request:
>> =
https://github.com/kennethreitz/requests/issues/223#issuecomment-10745532
>>=20
>> Proposal:
>>=20
>>> When a message is allowed to contain a body, does not have a =
Transfer-Encoding header field, and has a payload body length that is =
known to the sender before the message header section has been sent, the =
sender should send a Content-Length header field to indicate the length =
of the payload body as a decimal number of octets, unless the message is =
a request and the payload length is zero (in which case the =
Content-Length header MAY be sent).=20
>=20
> That would be incorrect, so I don't see why it is being suggested.
> Try it with POST on a valid CGI script and it will result in a
> parser failure (if not a segfault).

Because the current text reads that you SHOULD send C-L: 0 on a GET.

How about:

> When a message is allowed to contain a body, does not have a =
Transfer-Encoding header field, and has a payload body length that is =
known to the sender before the message header section has been sent, the =
sender should send a Content-Length header field to indicate the length =
of the payload body as a decimal number of octets, unless the message is =
a request and the method does not define any meaning for the body (in =
which case the Content-Length header MAY be sent).=20






--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Tue Nov 27 15:36:07 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0E0EB21F842A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 27 Nov 2012 15:36:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gL1gszb9WRyc for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 27 Nov 2012 15:36:06 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id AE6CB21F8428 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 27 Nov 2012 15:35:59 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdUfs-0006tk-TW for ietf-http-wg-dist@listhub.w3.org; Tue, 27 Nov 2012 23:34:44 +0000
Resent-Date: Tue, 27 Nov 2012 23:34:44 +0000
Resent-Message-Id: <E1TdUfs-0006tk-TW@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <zhong.j.yu@gmail.com>) id 1TdUfo-0006sw-6v for ietf-http-wg@listhub.w3.org; Tue, 27 Nov 2012 23:34:40 +0000
Received: from mail-ob0-f171.google.com ([209.85.214.171]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <zhong.j.yu@gmail.com>) id 1TdUfm-0004Kb-QV for ietf-http-wg@w3.org; Tue, 27 Nov 2012 23:34:40 +0000
Received: by mail-ob0-f171.google.com with SMTP id dn14so12007487obc.2 for <ietf-http-wg@w3.org>; Tue, 27 Nov 2012 15:34:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=EY7KhAg88g8upGbxhbTa9UiVxLLSmqEQ5tQFsEb6Eq8=; b=JVinJOBEzcraD1vdn3U9pPQSAYbcgQMfnTd12+CLLDFeBtBASOA0ZIk7KViRWiJsnV 2CdrnV/O8twOqUprHLb+BeY5fnS0/OJkEuEfPaek5UBv9t2LKBABPz8D7GY2oHcTM4pg 1ORXRwCsUJC7IZoJCged+4V+SGU+keEA8pU35FCjF23YezO0+Ni3MS8n2VOrw1TH+9tM 7Iw3yWB5O+nfh0SnzT5WczFM34whrhUnRDXoM7y5yQe82Espcu3H03DqDeGu8A/auyfg h42873EFLcf9S/CTRqy5HwpQi2M0kquKGU5iKKbvMUMCzsD6HZiBWKxd+AdARyCfb9iC KHmQ==
MIME-Version: 1.0
Received: by 10.182.2.169 with SMTP id 9mr1315555obv.66.1354059252660; Tue, 27 Nov 2012 15:34:12 -0800 (PST)
Received: by 10.76.12.227 with HTTP; Tue, 27 Nov 2012 15:34:12 -0800 (PST)
In-Reply-To: <996C441B-3CFD-4F39-AF52-FAABD408DD98@mnot.net>
References: <6B2AE18D-643B-470A-9C79-B167BE50D15A@mnot.net> <B6C6B278-D30C-4EA8-8243-0DCB2545B75D@gbiv.com> <996C441B-3CFD-4F39-AF52-FAABD408DD98@mnot.net>
Date: Tue, 27 Nov 2012 17:34:12 -0600
Message-ID: <CACuKZqHRhMQo8LEaXui2t-qi7D2t1-=B6Unn4Ui-7-h2Z9MAeQ@mail.gmail.com>
From: Zhong Yu <zhong.j.yu@gmail.com>
To: Mark Nottingham <mnot@mnot.net>
Cc: "Roy T. Fielding" <fielding@gbiv.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=209.85.214.171; envelope-from=zhong.j.yu@gmail.com; helo=mail-ob0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-4.5
X-W3C-Hub-Spam-Report: AWL=-1.754, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TdUfm-0004Kb-QV 217a764d696b91a149a87641ecc89f47
X-Original-To: ietf-http-wg@w3.org
Subject: Re: P1: Content-Length SHOULD be sent
Archived-At: <http://www.w3.org/mid/CACuKZqHRhMQo8LEaXui2t-qi7D2t1-=B6Unn4Ui-7-h2Z9MAeQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15692
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Tue, Nov 27, 2012 at 4:58 PM, Mark Nottingham <mnot@mnot.net> wrote:
>
> On 28/11/2012, at 6:28 AM, Roy T. Fielding <fielding@gbiv.com> wrote:
>
>>
>> On Nov 26, 2012, at 9:21 PM, Mark Nottingham wrote:
>>
>>> Currently, p1 says:
>>>
>>>> When a message is allowed to contain a message body, does not have a T=
ransfer-Encoding header field, and has a payload body length that is known =
to the sender before the message header section has been sent, the sender s=
hould send a Content-Length header field to indicate the length of the payl=
oad body as a decimal number of octets.
>>>
>>> This unqualified SHOULD leads people to convoluted readings of the spec=
 where Content-Length is required to be sent on a GET request:
>>> https://github.com/kennethreitz/requests/issues/223#issuecomment-107455=
32
>>>
>>> Proposal:
>>>
>>>> When a message is allowed to contain a body, does not have a Transfer-=
Encoding header field, and has a payload body length that is known to the s=
ender before the message header section has been sent, the sender should se=
nd a Content-Length header field to indicate the length of the payload body=
 as a decimal number of octets, unless the message is a request and the pay=
load length is zero (in which case the Content-Length header MAY be sent).
>>
>> That would be incorrect, so I don't see why it is being suggested.
>> Try it with POST on a valid CGI script and it will result in a
>> parser failure (if not a segfault).
>
> Because the current text reads that you SHOULD send C-L: 0 on a GET.

In the old term of "entity" (since I'm not too sure about the precise
meaning of "payload")

If a GET request doesn't carry an entity, which is usually the case,
RFC2616 doesn't require C-L:0.

Actually C-L:0 must not be sent in this case. If the receiver sees
C-L:0, it means the request carries an empty entity, which means
something different than if the request carries no entity.

>
> How about:
>
>> When a message is allowed to contain a body, does not have a Transfer-En=
coding header field, and has a payload body length that is known to the sen=
der before the message header section has been sent, the sender should send=
 a Content-Length header field to indicate the length of the payload body a=
s a decimal number of octets, unless the message is a request and the metho=
d does not define any meaning for the body (in which case the Content-Lengt=
h header MAY be sent).

You probably meant

unless the message is a request **and the payload length is zero** and
the method does not define any meaning for the body (in which case the
Content-Length header MAY be sent).


>
>
>
>
>
>
> --
> Mark Nottingham   http://www.mnot.net/
>
>
>
>


From ietf-http-wg-request@listhub.w3.org  Tue Nov 27 16:01:54 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BD27D21F85FA for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 27 Nov 2012 16:01:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.305
X-Spam-Level: 
X-Spam-Status: No, score=-7.305 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FB_WORD2_END_DOLLAR=3.294, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tvDVQq1nXuMV for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 27 Nov 2012 16:01:54 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 033D721F8624 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 27 Nov 2012 16:01:54 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdV4m-0003uo-L9 for ietf-http-wg-dist@listhub.w3.org; Wed, 28 Nov 2012 00:00:28 +0000
Resent-Date: Wed, 28 Nov 2012 00:00:28 +0000
Resent-Message-Id: <E1TdV4m-0003uo-L9@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1TdV4g-0003u5-OZ for ietf-http-wg@listhub.w3.org; Wed, 28 Nov 2012 00:00:22 +0000
Received: from ip-58-28-153-233.static-xdsl.xnet.co.nz ([58.28.153.233] helo=treenet.co.nz) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1TdV4f-0004yg-CY for ietf-http-wg@w3.org; Wed, 28 Nov 2012 00:00:22 +0000
Received: by treenet.co.nz (Postfix, from userid 33) id B63B0E6E98; Wed, 28 Nov 2012 12:59:57 +1300 (NZDT)
To: <ietf-http-wg@w3.org>
X-PHP-Originating-Script: 0:main.inc
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Date: Wed, 28 Nov 2012 12:59:57 +1300
From: Amos Jeffries <squid3@treenet.co.nz>
In-Reply-To: <CAMm+LwgmGYvViiev4H=-DgvyGLcWR-9gkCjOv9o87QKLcoa4xA@mail.gmail.com>
References: <6B2AE18D-643B-470A-9C79-B167BE50D15A@mnot.net> <50B488C4.4040508@treenet.co.nz> <CAMm+LwgmGYvViiev4H=-DgvyGLcWR-9gkCjOv9o87QKLcoa4xA@mail.gmail.com>
Message-ID: <f8bffb9ba70a1611aade437e27eebdd0@treenet.co.nz>
X-Sender: squid3@treenet.co.nz
User-Agent: Roundcube Webmail/0.7.2
Received-SPF: pass client-ip=58.28.153.233; envelope-from=squid3@treenet.co.nz; helo=treenet.co.nz
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-2.499, BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TdV4f-0004yg-CY a803962df01ed862f459cb04bcb9bae9
X-Original-To: ietf-http-wg@w3.org
Subject: Re: P1: Content-Length SHOULD be sent
Archived-At: <http://www.w3.org/mid/f8bffb9ba70a1611aade437e27eebdd0@treenet.co.nz>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15693
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 28.11.2012 04:34, Phillip Hallam-Baker wrote:
> On Tue, Nov 27, 2012 at 4:32 AM, Amos Jeffries wrote:
>>
>> If I'm reading that right any recipient MUST consider a request with 
>> no
>> Content-Length or Transfer-Encoding header as being 0-length.
>>   That opens a request smuggling loophole when overly zealous
>> privacy/anonymizer config has been implemented. When proxy-A is 
>> known to
>> erase CL headers (but obeys them) it can be sent a POST with 
>> smuggled
>> request and victim request in pipeline. Proxy-A duly erases the CL 
>> and
>> passes what server X is now required to interpret as three requests,
>> resulting in proxy-A getting the smuggled requests response stored 
>> as the
>> victums reply - and some garbage at the end of the pipeline.
>>  Bit rare, but I have seen people erasing every header they thought 
>> was
>> optional because "some requests dont have it".
>>
>
> Why isn't the answer to the above corner case simply 'you lose' ?

Because the behaviour enabled is a cache poisoning vulnerability not 
just a screwed up user experience.
It does not matter how unlikely the edge case, if its creating a 
vulnerability somebody will take advantage eventually.

>
> Seems to me that a lot of potential for forward progress in the HTTP 
> world
> is being blocked by people dredging up the most bizarre corner cases
> imaginable. Often times corner cases that probably should not be 
> fixed.
>
> What is a privacy proxy anyway? And why would a person be using it?


I guess you have not spotted Privoxy in action yet (~2% of the 
Debian/Ubuntu installs run it - only $diety$ knows how many Edubuntu 
end-users that covers). With some big players on the server end pushing 
the user tracking game to full speed there is a growing force of 
over-reaction from those end-users. They seems to finally be getting fed 
up with having to enumerate the long and growing list of badness. This 
year the demand shifted from 'how do we disable feature X' as feature-X 
was announced as a tracker to 'how do we disable *everything* and only 
enable header X and Y' (not even whole features, *individual* headers). 
If they could revert HTTP back to HTTP/0.9 with only a request-line sent 
they would. Demand for this seems to be on par with demand for 
high-performance optimizations FWIW.


> And why
> would it be a good idea for the HTTP protocol to provide a way to
> circumvent the control?
>


> If people write proxies that break on very frequent cases such as the 
> POST
> request then they are going to be broken no matter what we write in 
> the
> spec.
>
>
> I don't think it is worth any working group spending time on a
> non-conforming implementation that has less than a 5% deployed base. 
> For
> HTTP that is a LOT of deployed base.

You seem to think privacy/anonymity is the concern of a small 
deployment base. For starters, schools in most western countries have 
mandatory tracking prevention by law on all students connectivity; the 
restrictions are paranoid and consistently similar. That covers a lot of 
%-points, well into your 5% before we even get near the paranoia in 
military and corporate sectors, or the edge-case crazy folks.

Amos


From ietf-http-wg-request@listhub.w3.org  Tue Nov 27 16:11:38 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 09D4C21F866F for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 27 Nov 2012 16:11:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZRY7yCBULRN9 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 27 Nov 2012 16:11:31 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id AA84721F8650 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 27 Nov 2012 16:11:31 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdVEe-00073t-3U for ietf-http-wg-dist@listhub.w3.org; Wed, 28 Nov 2012 00:10:40 +0000
Resent-Date: Wed, 28 Nov 2012 00:10:40 +0000
Resent-Message-Id: <E1TdVEe-00073t-3U@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1TdVEZ-00072H-9E for ietf-http-wg@listhub.w3.org; Wed, 28 Nov 2012 00:10:35 +0000
Received: from mail-la0-f43.google.com ([209.85.215.43]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1TdVEY-0005Dj-D4 for ietf-http-wg@w3.org; Wed, 28 Nov 2012 00:10:35 +0000
Received: by mail-la0-f43.google.com with SMTP id z14so10157104lag.2 for <ietf-http-wg@w3.org>; Tue, 27 Nov 2012 16:10:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=cEJQPzHnSNJ5dAPvvYZki37gqD35dzb5mniKUzdHlWA=; b=WgoYNfLVy9lTrHK2sSqL8fRd6NQsF1eRtgH4MYhPXADB8Abn47m0zbzERw5s1yJISh TIufcVtH9dTl78VYJnL3kNyQ3rLh+KkgVF0gR53rGedFc5ewUN2LrxUHyMoyw96C++93 /Rz5oQGDFVXhCro4gexTeknm9qL86CI0yx2Cp8M7OlGNqlr+o9sLIh0h9IWU/qHEq3Fk GTsxvIvxsPNCliu1g0uIRKj+jNrFhEJlsy9qSsmvc8m2u3FGHAbxWSnyQ5J46PjJLt9q ME9TfaqBkJPB1Wz8swbGpyuV4kO6ANWc72VqI+r3G4zixMdNz591JeouErCNATldHuNT W20g==
MIME-Version: 1.0
Received: by 10.152.145.169 with SMTP id sv9mr16560926lab.2.1354061407685; Tue, 27 Nov 2012 16:10:07 -0800 (PST)
Received: by 10.112.83.2 with HTTP; Tue, 27 Nov 2012 16:10:07 -0800 (PST)
In-Reply-To: <996C441B-3CFD-4F39-AF52-FAABD408DD98@mnot.net>
References: <6B2AE18D-643B-470A-9C79-B167BE50D15A@mnot.net> <B6C6B278-D30C-4EA8-8243-0DCB2545B75D@gbiv.com> <996C441B-3CFD-4F39-AF52-FAABD408DD98@mnot.net>
Date: Tue, 27 Nov 2012 16:10:07 -0800
Message-ID: <CABkgnnXfKK1gAFjxKOwAoH0ttuHTVbnHE-WmNDozbsrgkLDbfg@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Mark Nottingham <mnot@mnot.net>
Cc: "Roy T. Fielding" <fielding@gbiv.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=209.85.215.43; envelope-from=martin.thomson@gmail.com; helo=mail-la0-f43.google.com
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-1.703, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TdVEY-0005Dj-D4 149ab22c01f928b8962359a21067e42e
X-Original-To: ietf-http-wg@w3.org
Subject: Re: P1: Content-Length SHOULD be sent
Archived-At: <http://www.w3.org/mid/CABkgnnXfKK1gAFjxKOwAoH0ttuHTVbnHE-WmNDozbsrgkLDbfg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15694
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 27 November 2012 14:58, Mark Nottingham <mnot@mnot.net> wrote:
> When a message is allowed to contain a body, does not have a Transfer-Enc=
oding header field, and has a payload body length that is known to the send=
er before the message header section has been sent, the sender should send =
a Content-Length header field to indicate the length of the payload body as=
 a decimal number of octets, unless the message is a request and the method=
 does not define any meaning for the body (in which case the Content-Length=
 header MAY be sent).

IANAL, so this was hard to parse for me.  How about:

--8<--
The Content-Length header indicates the size of a message body as a
decimal number of octets.  The sender SHOULD set Content-Length if:
   o  the message is allowed to contain a body,
   o  the Transfer-Encoding header field is not included, and
   o  the size of the message body is known at the time that headers are se=
nt.
Messages that do not define a meaning for the body MAY either omit the
Content-Length header field or include a value of 0.
-->8--

I'm leery of the "SHOULD" still.  It seems weak.  I'd almost go with
MUST include and a fourth condition: the message size is unknown and
the end of the body is signaled by closing the connection (in which
case the Connection header MUST include the 'close' token).


From ietf-http-wg-request@listhub.w3.org  Tue Nov 27 17:19:39 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4827621F87B6 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 27 Nov 2012 17:19:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id izIUjjfGi755 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 27 Nov 2012 17:19:38 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 9315E21F87B4 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 27 Nov 2012 17:19:38 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdWHN-00043U-2l for ietf-http-wg-dist@listhub.w3.org; Wed, 28 Nov 2012 01:17:33 +0000
Resent-Date: Wed, 28 Nov 2012 01:17:33 +0000
Resent-Message-Id: <E1TdWHN-00043U-2l@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <zhong.j.yu@gmail.com>) id 1TdWHI-00042m-Bg for ietf-http-wg@listhub.w3.org; Wed, 28 Nov 2012 01:17:28 +0000
Received: from mail-ob0-f171.google.com ([209.85.214.171]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <zhong.j.yu@gmail.com>) id 1TdWHH-0003AX-Ab for ietf-http-wg@w3.org; Wed, 28 Nov 2012 01:17:28 +0000
Received: by mail-ob0-f171.google.com with SMTP id dn14so12078678obc.2 for <ietf-http-wg@w3.org>; Tue, 27 Nov 2012 17:17:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=Ll0FnZykUwgxsGrli5Vyrms7DE060SZ7LmwglakC1Zc=; b=iHydeF3l1XWRl8ovFDIVDXhaalxNXZhLZzmgGsOZgUF/vWBQxWNho/UGOoZb8HinUp J4w2DcZ3sOygiMbQbPIVmeEAgweUJyJyxbnYX97kmbIfM0kICWbbSbXEcWgIo1eXrxua HRyXNLHBhl9X798xpYQ+RrHlvx0+FVu14xopR8V1inQBE922kA9Xih/0UJR1PZxo/+Ai 7wJeYiK3EZxMdukstcKuxJEdvcv3vJ/od1UQ8aGOC19n2ntqbtXjxMbMcDgR0JIstjk3 A2wH6w6FnLUS2WUEuAsRDWsal2s1GI2l5mBsknwxU1mn+RxcHRofhe1kE1NFVo45VF7g S+9g==
MIME-Version: 1.0
Received: by 10.182.194.2 with SMTP id hs2mr1465716obc.97.1354065420792; Tue, 27 Nov 2012 17:17:00 -0800 (PST)
Received: by 10.76.12.227 with HTTP; Tue, 27 Nov 2012 17:17:00 -0800 (PST)
In-Reply-To: <CABkgnnXfKK1gAFjxKOwAoH0ttuHTVbnHE-WmNDozbsrgkLDbfg@mail.gmail.com>
References: <6B2AE18D-643B-470A-9C79-B167BE50D15A@mnot.net> <B6C6B278-D30C-4EA8-8243-0DCB2545B75D@gbiv.com> <996C441B-3CFD-4F39-AF52-FAABD408DD98@mnot.net> <CABkgnnXfKK1gAFjxKOwAoH0ttuHTVbnHE-WmNDozbsrgkLDbfg@mail.gmail.com>
Date: Tue, 27 Nov 2012 19:17:00 -0600
Message-ID: <CACuKZqHZyJXHEC31DmVGPmVYGn_BYuphTwtKaAi33qU6BWXRkA@mail.gmail.com>
From: Zhong Yu <zhong.j.yu@gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: Mark Nottingham <mnot@mnot.net>, "Roy T. Fielding" <fielding@gbiv.com>,  HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=209.85.214.171; envelope-from=zhong.j.yu@gmail.com; helo=mail-ob0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-3.3
X-W3C-Hub-Spam-Report: AWL=-2.545, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TdWHH-0003AX-Ab c6a0bd442f84bed7f1332db5768cd983
X-Original-To: ietf-http-wg@w3.org
Subject: Re: P1: Content-Length SHOULD be sent
Archived-At: <http://www.w3.org/mid/CACuKZqHZyJXHEC31DmVGPmVYGn_BYuphTwtKaAi33qU6BWXRkA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15695
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

In RFC2616, there's a clear distinction between
  1. a message without an entity body
  2. a message with an entity body of 0 bytes.
We should not remove the distinction

Quotes from RFC2616
=3D=3D=3D=3D=3D

(HTTP messages) consist of ... possibly a message-body.

The message-body (if any) of an HTTP message is used to carry the entity-bo=
dy

The presence of a message-body in a request is signaled by the
inclusion of a Content-Length or Transfer-Encoding header field in the
request's message-headers.

messages MAY transfer an entity

An entity consists of entity-header fields and an entity-body,
although some *responses* will only include the entity-headers.

An entity-body is only present in a message when a message-body is present

=3D=3D=3D=3D

We can conclude that

If a request does not have "Content-Length" or "Transfer-Encoding", it
does not contain a message body, it does not contain an entity body,
it does not contain an entity.

If a request has "Content-Length: 0", it contains a message body of 0
bytes, it contain an entity body of 0 bytes, it contain an entity.

This is true regardless of the request method.

Zhong Yu


On Tue, Nov 27, 2012 at 6:10 PM, Martin Thomson
<martin.thomson@gmail.com> wrote:
> On 27 November 2012 14:58, Mark Nottingham <mnot@mnot.net> wrote:
>> When a message is allowed to contain a body, does not have a Transfer-En=
coding header field, and has a payload body length that is known to the sen=
der before the message header section has been sent, the sender should send=
 a Content-Length header field to indicate the length of the payload body a=
s a decimal number of octets, unless the message is a request and the metho=
d does not define any meaning for the body (in which case the Content-Lengt=
h header MAY be sent).
>
> IANAL, so this was hard to parse for me.  How about:
>
> --8<--
> The Content-Length header indicates the size of a message body as a
> decimal number of octets.  The sender SHOULD set Content-Length if:
>    o  the message is allowed to contain a body,
>    o  the Transfer-Encoding header field is not included, and
>    o  the size of the message body is known at the time that headers are =
sent.
> Messages that do not define a meaning for the body MAY either omit the
> Content-Length header field or include a value of 0.
> -->8--
>
> I'm leery of the "SHOULD" still.  It seems weak.  I'd almost go with
> MUST include and a fourth condition: the message size is unknown and
> the end of the body is signaled by closing the connection (in which
> case the Connection header MUST include the 'close' token).
>


From ietf-http-wg-request@listhub.w3.org  Wed Nov 28 09:11:58 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5725821F88E8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 09:11:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Vn8Pvxdq4zvL for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 09:11:57 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id C87C121F85ED for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 28 Nov 2012 09:11:57 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Tdl8X-0006kK-Gx for ietf-http-wg-dist@listhub.w3.org; Wed, 28 Nov 2012 17:09:25 +0000
Resent-Date: Wed, 28 Nov 2012 17:09:25 +0000
Resent-Message-Id: <E1Tdl8X-0006kK-Gx@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <zhong.j.yu@gmail.com>) id 1Tdl8M-0006jJ-FJ for ietf-http-wg@listhub.w3.org; Wed, 28 Nov 2012 17:09:14 +0000
Received: from mail-ob0-f171.google.com ([209.85.214.171]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <zhong.j.yu@gmail.com>) id 1Tdl8G-0006as-P0 for ietf-http-wg@w3.org; Wed, 28 Nov 2012 17:09:14 +0000
Received: by mail-ob0-f171.google.com with SMTP id dn14so12701289obc.2 for <ietf-http-wg@w3.org>; Wed, 28 Nov 2012 09:08:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=YI6SZ0UWGAfcyywGVZaP1/ejieo9zzjTlg2F/ItC4Fg=; b=Dr8i69lfUKZMWqFGKecdUDeGT4HGW/Ta4lhmcOefJk5QLVAKrH23RZwN8WWEhVvoMU 7lI9Q7F0S/7es1C5Pgb+WhRYScnM/1QAJRxJoPRtvIIVZOef9yhbP+JZ9JZNbR5IMGhe CukW3/fXl88wDm4Tz4vSzjBvPeS4JYQyd1PkQ6+87NN5HWxJH90SNo98ENFhfd0bgogm /jj1LfEVgsLvXJPO5eu/rkGmQpmfykGpBOJ4udCSMo5AGc7EbYzbXH5DJALhp4+/deoi TEg2sdyqNwSb4lI/CTLuwfwoutKLegOOntFt/NKFOuX0ccJH2Ft3YrvKe6hYMtozPErj gRRg==
MIME-Version: 1.0
Received: by 10.182.130.38 with SMTP id ob6mr4542976obb.100.1354122522358; Wed, 28 Nov 2012 09:08:42 -0800 (PST)
Received: by 10.76.12.227 with HTTP; Wed, 28 Nov 2012 09:08:42 -0800 (PST)
Date: Wed, 28 Nov 2012 11:08:42 -0600
Message-ID: <CACuKZqGcDvFu_r=DWKPv2AkhcbDgoB6jOam3GMLJoz9HFEFSEg@mail.gmail.com>
From: Zhong Yu <zhong.j.yu@gmail.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=ISO-8859-1
Received-SPF: pass client-ip=209.85.214.171; envelope-from=zhong.j.yu@gmail.com; helo=mail-ob0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-4.5
X-W3C-Hub-Spam-Report: AWL=-1.755, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1Tdl8G-0006as-P0 f65db17f51816d6c7d4bf84f0ff3960a
X-Original-To: ietf-http-wg@w3.org
Subject: Lingering Close
Archived-At: <http://www.w3.org/mid/CACuKZqGcDvFu_r=DWKPv2AkhcbDgoB6jOam3GMLJoz9HFEFSEg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15696
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-21#section-6.2.5
6.2.5. Tear-down

   A server that receives a close connection option *MUST initiate a
   lingering close* of the connection after it sends the final response
   to the request that contained close.

   A server that sends a close connection option *MUST initiate a
   lingering close* of the connection after it sends the response
   containing close.

The 2 MUSTs (of lingering close) are too strong here; a server may
reason that a simple close is enough since there shouldn't be any more
data from client, due to
  1. the request is HTTP/1.0 without "Connection:keep-alive".
  2. the request contains "Connection:close"
We can weaken the texts to "MUST close the connection", and discuss
later when a "lingering close" is needed.

The description of "lingering close" also seems a little off. We
shouldn't ask servers to "half-close" first, because

  1. Half-close is useless since an HTTP/1.1 client usually won't
detect it. The client reads to the end of the response and stops, it
won't read again to find out the EOF. (For HTTP/1.0, EOF is required,
but it's not part of the discussion of lingering close)

  2. Some APIs do not support half-close. Examples in Java: SSL
socket, Netty channel.

So we can remove the "half-close" step from "lingering close" process;
the process is simply: drain inbound data, then close the connection.

This "lingering close" process should work for abstract transport
protocols, as long as the server, while reading from client, can
detect that the client has closed the connection.

Zhong Yu


From ietf-http-wg-request@listhub.w3.org  Wed Nov 28 09:47:02 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B9E5721F886B for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 09:47:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.605
X-Spam-Level: 
X-Spam-Status: No, score=-8.605 tagged_above=-999 required=5 tests=[AWL=-1.994, BAYES_00=-2.599, FRT_STOCK2=3.988, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7Hj+XyK58O5T for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 09:47:02 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id D2C1021F8847 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 28 Nov 2012 09:46:55 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdlhK-0003Am-Ar for ietf-http-wg-dist@listhub.w3.org; Wed, 28 Nov 2012 17:45:22 +0000
Resent-Date: Wed, 28 Nov 2012 17:45:22 +0000
Resent-Message-Id: <E1TdlhK-0003Am-Ar@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TdlhF-0003A3-3Y for ietf-http-wg@listhub.w3.org; Wed, 28 Nov 2012 17:45:17 +0000
Received: from 1wt.eu ([62.212.114.60]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TdlhD-0007u1-L6 for ietf-http-wg@w3.org; Wed, 28 Nov 2012 17:45:17 +0000
Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id qASHinjE008963; Wed, 28 Nov 2012 18:44:49 +0100
Date: Wed, 28 Nov 2012 18:44:49 +0100
From: Willy Tarreau <w@1wt.eu>
To: Zhong Yu <zhong.j.yu@gmail.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Message-ID: <20121128174449.GD7227@1wt.eu>
References: <CACuKZqGcDvFu_r=DWKPv2AkhcbDgoB6jOam3GMLJoz9HFEFSEg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CACuKZqGcDvFu_r=DWKPv2AkhcbDgoB6jOam3GMLJoz9HFEFSEg@mail.gmail.com>
User-Agent: Mutt/1.4.2.3i
Received-SPF: pass client-ip=62.212.114.60; envelope-from=w@1wt.eu; helo=1wt.eu
X-W3C-Hub-Spam-Status: No, score=-4.2
X-W3C-Hub-Spam-Report: AWL=-1.930, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.369, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_FRT_STOCK2=0.01
X-W3C-Scan-Sig: lisa.w3.org 1TdlhD-0007u1-L6 9a8eb2b235dcf03ad444ae5ac9ab5965
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Lingering Close
Archived-At: <http://www.w3.org/mid/20121128174449.GD7227@1wt.eu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15697
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Wed, Nov 28, 2012 at 11:08:42AM -0600, Zhong Yu wrote:
> http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-21#section-6.2.5
> 6.2.5. Tear-down
> 
>    A server that receives a close connection option *MUST initiate a
>    lingering close* of the connection after it sends the final response
>    to the request that contained close.
> 
>    A server that sends a close connection option *MUST initiate a
>    lingering close* of the connection after it sends the response
>    containing close.
> 
> The 2 MUSTs (of lingering close) are too strong here; a server may
> reason that a simple close is enough since there shouldn't be any more
> data from client, due to
>   1. the request is HTTP/1.0 without "Connection:keep-alive".
>   2. the request contains "Connection:close"
> We can weaken the texts to "MUST close the connection", and discuss
> later when a "lingering close" is needed.
> 
> The description of "lingering close" also seems a little off. We
> shouldn't ask servers to "half-close" first, because
> 
>   1. Half-close is useless since an HTTP/1.1 client usually won't
> detect it. The client reads to the end of the response and stops, it
> won't read again to find out the EOF. (For HTTP/1.0, EOF is required,
> but it's not part of the discussion of lingering close)

No, there are several issues with this, among which :
  - bogus clients which still send a late CRLF after a POST will trigger
    an immediate reset from the server's TCP stack before the end of the
    transfer if the connection is closed without lingering. This results
    in the common problem of truncated responses ;

  - "lingering" here clearly means the work performed by the TCP stack
    which is performed by default. If we remove this and talk about
    just a close, some people will believe that they can explicitly
    disable lingering, which is totally wrong as this also kills all
    pending data and truncates the response as well.

The main problem is that HTTP is not well suited for use with TCP (!).
But we have it now and we must do whatever we can to maximize chances of
successful transfers. The two problems of TCP are :
  - application is not aware that the remote end has received everything.
    An application-level ACK from the client would have solved this ;

  - client must never be encouraged to close first otherwise it quickly
    faces the 2 MSL problem with sockets in TIME-WAIT and cannot open new
    ports for several minutes whatever the setsockopt() it did. Still,
    sometimes we don't have much choice.

>   2. Some APIs do not support half-close. Examples in Java: SSL
> socket, Netty channel.

Then these ones most likely perform the half-close transparently for you,
and certainly don't disable lingering!

I think the wording is appropriate here. If it's ambiguous, maybe it could
be improved, but I didn't find anything useless there at least.

Regards,
Willy



From ietf-http-wg-request@listhub.w3.org  Wed Nov 28 10:01:20 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BE7D321F87CB for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 10:01:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d-SdJGOCKx3A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 10:01:19 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 95AB921F8754 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 28 Nov 2012 10:01:19 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdlvC-0006s9-Jn for ietf-http-wg-dist@listhub.w3.org; Wed, 28 Nov 2012 17:59:42 +0000
Resent-Date: Wed, 28 Nov 2012 17:59:42 +0000
Resent-Message-Id: <E1TdlvC-0006s9-Jn@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <phk@phk.freebsd.dk>) id 1Tdlv7-0006rL-QZ for ietf-http-wg@listhub.w3.org; Wed, 28 Nov 2012 17:59:37 +0000
Received: from phk.freebsd.dk ([130.225.244.222]) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <phk@phk.freebsd.dk>) id 1Tdlv6-0005VP-Oz for ietf-http-wg@w3.org; Wed, 28 Nov 2012 17:59:37 +0000
Received: from critter.freebsd.dk (critter.freebsd.dk [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id 5A3CF8A3FC; Wed, 28 Nov 2012 17:59:15 +0000 (UTC)
Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.5/8.14.5) with ESMTP id qASHxEjg012200; Wed, 28 Nov 2012 17:59:14 GMT (envelope-from phk@phk.freebsd.dk)
To: Willy Tarreau <w@1wt.eu>
cc: Zhong Yu <zhong.j.yu@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
In-reply-to: <20121128174449.GD7227@1wt.eu>
From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
References: <CACuKZqGcDvFu_r=DWKPv2AkhcbDgoB6jOam3GMLJoz9HFEFSEg@mail.gmail.com> <20121128174449.GD7227@1wt.eu>
Date: Wed, 28 Nov 2012 17:59:14 +0000
Message-ID: <12199.1354125554@critter.freebsd.dk>
Received-SPF: none client-ip=130.225.244.222; envelope-from=phk@phk.freebsd.dk; helo=phk.freebsd.dk
X-W3C-Hub-Spam-Status: No, score=-4.6
X-W3C-Hub-Spam-Report: AWL=-2.316, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.369
X-W3C-Scan-Sig: maggie.w3.org 1Tdlv6-0005VP-Oz 87a0b9abb60f20cabaa5451b3729039e
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Lingering Close
Archived-At: <http://www.w3.org/mid/12199.1354125554@critter.freebsd.dk>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15698
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--------
In message <20121128174449.GD7227@1wt.eu>, Willy Tarreau writes:
>On Wed, Nov 28, 2012 at 11:08:42AM -0600, Zhong Yu wrote:

>The main problem is that HTTP is not well suited for use with TCP (!).

Indeed, this is a major problem in so many ways it's not even funny.

However, considering the penetration of HTTP, it's not inconceivable
that we could get a couple of much needed extensions to the socket
API to stick, possibly as a "TCP considerations for HTTP/2.0"
informal RFC.

If there is interest in this, I can make FreeBSD one of the reference
implementations.

One extension I have been pondering for a long time, is a true
per-socket idle timeout (Ie: no data-carrying packets in either
direction and no outstanding data to transmit for T time)

Poul-Henning

PS: And just in case some of you missed it, Queue had a couple of very
interesting spotlights on the dark buffer bloat issue some time
ago:

Article:
	http://queue.acm.org/detail.cfm?id=2071893

Interview:
	http://queue.acm.org/detail.cfm?id=2076798

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


From ietf-http-wg-request@listhub.w3.org  Wed Nov 28 10:15:40 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BD93D21F869A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 10:15:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.101
X-Spam-Level: 
X-Spam-Status: No, score=-10.101 tagged_above=-999 required=5 tests=[AWL=0.498, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id md5EufbPeKwb for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 10:15:40 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 216A921F8468 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 28 Nov 2012 10:15:40 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Tdm9M-00072R-53 for ietf-http-wg-dist@listhub.w3.org; Wed, 28 Nov 2012 18:14:20 +0000
Resent-Date: Wed, 28 Nov 2012 18:14:20 +0000
Resent-Message-Id: <E1Tdm9M-00072R-53@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1Tdm9H-00071Q-9O for ietf-http-wg@listhub.w3.org; Wed, 28 Nov 2012 18:14:15 +0000
Received: from 1wt.eu ([62.212.114.60]) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1Tdm9B-0005wr-3R for ietf-http-wg@w3.org; Wed, 28 Nov 2012 18:14:15 +0000
Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id qASIDgRm009146; Wed, 28 Nov 2012 19:13:42 +0100
Date: Wed, 28 Nov 2012 19:13:42 +0100
From: Willy Tarreau <w@1wt.eu>
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc: Zhong Yu <zhong.j.yu@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Message-ID: <20121128181342.GE7227@1wt.eu>
References: <CACuKZqGcDvFu_r=DWKPv2AkhcbDgoB6jOam3GMLJoz9HFEFSEg@mail.gmail.com> <20121128174449.GD7227@1wt.eu> <12199.1354125554@critter.freebsd.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <12199.1354125554@critter.freebsd.dk>
User-Agent: Mutt/1.4.2.3i
Received-SPF: pass client-ip=62.212.114.60; envelope-from=w@1wt.eu; helo=1wt.eu
X-W3C-Hub-Spam-Status: No, score=-4.2
X-W3C-Hub-Spam-Report: AWL=-1.925, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.369, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1Tdm9B-0005wr-3R ce4de4700aeefb3e8e80a69cecc64425
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Lingering Close
Archived-At: <http://www.w3.org/mid/20121128181342.GE7227@1wt.eu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15699
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Wed, Nov 28, 2012 at 05:59:14PM +0000, Poul-Henning Kamp wrote:
> --------
> In message <20121128174449.GD7227@1wt.eu>, Willy Tarreau writes:
> >On Wed, Nov 28, 2012 at 11:08:42AM -0600, Zhong Yu wrote:
> 
> >The main problem is that HTTP is not well suited for use with TCP (!).
> 
> Indeed, this is a major problem in so many ways it's not even funny.
> 
> However, considering the penetration of HTTP, it's not inconceivable
> that we could get a couple of much needed extensions to the socket
> API to stick, possibly as a "TCP considerations for HTTP/2.0"
> informal RFC.

I agree. We've also discussed about this with Roberto Peon at IETF83 in
Paris and it seems we are several HTTP implementors to have ideas about
missing things (such as polling for all sent data to be acked, "true"
lingering close, etc...). Being able to pass a FIN with a full window
along the path would be nice too, as well as detecting it without polling
for reads.  Having recv() report the received shutdown without performing
a second attemtp would also help for the vast majority of situations where
the response comes with a close, etc... Well, that's a complete discussion
out of scope for this WG.

> If there is interest in this, I can make FreeBSD one of the reference
> implementations.

That could be an idea, yes.

> One extension I have been pondering for a long time, is a true
> per-socket idle timeout (Ie: no data-carrying packets in either
> direction and no outstanding data to transmit for T time)

Indeed, that's one thing that could help.

> Poul-Henning
> 
> PS: And just in case some of you missed it, Queue had a couple of very
> interesting spotlights on the dark buffer bloat issue some time
> ago:
> 
> Article:
> 	http://queue.acm.org/detail.cfm?id=2071893
> 
> Interview:
> 	http://queue.acm.org/detail.cfm?id=2076798

I'll check this, thanks !

Willy



From ietf-http-wg-request@listhub.w3.org  Wed Nov 28 10:15:42 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0CA4A21F869A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 10:15:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.098
X-Spam-Level: 
X-Spam-Status: No, score=-10.098 tagged_above=-999 required=5 tests=[AWL=-0.500, BAYES_00=-2.599, HTML_MESSAGE=0.001, J_BACKHAIR_25=1, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ASSUMbvgLfbK for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 10:15:41 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 3C0D621F8468 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 28 Nov 2012 10:15:41 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Tdm9t-00075q-NW for ietf-http-wg-dist@listhub.w3.org; Wed, 28 Nov 2012 18:14:53 +0000
Resent-Date: Wed, 28 Nov 2012 18:14:53 +0000
Resent-Message-Id: <E1Tdm9t-00075q-NW@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1Tdm9o-000757-N5 for ietf-http-wg@listhub.w3.org; Wed, 28 Nov 2012 18:14:48 +0000
Received: from mail-la0-f43.google.com ([209.85.215.43]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1Tdm9j-0000Tj-NN for ietf-http-wg@w3.org; Wed, 28 Nov 2012 18:14:48 +0000
Received: by mail-la0-f43.google.com with SMTP id z14so10890063lag.2 for <ietf-http-wg@w3.org>; Wed, 28 Nov 2012 10:14:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=QJyqUQG2ydhmVXA+BbmwijdiLL8QFQ/sDL8MNeRb1gw=; b=G0wgMNPuinvhS51KGe8kI0Ioo0od3xD4Dhxossf40krDRVjNDXgYXe4gvTfkNmhvRa JmbVU3lROyR9oJaEiItBXHeKroS2iKFeUq5HxZaOzJZWNCWvTkL4k9CHIvPfGyU4feSn 9Fb8J6yc96gZ6vy6rTcDegVW/T7csjG7gcZ7b8wNAVrp6wZOjVGF2qrE5uaUK3dUu+LO HRxy6/iUhldJCKqMarEgG33CmvlfOhYzXFsV2fg2PXbE3JUiBkAymxyBa8tymRvHFKjF 6rmG15IqPxgQLYyolueAoqpYq6TaRrYuAaLw2kic8C/vHeVpmlBRbYgWpPCTlF40c0m1 W6rw==
MIME-Version: 1.0
Received: by 10.112.8.67 with SMTP id p3mr4817176lba.103.1354126456728; Wed, 28 Nov 2012 10:14:16 -0800 (PST)
Received: by 10.112.128.200 with HTTP; Wed, 28 Nov 2012 10:14:16 -0800 (PST)
In-Reply-To: <12199.1354125554@critter.freebsd.dk>
References: <CACuKZqGcDvFu_r=DWKPv2AkhcbDgoB6jOam3GMLJoz9HFEFSEg@mail.gmail.com> <20121128174449.GD7227@1wt.eu> <12199.1354125554@critter.freebsd.dk>
Date: Wed, 28 Nov 2012 10:14:16 -0800
Message-ID: <CAP+FsNcH+7=89_MVPzGyjHUwiJ0LfanGbFqK7n=oGVk+FcwMig@mail.gmail.com>
From: Roberto Peon <grmocg@gmail.com>
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc: Willy Tarreau <w@1wt.eu>, Zhong Yu <zhong.j.yu@gmail.com>,  HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=00248c176b346f2cac04cf92226c
Received-SPF: pass client-ip=209.85.215.43; envelope-from=grmocg@gmail.com; helo=mail-la0-f43.google.com
X-W3C-Hub-Spam-Status: No, score=-4.5
X-W3C-Hub-Spam-Report: AWL=-1.760, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1Tdm9j-0000Tj-NN 7c21e70c1dd0c00c73459cd7bec2ce46
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Lingering Close
Archived-At: <http://www.w3.org/mid/CAP+FsNcH+7=89_MVPzGyjHUwiJ0LfanGbFqK7n=oGVk+FcwMig@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15700
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--00248c176b346f2cac04cf92226c
Content-Type: text/plain; charset=ISO-8859-1

I understand the specification of lingering close, however, specifying that
the HTTP implementation should make an effort to ensure that the data is
received before closing (and that lingering close is one such mechanism) is
potentially better.
Lingering close is nasty for a number of reasons.The best option here (at
least for servers) would be to have some knowledge about when the last ack
is ack'd so that it can close the connection from userspace, safe in the
knowledge that everything has arrived at the client safely. That is
obviously not an issue for this WG< however.
-=R


On Wed, Nov 28, 2012 at 9:59 AM, Poul-Henning Kamp <phk@phk.freebsd.dk>wrote:

> --------
> In message <20121128174449.GD7227@1wt.eu>, Willy Tarreau writes:
> >On Wed, Nov 28, 2012 at 11:08:42AM -0600, Zhong Yu wrote:
>
> >The main problem is that HTTP is not well suited for use with TCP (!).
>
> Indeed, this is a major problem in so many ways it's not even funny.
>
> However, considering the penetration of HTTP, it's not inconceivable
> that we could get a couple of much needed extensions to the socket
> API to stick, possibly as a "TCP considerations for HTTP/2.0"
> informal RFC.
>
> If there is interest in this, I can make FreeBSD one of the reference
> implementations.
>
> One extension I have been pondering for a long time, is a true
> per-socket idle timeout (Ie: no data-carrying packets in either
> direction and no outstanding data to transmit for T time)
>
> Poul-Henning
>
> PS: And just in case some of you missed it, Queue had a couple of very
> interesting spotlights on the dark buffer bloat issue some time
> ago:
>
> Article:
>         http://queue.acm.org/detail.cfm?id=2071893
>
> Interview:
>         http://queue.acm.org/detail.cfm?id=2076798
>
> --
> Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
> phk@FreeBSD.ORG         | TCP/IP since RFC 956
> FreeBSD committer       | BSD since 4.3-tahoe
> Never attribute to malice what can adequately be explained by incompetence.
>
>

--00248c176b346f2cac04cf92226c
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I understand the specification of lingering close, however, specifying that=
 the HTTP implementation should make an effort to ensure that the data is r=
eceived before closing (and that lingering close is one such mechanism) is =
potentially better.<div>
Lingering close is nasty for a number of reasons.The best option here (at l=
east for servers) would be to have some knowledge about when the last ack i=
s ack&#39;d so that it can close the connection from userspace, safe in the=
 knowledge that everything has arrived at the client safely. That is obviou=
sly not an issue for this WG&lt; however.</div>
<div>-=3DR</div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quot=
e">On Wed, Nov 28, 2012 at 9:59 AM, Poul-Henning Kamp <span dir=3D"ltr">&lt=
;<a href=3D"mailto:phk@phk.freebsd.dk" target=3D"_blank">phk@phk.freebsd.dk=
</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">--------<br>
<div class=3D"im">In message &lt;<a href=3D"mailto:20121128174449.GD7227@1w=
t.eu">20121128174449.GD7227@1wt.eu</a>&gt;, Willy Tarreau writes:<br>
&gt;On Wed, Nov 28, 2012 at 11:08:42AM -0600, Zhong Yu wrote:<br>
<br>
</div><div class=3D"im">&gt;The main problem is that HTTP is not well suite=
d for use with TCP (!).<br>
<br>
</div>Indeed, this is a major problem in so many ways it&#39;s not even fun=
ny.<br>
<br>
However, considering the penetration of HTTP, it&#39;s not inconceivable<br=
>
that we could get a couple of much needed extensions to the socket<br>
API to stick, possibly as a &quot;TCP considerations for HTTP/2.0&quot;<br>
informal RFC.<br>
<br>
If there is interest in this, I can make FreeBSD one of the reference<br>
implementations.<br>
<br>
One extension I have been pondering for a long time, is a true<br>
per-socket idle timeout (Ie: no data-carrying packets in either<br>
direction and no outstanding data to transmit for T time)<br>
<br>
Poul-Henning<br>
<br>
PS: And just in case some of you missed it, Queue had a couple of very<br>
interesting spotlights on the dark buffer bloat issue some time<br>
ago:<br>
<br>
Article:<br>
=A0 =A0 =A0 =A0 <a href=3D"http://queue.acm.org/detail.cfm?id=3D2071893" ta=
rget=3D"_blank">http://queue.acm.org/detail.cfm?id=3D2071893</a><br>
<br>
Interview:<br>
=A0 =A0 =A0 =A0 <a href=3D"http://queue.acm.org/detail.cfm?id=3D2076798" ta=
rget=3D"_blank">http://queue.acm.org/detail.cfm?id=3D2076798</a><br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
--<br>
Poul-Henning Kamp =A0 =A0 =A0 | UNIX since Zilog Zeus 3.20<br>
phk@FreeBSD.ORG =A0 =A0 =A0 =A0 | TCP/IP since RFC 956<br>
FreeBSD committer =A0 =A0 =A0 | BSD since 4.3-tahoe<br>
Never attribute to malice what can adequately be explained by incompetence.=
<br>
<br>
</font></span></blockquote></div><br></div>

--00248c176b346f2cac04cf92226c--


From ietf-http-wg-request@listhub.w3.org  Wed Nov 28 10:21:47 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6979121F847C for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 10:21:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.605
X-Spam-Level: 
X-Spam-Status: No, score=-8.605 tagged_above=-999 required=5 tests=[AWL=-1.994, BAYES_00=-2.599, FRT_STOCK2=3.988, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T4xHz9W8W+K4 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 10:21:46 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 70F9521F8472 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 28 Nov 2012 10:21:46 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdmFZ-00057t-6E for ietf-http-wg-dist@listhub.w3.org; Wed, 28 Nov 2012 18:20:45 +0000
Resent-Date: Wed, 28 Nov 2012 18:20:45 +0000
Resent-Message-Id: <E1TdmFZ-00057t-6E@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <zhong.j.yu@gmail.com>) id 1TdmFU-00054q-Bg for ietf-http-wg@listhub.w3.org; Wed, 28 Nov 2012 18:20:40 +0000
Received: from mail-oa0-f43.google.com ([209.85.219.43]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <zhong.j.yu@gmail.com>) id 1TdmFM-0000lZ-Or for ietf-http-wg@w3.org; Wed, 28 Nov 2012 18:20:40 +0000
Received: by mail-oa0-f43.google.com with SMTP id k1so14308553oag.2 for <ietf-http-wg@w3.org>; Wed, 28 Nov 2012 10:20:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+TKCbREkJoqJYDyITswvQsTOA8LOGTF6+bCsq5lG7d0=; b=Kl+ynO8K/wXrnGYzZq2GLYa0ToVVQZblHIHSevVnM0I0Me620qHoUZ1rEVYQqc/Ldq os3ZDY9fJ6h6rMhQLIt2XALGMh5A16hSiqJZ5fI/7VP6Dz4v7IYctrpT8+8Yh1UDtWGg Vqio+cqioQSaPZC5MxS6ZeHL0cKwE5DbC3kmoOPF+4C2CdVyM5f/P8plmoDX7Ls0GGzy LBVrA8H/MAo7LJX2wYWMSILJE9RdBd1XsKHXq5v5iH6PUqlBgNW55UQu1HfIRDzhzgxK F4BeCjIzK1htAcMje5UMzywN8LKy6M6r34PvfrrTcGyGMDu4haaqSLpnE0xEpVVVUvl0 bwJw==
MIME-Version: 1.0
Received: by 10.182.130.38 with SMTP id ob6mr4941099obb.100.1354126806526; Wed, 28 Nov 2012 10:20:06 -0800 (PST)
Received: by 10.76.12.227 with HTTP; Wed, 28 Nov 2012 10:20:06 -0800 (PST)
In-Reply-To: <20121128174449.GD7227@1wt.eu>
References: <CACuKZqGcDvFu_r=DWKPv2AkhcbDgoB6jOam3GMLJoz9HFEFSEg@mail.gmail.com> <20121128174449.GD7227@1wt.eu>
Date: Wed, 28 Nov 2012 12:20:06 -0600
Message-ID: <CACuKZqHyhhKRmZ-LyW7RWb-YSCW_Nq1+XLdwA8H9=eugt0UQYw@mail.gmail.com>
From: Zhong Yu <zhong.j.yu@gmail.com>
To: Willy Tarreau <w@1wt.eu>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=ISO-8859-1
Received-SPF: pass client-ip=209.85.219.43; envelope-from=zhong.j.yu@gmail.com; helo=mail-oa0-f43.google.com
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-1.672, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_FRT_STOCK2=0.01
X-W3C-Scan-Sig: lisa.w3.org 1TdmFM-0000lZ-Or 69662b4eaa353ba4f424c3043b0e3b14
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Lingering Close
Archived-At: <http://www.w3.org/mid/CACuKZqHyhhKRmZ-LyW7RWb-YSCW_Nq1+XLdwA8H9=eugt0UQYw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15701
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Willy, I thought the term "lingering closed" in the section is self-defined

    a server can perform a lingering close on a connection by [steps...]

the word linger here has nothing to do with its usage elsewhere, like
SO_LINGER option.

I might be wrong if the word "linger" carries a meaning not defined
here but well known to the readers. Please clarify. At least the word
is not in the TCP spec.

Regardless, I certainly do not suggest to abortively close a
connection without seeing outbound data ACK-ed. My point is, the
half-close step is not necessary.

More inline comments below...

On Wed, Nov 28, 2012 at 11:44 AM, Willy Tarreau <w@1wt.eu> wrote:
> On Wed, Nov 28, 2012 at 11:08:42AM -0600, Zhong Yu wrote:
>> http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-21#section-6.2.5
>> 6.2.5. Tear-down
>>
>>    A server that receives a close connection option *MUST initiate a
>>    lingering close* of the connection after it sends the final response
>>    to the request that contained close.
>>
>>    A server that sends a close connection option *MUST initiate a
>>    lingering close* of the connection after it sends the response
>>    containing close.
>>
>> The 2 MUSTs (of lingering close) are too strong here; a server may
>> reason that a simple close is enough since there shouldn't be any more
>> data from client, due to
>>   1. the request is HTTP/1.0 without "Connection:keep-alive".
>>   2. the request contains "Connection:close"
>> We can weaken the texts to "MUST close the connection", and discuss
>> later when a "lingering close" is needed.
>>
>> The description of "lingering close" also seems a little off. We
>> shouldn't ask servers to "half-close" first, because
>>
>>   1. Half-close is useless since an HTTP/1.1 client usually won't
>> detect it. The client reads to the end of the response and stops, it
>> won't read again to find out the EOF. (For HTTP/1.0, EOF is required,
>> but it's not part of the discussion of lingering close)
>
> No, there are several issues with this, among which :
>   - bogus clients which still send a late CRLF after a POST will trigger
>     an immediate reset from the server's TCP stack before the end of the
>     transfer if the connection is closed without lingering. This results
>     in the common problem of truncated responses ;

It's solved by the draining step, not by half-close

>   - "lingering" here clearly means the work performed by the TCP stack
>     which is performed by default. If we remove this and talk about
>     just a close, some people will believe that they can explicitly
>     disable lingering, which is totally wrong as this also kills all
>     pending data and truncates the response as well.

I do not suggest to disable "lingering" in that sense.

> The main problem is that HTTP is not well suited for use with TCP (!).
> But we have it now and we must do whatever we can to maximize chances of
> successful transfers. The two problems of TCP are :
>   - application is not aware that the remote end has received everything.
>     An application-level ACK from the client would have solved this ;
>
>   - client must never be encouraged to close first otherwise it quickly
>     faces the 2 MSL problem with sockets in TIME-WAIT and cannot open new
>     ports for several minutes whatever the setsockopt() it did. Still,
>     sometimes we don't have much choice.
>
>>   2. Some APIs do not support half-close. Examples in Java: SSL
>> socket, Netty channel.
>
> Then these ones most likely perform the half-close transparently for you,
> and certainly don't disable lingering!

It's impossible in these APIs to half-close first, then read;
therefore the current description of "lingering close" cannot be
implemented in these APIs.

>
> I think the wording is appropriate here. If it's ambiguous, maybe it could
> be improved, but I didn't find anything useless there at least.
>
> Regards,
> Willy
>


From ietf-http-wg-request@listhub.w3.org  Wed Nov 28 10:23:38 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 951F621F8479 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 10:23:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.2
X-Spam-Level: 
X-Spam-Status: No, score=-10.2 tagged_above=-999 required=5 tests=[AWL=0.399, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fDhUh1NA1QBg for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 10:23:37 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 45AA021F8471 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 28 Nov 2012 10:23:35 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdmHu-0005bS-3h for ietf-http-wg-dist@listhub.w3.org; Wed, 28 Nov 2012 18:23:10 +0000
Resent-Date: Wed, 28 Nov 2012 18:23:10 +0000
Resent-Message-Id: <E1TdmHu-0005bS-3h@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TdmHp-0005Yi-IX for ietf-http-wg@listhub.w3.org; Wed, 28 Nov 2012 18:23:05 +0000
Received: from 1wt.eu ([62.212.114.60]) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TdmHo-0006Pc-8t for ietf-http-wg@w3.org; Wed, 28 Nov 2012 18:23:05 +0000
Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id qASIMdJ7009247; Wed, 28 Nov 2012 19:22:39 +0100
Date: Wed, 28 Nov 2012 19:22:39 +0100
From: Willy Tarreau <w@1wt.eu>
To: Roberto Peon <grmocg@gmail.com>
Cc: Poul-Henning Kamp <phk@phk.freebsd.dk>, Zhong Yu <zhong.j.yu@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Message-ID: <20121128182239.GF7227@1wt.eu>
References: <CACuKZqGcDvFu_r=DWKPv2AkhcbDgoB6jOam3GMLJoz9HFEFSEg@mail.gmail.com> <20121128174449.GD7227@1wt.eu> <12199.1354125554@critter.freebsd.dk> <CAP+FsNcH+7=89_MVPzGyjHUwiJ0LfanGbFqK7n=oGVk+FcwMig@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAP+FsNcH+7=89_MVPzGyjHUwiJ0LfanGbFqK7n=oGVk+FcwMig@mail.gmail.com>
User-Agent: Mutt/1.4.2.3i
Received-SPF: pass client-ip=62.212.114.60; envelope-from=w@1wt.eu; helo=1wt.eu
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: AWL=-1.859, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.369, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TdmHo-0006Pc-8t c54089d5db4c2ac9c9e0f7295519fdc9
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Lingering Close
Archived-At: <http://www.w3.org/mid/20121128182239.GF7227@1wt.eu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15702
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Wed, Nov 28, 2012 at 10:14:16AM -0800, Roberto Peon wrote:
> I understand the specification of lingering close, however, specifying that
> the HTTP implementation should make an effort to ensure that the data is
> received before closing (and that lingering close is one such mechanism) is
> potentially better.

I agree but there is no portable way of doing so at the moment unfortunately,
so basically what the spec requires implies suboptimal processing on all
standard-compliant HTTP stacks (which basically means draining data from the
client until it closes).

> Lingering close is nasty for a number of reasons.The best option here (at
> least for servers) would be to have some knowledge about when the last ack
> is ack'd so that it can close the connection from userspace, safe in the
> knowledge that everything has arrived at the client safely. That is
> obviously not an issue for this WG< however.

Exactly, I would love to have this ! We could even imagine an option so
that the FIN could be sent by the stack while the app layer is notified.

Willy



From ietf-http-wg-request@listhub.w3.org  Wed Nov 28 11:10:14 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B4FAD21F879E for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 11:10:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.273
X-Spam-Level: 
X-Spam-Status: No, score=-8.273 tagged_above=-999 required=5 tests=[AWL=-1.662, BAYES_00=-2.599, FRT_STOCK2=3.988, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0e4UZLpJRP6W for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 11:10:14 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 031F121F86FD for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 28 Nov 2012 11:10:14 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Tdmzs-0004O0-PC for ietf-http-wg-dist@listhub.w3.org; Wed, 28 Nov 2012 19:08:36 +0000
Resent-Date: Wed, 28 Nov 2012 19:08:36 +0000
Resent-Message-Id: <E1Tdmzs-0004O0-PC@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1Tdmzo-0004Ms-6t for ietf-http-wg@listhub.w3.org; Wed, 28 Nov 2012 19:08:32 +0000
Received: from 1wt.eu ([62.212.114.60]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1Tdmzn-0002gw-1y for ietf-http-wg@w3.org; Wed, 28 Nov 2012 19:08:32 +0000
Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id qASJ85Ps009560; Wed, 28 Nov 2012 20:08:05 +0100
Date: Wed, 28 Nov 2012 20:08:05 +0100
From: Willy Tarreau <w@1wt.eu>
To: Zhong Yu <zhong.j.yu@gmail.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Message-ID: <20121128190805.GG7227@1wt.eu>
References: <CACuKZqGcDvFu_r=DWKPv2AkhcbDgoB6jOam3GMLJoz9HFEFSEg@mail.gmail.com> <20121128174449.GD7227@1wt.eu> <CACuKZqHyhhKRmZ-LyW7RWb-YSCW_Nq1+XLdwA8H9=eugt0UQYw@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CACuKZqHyhhKRmZ-LyW7RWb-YSCW_Nq1+XLdwA8H9=eugt0UQYw@mail.gmail.com>
User-Agent: Mutt/1.4.2.3i
Received-SPF: pass client-ip=62.212.114.60; envelope-from=w@1wt.eu; helo=1wt.eu
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: AWL=-1.864, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.369, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_FRT_STOCK2=0.01
X-W3C-Scan-Sig: lisa.w3.org 1Tdmzn-0002gw-1y 14544b347672615e1a6e27f0f38c3f83
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Lingering Close
Archived-At: <http://www.w3.org/mid/20121128190805.GG7227@1wt.eu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15703
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Wed, Nov 28, 2012 at 12:20:06PM -0600, Zhong Yu wrote:
> Willy, I thought the term "lingering closed" in the section is self-defined
> 
>     a server can perform a lingering close on a connection by [steps...]
> 
> the word linger here has nothing to do with its usage elsewhere, like
> SO_LINGER option.

OK.

> I might be wrong if the word "linger" carries a meaning not defined
> here but well known to the readers. Please clarify. At least the word
> is not in the TCP spec.

No, you're right.

> Regardless, I certainly do not suggest to abortively close a
> connection without seeing outbound data ACK-ed. My point is, the
> half-close step is not necessary.

I disagree, precisely because if you only close, you risk facing
the RST.

> > No, there are several issues with this, among which :
> >   - bogus clients which still send a late CRLF after a POST will trigger
> >     an immediate reset from the server's TCP stack before the end of the
> >     transfer if the connection is closed without lingering. This results
> >     in the common problem of truncated responses ;
> 
> It's solved by the draining step, not by half-close

No, because if you don't send the half-close, you can't expect the client
to close first as it might very well be only relying on the close to get
the end of the message (old client). Also, even if it's a new client, you
absolutely don't want it to close first as you might cause it to run out
of source ports very quickly (think about a proxy).

> >   - "lingering" here clearly means the work performed by the TCP stack
> >     which is performed by default. If we remove this and talk about
> >     just a close, some people will believe that they can explicitly
> >     disable lingering, which is totally wrong as this also kills all
> >     pending data and truncates the response as well.
> 
> I do not suggest to disable "lingering" in that sense.

OK.

> > The main problem is that HTTP is not well suited for use with TCP (!).
> > But we have it now and we must do whatever we can to maximize chances of
> > successful transfers. The two problems of TCP are :
> >   - application is not aware that the remote end has received everything.
> >     An application-level ACK from the client would have solved this ;
> >
> >   - client must never be encouraged to close first otherwise it quickly
> >     faces the 2 MSL problem with sockets in TIME-WAIT and cannot open new
> >     ports for several minutes whatever the setsockopt() it did. Still,
> >     sometimes we don't have much choice.
> >
> >>   2. Some APIs do not support half-close. Examples in Java: SSL
> >> socket, Netty channel.
> >
> > Then these ones most likely perform the half-close transparently for you,
> > and certainly don't disable lingering!
> 
> It's impossible in these APIs to half-close first, then read;
> therefore the current description of "lingering close" cannot be
> implemented in these APIs.

But I do think that if you simply close, the underlying layers will do
the lingering for you. However this still means that these APIs are not
compatible with HTTP/1.0 clients, which is somewhat problematic :-/

Willy



From ietf-http-wg-request@listhub.w3.org  Wed Nov 28 11:26:20 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F331321F8643 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 11:26:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.206
X-Spam-Level: 
X-Spam-Status: No, score=-8.206 tagged_above=-999 required=5 tests=[AWL=-1.595, BAYES_00=-2.599, FRT_STOCK2=3.988, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f18Z7Ol6Ezrz for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 11:26:19 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 2475321F8733 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 28 Nov 2012 11:26:17 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdnFY-0003sz-4u for ietf-http-wg-dist@listhub.w3.org; Wed, 28 Nov 2012 19:24:48 +0000
Resent-Date: Wed, 28 Nov 2012 19:24:48 +0000
Resent-Message-Id: <E1TdnFY-0003sz-4u@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <zhong.j.yu@gmail.com>) id 1TdnFT-0003sF-6G for ietf-http-wg@listhub.w3.org; Wed, 28 Nov 2012 19:24:43 +0000
Received: from mail-ob0-f171.google.com ([209.85.214.171]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <zhong.j.yu@gmail.com>) id 1TdnFS-0003II-6O for ietf-http-wg@w3.org; Wed, 28 Nov 2012 19:24:43 +0000
Received: by mail-ob0-f171.google.com with SMTP id dn14so12846800obc.2 for <ietf-http-wg@w3.org>; Wed, 28 Nov 2012 11:24:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=PGgLkqOokJEuIsLqlvtVKAwc7bPt21yLZfCGmMBQYCk=; b=u4jIlppaWY1QNxuAk2bP8N0amuu4vzbDXtpZV9aRD5jvOiyvlIZOjPwTkSHGg8Q/ly Z1lftxBAxsSMMmH0I3oI3U7f3Un0Yh0XMbBLXj8Z3uD5T9Tm8lo6Cd0FuoeAy4WyYfJg YsMwJKlkOkn0uKjAiGF2mjVaCHrkOqSHMJf7reD36J+T2878f3tyJq9TKj6RXKbyZR8R H9R2M0qJT7VNJbTI4Rrrsh1rZlKfnMLdHAyCYJ9MKKDFe8Hy/xsjbVWuMv0PT7N0Bt8l GDCTGL/WpFI/+4MKDZo0H6WcGQlNH1Rj7oLnCtJg0inHZw+AB02sJ1zEu8yqRG81NB6V KQEA==
MIME-Version: 1.0
Received: by 10.182.18.165 with SMTP id x5mr5311139obd.73.1354130656054; Wed, 28 Nov 2012 11:24:16 -0800 (PST)
Received: by 10.76.12.227 with HTTP; Wed, 28 Nov 2012 11:24:15 -0800 (PST)
In-Reply-To: <20121128190805.GG7227@1wt.eu>
References: <CACuKZqGcDvFu_r=DWKPv2AkhcbDgoB6jOam3GMLJoz9HFEFSEg@mail.gmail.com> <20121128174449.GD7227@1wt.eu> <CACuKZqHyhhKRmZ-LyW7RWb-YSCW_Nq1+XLdwA8H9=eugt0UQYw@mail.gmail.com> <20121128190805.GG7227@1wt.eu>
Date: Wed, 28 Nov 2012 13:24:15 -0600
Message-ID: <CACuKZqEDnuWsMTrBtEFi9es76hNa=SAaD+5nUQxRnO_jVM8EUw@mail.gmail.com>
From: Zhong Yu <zhong.j.yu@gmail.com>
To: Willy Tarreau <w@1wt.eu>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=ISO-8859-1
Received-SPF: pass client-ip=209.85.214.171; envelope-from=zhong.j.yu@gmail.com; helo=mail-ob0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-4.3
X-W3C-Hub-Spam-Report: AWL=-1.593, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_FRT_STOCK2=0.01
X-W3C-Scan-Sig: lisa.w3.org 1TdnFS-0003II-6O 40eaeadb9bf81e56b63821d4a71254f8
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Lingering Close
Archived-At: <http://www.w3.org/mid/CACuKZqEDnuWsMTrBtEFi9es76hNa=SAaD+5nUQxRnO_jVM8EUw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15704
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Thanks Willy, I think I get what you mean by now. FIN should be
initiated by server to avoid the TIME_WAIT problem. Therefore the
half-close step is important.

The current text makes perfect sense to me now.

Unfortunately, this lingering close process cannot be implemented on
top of some APIs; these APIs don't do transparent lingering close upon
close() either. But it is their fault, not the spec's.

Zhong Yu

On Wed, Nov 28, 2012 at 1:08 PM, Willy Tarreau <w@1wt.eu> wrote:
> On Wed, Nov 28, 2012 at 12:20:06PM -0600, Zhong Yu wrote:
>> Willy, I thought the term "lingering closed" in the section is self-defined
>>
>>     a server can perform a lingering close on a connection by [steps...]
>>
>> the word linger here has nothing to do with its usage elsewhere, like
>> SO_LINGER option.
>
> OK.
>
>> I might be wrong if the word "linger" carries a meaning not defined
>> here but well known to the readers. Please clarify. At least the word
>> is not in the TCP spec.
>
> No, you're right.
>
>> Regardless, I certainly do not suggest to abortively close a
>> connection without seeing outbound data ACK-ed. My point is, the
>> half-close step is not necessary.
>
> I disagree, precisely because if you only close, you risk facing
> the RST.
>
>> > No, there are several issues with this, among which :
>> >   - bogus clients which still send a late CRLF after a POST will trigger
>> >     an immediate reset from the server's TCP stack before the end of the
>> >     transfer if the connection is closed without lingering. This results
>> >     in the common problem of truncated responses ;
>>
>> It's solved by the draining step, not by half-close
>
> No, because if you don't send the half-close, you can't expect the client
> to close first as it might very well be only relying on the close to get
> the end of the message (old client). Also, even if it's a new client, you
> absolutely don't want it to close first as you might cause it to run out
> of source ports very quickly (think about a proxy).
>
>> >   - "lingering" here clearly means the work performed by the TCP stack
>> >     which is performed by default. If we remove this and talk about
>> >     just a close, some people will believe that they can explicitly
>> >     disable lingering, which is totally wrong as this also kills all
>> >     pending data and truncates the response as well.
>>
>> I do not suggest to disable "lingering" in that sense.
>
> OK.
>
>> > The main problem is that HTTP is not well suited for use with TCP (!).
>> > But we have it now and we must do whatever we can to maximize chances of
>> > successful transfers. The two problems of TCP are :
>> >   - application is not aware that the remote end has received everything.
>> >     An application-level ACK from the client would have solved this ;
>> >
>> >   - client must never be encouraged to close first otherwise it quickly
>> >     faces the 2 MSL problem with sockets in TIME-WAIT and cannot open new
>> >     ports for several minutes whatever the setsockopt() it did. Still,
>> >     sometimes we don't have much choice.
>> >
>> >>   2. Some APIs do not support half-close. Examples in Java: SSL
>> >> socket, Netty channel.
>> >
>> > Then these ones most likely perform the half-close transparently for you,
>> > and certainly don't disable lingering!
>>
>> It's impossible in these APIs to half-close first, then read;
>> therefore the current description of "lingering close" cannot be
>> implemented in these APIs.
>
> But I do think that if you simply close, the underlying layers will do
> the lingering for you. However this still means that these APIs are not
> compatible with HTTP/1.0 clients, which is somewhat problematic :-/
>
> Willy
>


From ietf-http-wg-request@listhub.w3.org  Wed Nov 28 11:37:49 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3D7B121F8660 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 11:37:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2bIZ00I1ulfU for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 11:37:48 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id AFC1A21F865D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 28 Nov 2012 11:37:48 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdnR5-00035f-65 for ietf-http-wg-dist@listhub.w3.org; Wed, 28 Nov 2012 19:36:43 +0000
Resent-Date: Wed, 28 Nov 2012 19:36:43 +0000
Resent-Message-Id: <E1TdnR5-00035f-65@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <jamie@shareable.org>) id 1TdnR0-00034w-Ha for ietf-http-wg@listhub.w3.org; Wed, 28 Nov 2012 19:36:38 +0000
Received: from mail2.shareable.org ([80.68.89.115]) by maggie.w3.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <jamie@shareable.org>) id 1TdnQw-0000Ug-DL for ietf-http-wg@w3.org; Wed, 28 Nov 2012 19:36:38 +0000
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1TdnQZ-0005ls-Vt; Wed, 28 Nov 2012 19:36:11 +0000
Date: Wed, 28 Nov 2012 19:36:11 +0000
From: Jamie Lokier <jamie@shareable.org>
To: Zhong Yu <zhong.j.yu@gmail.com>
Cc: Willy Tarreau <w@1wt.eu>, HTTP Working Group <ietf-http-wg@w3.org>
Message-ID: <20121128193611.GB17008@jl-vm1.vm.bytemark.co.uk>
References: <CACuKZqGcDvFu_r=DWKPv2AkhcbDgoB6jOam3GMLJoz9HFEFSEg@mail.gmail.com> <20121128174449.GD7227@1wt.eu> <CACuKZqHyhhKRmZ-LyW7RWb-YSCW_Nq1+XLdwA8H9=eugt0UQYw@mail.gmail.com> <20121128190805.GG7227@1wt.eu> <CACuKZqEDnuWsMTrBtEFi9es76hNa=SAaD+5nUQxRnO_jVM8EUw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CACuKZqEDnuWsMTrBtEFi9es76hNa=SAaD+5nUQxRnO_jVM8EUw@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Received-SPF: none client-ip=80.68.89.115; envelope-from=jamie@shareable.org; helo=mail2.shareable.org
X-W3C-Hub-Spam-Status: No, score=-2.3
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, RP_MATCHES_RCVD=-0.369, SPF_HELO_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TdnQw-0000Ug-DL 564fc3e9505d3d17d9a4e46de1632fb4
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Lingering Close
Archived-At: <http://www.w3.org/mid/20121128193611.GB17008@jl-vm1.vm.bytemark.co.uk>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15705
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Zhong Yu wrote:
> Thanks Willy, I think I get what you mean by now. FIN should be
> initiated by server to avoid the TIME_WAIT problem. Therefore the
> half-close step is important.
> 
> The current text makes perfect sense to me now.

That's great.  I knew about the RST problem (and waiting for data-ACK
isn't enough to solve that), but I didn't think about the client-side
TIME_WAIT problem before now.  Thanks Willy!

> Unfortunately, this lingering close process cannot be implemented on
> top of some APIs; these APIs don't do transparent lingering close upon
> close() either. But it is their fault, not the spec's.

Unfortunately because the old HTTP specs didn't mention this, it seems
to be widely believed that ordinary close is fine for HTTP, and APIs
were created with HTTP in mind to run over them with this limitation.
It's unfortunate that lingering close wasn't made clear in the earlier
specs.

-- Jamie


From ietf-http-wg-request@listhub.w3.org  Wed Nov 28 11:40:46 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0B1F921F8590 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 11:40:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a9M8y5ag3GTt for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 11:40:45 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 63EB721F8468 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 28 Nov 2012 11:40:45 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdnUU-0004n8-KY for ietf-http-wg-dist@listhub.w3.org; Wed, 28 Nov 2012 19:40:14 +0000
Resent-Date: Wed, 28 Nov 2012 19:40:14 +0000
Resent-Message-Id: <E1TdnUU-0004n8-KY@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <jamie@shareable.org>) id 1TdnUQ-0004m2-4s for ietf-http-wg@listhub.w3.org; Wed, 28 Nov 2012 19:40:10 +0000
Received: from mail2.shareable.org ([80.68.89.115]) by maggie.w3.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <jamie@shareable.org>) id 1TdnUP-0000aX-Ax for ietf-http-wg@w3.org; Wed, 28 Nov 2012 19:40:10 +0000
Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from <jamie@shareable.org>) id 1TdnU3-0005n3-BW; Wed, 28 Nov 2012 19:39:47 +0000
Date: Wed, 28 Nov 2012 19:39:47 +0000
From: Jamie Lokier <jamie@shareable.org>
To: Willy Tarreau <w@1wt.eu>
Cc: Roberto Peon <grmocg@gmail.com>, Poul-Henning Kamp <phk@phk.freebsd.dk>, Zhong Yu <zhong.j.yu@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Message-ID: <20121128193947.GC17008@jl-vm1.vm.bytemark.co.uk>
References: <CACuKZqGcDvFu_r=DWKPv2AkhcbDgoB6jOam3GMLJoz9HFEFSEg@mail.gmail.com> <20121128174449.GD7227@1wt.eu> <12199.1354125554@critter.freebsd.dk> <CAP+FsNcH+7=89_MVPzGyjHUwiJ0LfanGbFqK7n=oGVk+FcwMig@mail.gmail.com> <20121128182239.GF7227@1wt.eu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20121128182239.GF7227@1wt.eu>
User-Agent: Mutt/1.5.21 (2010-09-15)
Received-SPF: none client-ip=80.68.89.115; envelope-from=jamie@shareable.org; helo=mail2.shareable.org
X-W3C-Hub-Spam-Status: No, score=-2.3
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, RP_MATCHES_RCVD=-0.369, SPF_HELO_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TdnUP-0000aX-Ax fb772363223924d84033542ac8097341
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Lingering Close
Archived-At: <http://www.w3.org/mid/20121128193947.GC17008@jl-vm1.vm.bytemark.co.uk>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15706
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Willy Tarreau wrote:
> On Wed, Nov 28, 2012 at 10:14:16AM -0800, Roberto Peon wrote:
> > I understand the specification of lingering close, however, specifying that
> > the HTTP implementation should make an effort to ensure that the data is
> > received before closing (and that lingering close is one such mechanism) is
> > potentially better.
> 
> I agree but there is no portable way of doing so at the moment unfortunately,
> so basically what the spec requires implies suboptimal processing on all
> standard-compliant HTTP stacks (which basically means draining data from the
> client until it closes).
> 
> > Lingering close is nasty for a number of reasons.The best option here (at
> > least for servers) would be to have some knowledge about when the last ack
> > is ack'd so that it can close the connection from userspace, safe in the
> > knowledge that everything has arrived at the client safely. That is
> > obviously not an issue for this WG< however.
> 
> Exactly, I would love to have this ! We could even imagine an option so
> that the FIN could be sent by the stack while the app layer is notified.

I'm not sure it would work.  When the last ACK is sent from client to
server, the client kernel has the data but the client application
generally doesn't.  If there's post-request data still in flight from
the client, or the client app will send a few bytes more, RST can
still happen, and the client kernel may abort the socket before the
client application has read from its kernel.

-- Jamie


From ietf-http-wg-request@listhub.w3.org  Wed Nov 28 12:24:47 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2A16D21F867D for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 12:24:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.029
X-Spam-Level: 
X-Spam-Status: No, score=-10.029 tagged_above=-999 required=5 tests=[AWL=0.570, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e7dPFP9w0eOt for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 12:24:46 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id A8D7A21F866E for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 28 Nov 2012 12:24:46 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdoA5-0007yN-5V for ietf-http-wg-dist@listhub.w3.org; Wed, 28 Nov 2012 20:23:13 +0000
Resent-Date: Wed, 28 Nov 2012 20:23:13 +0000
Resent-Message-Id: <E1TdoA5-0007yN-5V@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1Tdo9z-0007xe-P4 for ietf-http-wg@listhub.w3.org; Wed, 28 Nov 2012 20:23:07 +0000
Received: from 1wt.eu ([62.212.114.60]) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1Tdo9y-0001vM-Kl for ietf-http-wg@w3.org; Wed, 28 Nov 2012 20:23:07 +0000
Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id qASKMfBQ010007; Wed, 28 Nov 2012 21:22:41 +0100
Date: Wed, 28 Nov 2012 21:22:40 +0100
From: Willy Tarreau <w@1wt.eu>
To: Zhong Yu <zhong.j.yu@gmail.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Message-ID: <20121128202240.GH7227@1wt.eu>
References: <CACuKZqGcDvFu_r=DWKPv2AkhcbDgoB6jOam3GMLJoz9HFEFSEg@mail.gmail.com> <20121128174449.GD7227@1wt.eu> <CACuKZqHyhhKRmZ-LyW7RWb-YSCW_Nq1+XLdwA8H9=eugt0UQYw@mail.gmail.com> <20121128190805.GG7227@1wt.eu> <CACuKZqEDnuWsMTrBtEFi9es76hNa=SAaD+5nUQxRnO_jVM8EUw@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CACuKZqEDnuWsMTrBtEFi9es76hNa=SAaD+5nUQxRnO_jVM8EUw@mail.gmail.com>
User-Agent: Mutt/1.4.2.3i
Received-SPF: pass client-ip=62.212.114.60; envelope-from=w@1wt.eu; helo=1wt.eu
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: AWL=-1.797, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.369, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1Tdo9y-0001vM-Kl ab0137f6d5655c8bd7ad8a28bca83f41
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Lingering Close
Archived-At: <http://www.w3.org/mid/20121128202240.GH7227@1wt.eu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15707
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Wed, Nov 28, 2012 at 01:24:15PM -0600, Zhong Yu wrote:
> Thanks Willy, I think I get what you mean by now. FIN should be
> initiated by server to avoid the TIME_WAIT problem. Therefore the
> half-close step is important.

exactly.

> The current text makes perfect sense to me now.

With this in mind, do you think that something in the text should be
updated for future readers ?

> Unfortunately, this lingering close process cannot be implemented on
> top of some APIs; these APIs don't do transparent lingering close upon
> close() either. But it is their fault, not the spec's.

Indeed. However the fallback to full close with the kernel's lingering is
still working in practice. Just not perfectly reliable.

Regards,
Willy



From ietf-http-wg-request@listhub.w3.org  Wed Nov 28 12:25:47 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 844CD21F8954 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 12:25:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.101
X-Spam-Level: 
X-Spam-Status: No, score=-10.101 tagged_above=-999 required=5 tests=[AWL=0.498, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Tznhc4vKvTx6 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 12:25:47 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id E824421F886A for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 28 Nov 2012 12:25:46 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdoBr-0000u4-OZ for ietf-http-wg-dist@listhub.w3.org; Wed, 28 Nov 2012 20:25:03 +0000
Resent-Date: Wed, 28 Nov 2012 20:25:03 +0000
Resent-Message-Id: <E1TdoBr-0000u4-OZ@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TdoBn-0008JN-74 for ietf-http-wg@listhub.w3.org; Wed, 28 Nov 2012 20:24:59 +0000
Received: from 1wt.eu ([62.212.114.60]) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1TdoBm-00020q-7r for ietf-http-wg@w3.org; Wed, 28 Nov 2012 20:24:59 +0000
Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id qASKOUgM010015; Wed, 28 Nov 2012 21:24:30 +0100
Date: Wed, 28 Nov 2012 21:24:30 +0100
From: Willy Tarreau <w@1wt.eu>
To: Jamie Lokier <jamie@shareable.org>
Cc: Roberto Peon <grmocg@gmail.com>, Poul-Henning Kamp <phk@phk.freebsd.dk>, Zhong Yu <zhong.j.yu@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Message-ID: <20121128202430.GI7227@1wt.eu>
References: <CACuKZqGcDvFu_r=DWKPv2AkhcbDgoB6jOam3GMLJoz9HFEFSEg@mail.gmail.com> <20121128174449.GD7227@1wt.eu> <12199.1354125554@critter.freebsd.dk> <CAP+FsNcH+7=89_MVPzGyjHUwiJ0LfanGbFqK7n=oGVk+FcwMig@mail.gmail.com> <20121128182239.GF7227@1wt.eu> <20121128193947.GC17008@jl-vm1.vm.bytemark.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20121128193947.GC17008@jl-vm1.vm.bytemark.co.uk>
User-Agent: Mutt/1.4.2.3i
Received-SPF: pass client-ip=62.212.114.60; envelope-from=w@1wt.eu; helo=1wt.eu
X-W3C-Hub-Spam-Status: No, score=-4.0
X-W3C-Hub-Spam-Report: AWL=-1.739, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.369, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TdoBm-00020q-7r f68cdc06788ba434da4cf19c67ecb192
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Lingering Close
Archived-At: <http://www.w3.org/mid/20121128202430.GI7227@1wt.eu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15708
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Wed, Nov 28, 2012 at 07:39:47PM +0000, Jamie Lokier wrote:
> Willy Tarreau wrote:
> > On Wed, Nov 28, 2012 at 10:14:16AM -0800, Roberto Peon wrote:
> > > I understand the specification of lingering close, however, specifying that
> > > the HTTP implementation should make an effort to ensure that the data is
> > > received before closing (and that lingering close is one such mechanism) is
> > > potentially better.
> > 
> > I agree but there is no portable way of doing so at the moment unfortunately,
> > so basically what the spec requires implies suboptimal processing on all
> > standard-compliant HTTP stacks (which basically means draining data from the
> > client until it closes).
> > 
> > > Lingering close is nasty for a number of reasons.The best option here (at
> > > least for servers) would be to have some knowledge about when the last ack
> > > is ack'd so that it can close the connection from userspace, safe in the
> > > knowledge that everything has arrived at the client safely. That is
> > > obviously not an issue for this WG< however.
> > 
> > Exactly, I would love to have this ! We could even imagine an option so
> > that the FIN could be sent by the stack while the app layer is notified.
> 
> I'm not sure it would work.  When the last ACK is sent from client to
> server, the client kernel has the data but the client application
> generally doesn't.  If there's post-request data still in flight from
> the client, or the client app will send a few bytes more, RST can
> still happen, and the client kernel may abort the socket before the
> client application has read from its kernel.

Indeed, that's why I proposed a linux patch years ago to avoid sending
this RST until client data were acked, but it was rejected, not being
standards compliant. Anyway, I do think that we'll need to update some
TCP stacks to use HTTP better in the future.

Willy



From ietf-http-wg-request@listhub.w3.org  Wed Nov 28 13:15:22 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 49D9B21F862A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 13:15:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.934
X-Spam-Level: 
X-Spam-Status: No, score=-9.934 tagged_above=-999 required=5 tests=[AWL=0.665, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kKzdKnVUFU6X for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 13:15:17 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id AB39B21F885B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 28 Nov 2012 13:15:17 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Tdowq-00009x-4A for ietf-http-wg-dist@listhub.w3.org; Wed, 28 Nov 2012 21:13:36 +0000
Resent-Date: Wed, 28 Nov 2012 21:13:36 +0000
Resent-Message-Id: <E1Tdowq-00009x-4A@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <zhong.j.yu@gmail.com>) id 1Tdowl-00009E-C2 for ietf-http-wg@listhub.w3.org; Wed, 28 Nov 2012 21:13:31 +0000
Received: from mail-oa0-f43.google.com ([209.85.219.43]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <zhong.j.yu@gmail.com>) id 1Tdowk-0007Qm-ED for ietf-http-wg@w3.org; Wed, 28 Nov 2012 21:13:31 +0000
Received: by mail-oa0-f43.google.com with SMTP id k1so14470102oag.2 for <ietf-http-wg@w3.org>; Wed, 28 Nov 2012 13:13:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=3QbMFKrKkyLbnOmrjyGP4bewG3yoc6aV63+5jE1Fqs8=; b=LioqsEAK9/Z3yTZz0K6WEsKnwWAtXrstZdg6Wy1NPtaeKybutrmSStwKC1O3kpmBGs lxQj74q0gGZgxwmmNy1rhutkT37qCGt5eTSfSEKoaCB1MSxOxETF4wbkGoK46CVPRb57 p+8mhvJLjTsA9ysWVcBGlSlBAzws081Pvu6DntmDtVw6Wa7kXu1JikLVyw+RxVal2jo4 PkgqLbtamgJU2xQD7Ls8lA4gMpTMUdqrTzTWSaqQI2efdCte6L3gDsdwkzUEL0sl0fRm xegrmlO6wd2QDt0N6a/63Vr49v4ZBx4cKSfBEXbZYK6fB1jt1zW3I+3miOaE2LRXeL6A UYYQ==
MIME-Version: 1.0
Received: by 10.182.130.38 with SMTP id ob6mr5891847obb.100.1354137183932; Wed, 28 Nov 2012 13:13:03 -0800 (PST)
Received: by 10.76.12.227 with HTTP; Wed, 28 Nov 2012 13:13:03 -0800 (PST)
In-Reply-To: <20121128202240.GH7227@1wt.eu>
References: <CACuKZqGcDvFu_r=DWKPv2AkhcbDgoB6jOam3GMLJoz9HFEFSEg@mail.gmail.com> <20121128174449.GD7227@1wt.eu> <CACuKZqHyhhKRmZ-LyW7RWb-YSCW_Nq1+XLdwA8H9=eugt0UQYw@mail.gmail.com> <20121128190805.GG7227@1wt.eu> <CACuKZqEDnuWsMTrBtEFi9es76hNa=SAaD+5nUQxRnO_jVM8EUw@mail.gmail.com> <20121128202240.GH7227@1wt.eu>
Date: Wed, 28 Nov 2012 15:13:03 -0600
Message-ID: <CACuKZqHcBFP-4qv4N8TEyXQEttg1rfZzZ7K+ob8jHAV_4czcLg@mail.gmail.com>
From: Zhong Yu <zhong.j.yu@gmail.com>
To: Willy Tarreau <w@1wt.eu>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=ISO-8859-1
Received-SPF: pass client-ip=209.85.219.43; envelope-from=zhong.j.yu@gmail.com; helo=mail-oa0-f43.google.com
X-W3C-Hub-Spam-Status: No, score=-4.2
X-W3C-Hub-Spam-Report: AWL=-1.515, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1Tdowk-0007Qm-ED 10684796e50ac14b87f4911585238f24
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Lingering Close
Archived-At: <http://www.w3.org/mid/CACuKZqHcBFP-4qv4N8TEyXQEttg1rfZzZ7K+ob8jHAV_4czcLg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15709
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Wed, Nov 28, 2012 at 2:22 PM, Willy Tarreau <w@1wt.eu> wrote:
> On Wed, Nov 28, 2012 at 01:24:15PM -0600, Zhong Yu wrote:
>> Thanks Willy, I think I get what you mean by now. FIN should be
>> initiated by server to avoid the TIME_WAIT problem. Therefore the
>> half-close step is important.
>
> exactly.
>
>> The current text makes perfect sense to me now.
>
> With this in mind, do you think that something in the text should be
> updated for future readers ?

The text gives motivation for draining (to avoid RST), it probably
should give motivation for half-close as well. The text may become too
long and out of scope, but I agree with Jamie Lokier that it's better
to warn implementers about the issues.

Also, I would probably use a different word than "linger"; at first
read I though it means kernel's lingering.

>
>> Unfortunately, this lingering close process cannot be implemented on
>> top of some APIs; these APIs don't do transparent lingering close upon
>> close() either. But it is their fault, not the spec's.
>
> Indeed. However the fallback to full close with the kernel's lingering is
> still working in practice. Just not perfectly reliable.
>
> Regards,
> Willy
>


From ietf-http-wg-request@listhub.w3.org  Wed Nov 28 16:32:35 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1C8CA21F893F for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 16:32:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.156
X-Spam-Level: 
X-Spam-Status: No, score=-10.156 tagged_above=-999 required=5 tests=[AWL=0.443, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I4CTaQnj5G2f for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 16:32:30 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 9CAB921F893C for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 28 Nov 2012 16:32:30 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Tds1B-0004de-L5 for ietf-http-wg-dist@listhub.w3.org; Thu, 29 Nov 2012 00:30:17 +0000
Resent-Date: Thu, 29 Nov 2012 00:30:17 +0000
Resent-Message-Id: <E1Tds1B-0004de-L5@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1Tds13-0003np-Rk for ietf-http-wg@listhub.w3.org; Thu, 29 Nov 2012 00:30:09 +0000
Received: from 1wt.eu ([62.212.114.60]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1Tds12-0005wr-NR for ietf-http-wg@w3.org; Thu, 29 Nov 2012 00:30:09 +0000
Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id qAT0ThQi011326; Thu, 29 Nov 2012 01:29:43 +0100
Date: Thu, 29 Nov 2012 01:29:43 +0100
From: Willy Tarreau <w@1wt.eu>
To: Zhong Yu <zhong.j.yu@gmail.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Message-ID: <20121129002943.GA11277@1wt.eu>
References: <CACuKZqGcDvFu_r=DWKPv2AkhcbDgoB6jOam3GMLJoz9HFEFSEg@mail.gmail.com> <20121128174449.GD7227@1wt.eu> <CACuKZqHyhhKRmZ-LyW7RWb-YSCW_Nq1+XLdwA8H9=eugt0UQYw@mail.gmail.com> <20121128190805.GG7227@1wt.eu> <CACuKZqEDnuWsMTrBtEFi9es76hNa=SAaD+5nUQxRnO_jVM8EUw@mail.gmail.com> <20121128202240.GH7227@1wt.eu> <CACuKZqHcBFP-4qv4N8TEyXQEttg1rfZzZ7K+ob8jHAV_4czcLg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CACuKZqHcBFP-4qv4N8TEyXQEttg1rfZzZ7K+ob8jHAV_4czcLg@mail.gmail.com>
User-Agent: Mutt/1.4.2.3i
Received-SPF: pass client-ip=62.212.114.60; envelope-from=w@1wt.eu; helo=1wt.eu
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: AWL=-1.797, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.369, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1Tds12-0005wr-NR 7cb510f62c5be47bc6190260e330d96f
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Lingering Close
Archived-At: <http://www.w3.org/mid/20121129002943.GA11277@1wt.eu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15710
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Wed, Nov 28, 2012 at 03:13:03PM -0600, Zhong Yu wrote:
> On Wed, Nov 28, 2012 at 2:22 PM, Willy Tarreau <w@1wt.eu> wrote:
> > On Wed, Nov 28, 2012 at 01:24:15PM -0600, Zhong Yu wrote:
> >> Thanks Willy, I think I get what you mean by now. FIN should be
> >> initiated by server to avoid the TIME_WAIT problem. Therefore the
> >> half-close step is important.
> >
> > exactly.
> >
> >> The current text makes perfect sense to me now.
> >
> > With this in mind, do you think that something in the text should be
> > updated for future readers ?
> 
> The text gives motivation for draining (to avoid RST), it probably
> should give motivation for half-close as well. The text may become too
> long and out of scope, but I agree with Jamie Lokier that it's better
> to warn implementers about the issues.

I too was caught in the past by this and have had to perform several
incremental changes on haproxy to address this, including for responses
caught from some servers.

> Also, I would probably use a different word than "linger"; at first
> read I though it means kernel's lingering.

It was my case too when reading this sentence out of context.

Maybe a small change like this would be appropriate ?


-   To avoid the TCP reset problem, a server can perform a lingering
-   close on a connection by closing only the write side of the read/
-   write connection (a half-close) and continuing to read from the
-   connection until the connection is closed by the client or the server

+   To avoid the TCP reset problem, a server can shut down the write side
+   of the connection (also called a half-close) and continuing to read from
+   the connection until the connection is closed by the client or the server

Willy



From ietf-http-wg-request@listhub.w3.org  Wed Nov 28 18:13:56 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 15CFF21E8091 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 18:13:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.029
X-Spam-Level: 
X-Spam-Status: No, score=-10.029 tagged_above=-999 required=5 tests=[AWL=0.570, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Q8RpnrZ--dwO for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 28 Nov 2012 18:13:54 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 1833621E8099 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 28 Nov 2012 18:13:50 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TdtbN-0005UP-8z for ietf-http-wg-dist@listhub.w3.org; Thu, 29 Nov 2012 02:11:45 +0000
Resent-Date: Thu, 29 Nov 2012 02:11:45 +0000
Resent-Message-Id: <E1TdtbN-0005UP-8z@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <zhong.j.yu@gmail.com>) id 1TdtbI-0005Tk-Dg for ietf-http-wg@listhub.w3.org; Thu, 29 Nov 2012 02:11:40 +0000
Received: from mail-ob0-f171.google.com ([209.85.214.171]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <zhong.j.yu@gmail.com>) id 1TdtbG-0001gp-FO for ietf-http-wg@w3.org; Thu, 29 Nov 2012 02:11:40 +0000
Received: by mail-ob0-f171.google.com with SMTP id dn14so13181982obc.2 for <ietf-http-wg@w3.org>; Wed, 28 Nov 2012 18:11:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=MiM5uut90ubXlFJsNofhcm6JrbLJViOxQQrRshtvO3A=; b=09/20VhM1HlMSSU/wbqeKl4+0M8D0WvXM6lQ1ueeAZ9GFydRpKS/RcBHLPatR5UHIp XXRnU5SQ3APt5/5k0m3yjcyGWNRiTTjhv4T6XS/ssltbaQOXkswuQuqkzH05e8Zx7MYy 0iqi61YxCKwzAChWNXTsOQ95FELVNEqKx5FoxQiFmAVKY/bVbogwE4YU2cjtCvNHIjIS 3usNd8QZ8gSfC42eXdMYLDGJOL80Giw6zmrbNAZIwC99qch3pZYfxCS1Vo6yyb5O5fh/ KNYUeXOznXoBJGwcreXt66rMbzCXs+ImvhF3aADYMcj4k5cYXsyMPn72FPR6BwSkmHSS SyYQ==
MIME-Version: 1.0
Received: by 10.60.32.69 with SMTP id g5mr379119oei.21.1354155072162; Wed, 28 Nov 2012 18:11:12 -0800 (PST)
Received: by 10.76.12.227 with HTTP; Wed, 28 Nov 2012 18:11:12 -0800 (PST)
In-Reply-To: <20121129002943.GA11277@1wt.eu>
References: <CACuKZqGcDvFu_r=DWKPv2AkhcbDgoB6jOam3GMLJoz9HFEFSEg@mail.gmail.com> <20121128174449.GD7227@1wt.eu> <CACuKZqHyhhKRmZ-LyW7RWb-YSCW_Nq1+XLdwA8H9=eugt0UQYw@mail.gmail.com> <20121128190805.GG7227@1wt.eu> <CACuKZqEDnuWsMTrBtEFi9es76hNa=SAaD+5nUQxRnO_jVM8EUw@mail.gmail.com> <20121128202240.GH7227@1wt.eu> <CACuKZqHcBFP-4qv4N8TEyXQEttg1rfZzZ7K+ob8jHAV_4czcLg@mail.gmail.com> <20121129002943.GA11277@1wt.eu>
Date: Wed, 28 Nov 2012 20:11:12 -0600
Message-ID: <CACuKZqHimG7aki_OLBHQ--Bh83Wf=Ak3o6VC1XYWWCGf57fQEw@mail.gmail.com>
From: Zhong Yu <zhong.j.yu@gmail.com>
To: Willy Tarreau <w@1wt.eu>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset=ISO-8859-1
Received-SPF: pass client-ip=209.85.214.171; envelope-from=zhong.j.yu@gmail.com; helo=mail-ob0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-4.2
X-W3C-Hub-Spam-Report: AWL=-1.450, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TdtbG-0001gp-FO 3f078fb30612f576274690b1849aa5c1
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Lingering Close
Archived-At: <http://www.w3.org/mid/CACuKZqHimG7aki_OLBHQ--Bh83Wf=Ak3o6VC1XYWWCGf57fQEw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15711
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Wed, Nov 28, 2012 at 6:29 PM, Willy Tarreau <w@1wt.eu> wrote:
> On Wed, Nov 28, 2012 at 03:13:03PM -0600, Zhong Yu wrote:
>> On Wed, Nov 28, 2012 at 2:22 PM, Willy Tarreau <w@1wt.eu> wrote:
>> > On Wed, Nov 28, 2012 at 01:24:15PM -0600, Zhong Yu wrote:
>> >> Thanks Willy, I think I get what you mean by now. FIN should be
>> >> initiated by server to avoid the TIME_WAIT problem. Therefore the
>> >> half-close step is important.
>> >
>> > exactly.
>> >
>> >> The current text makes perfect sense to me now.
>> >
>> > With this in mind, do you think that something in the text should be
>> > updated for future readers ?
>>
>> The text gives motivation for draining (to avoid RST), it probably
>> should give motivation for half-close as well. The text may become too
>> long and out of scope, but I agree with Jamie Lokier that it's better
>> to warn implementers about the issues.
>
> I too was caught in the past by this and have had to perform several
> incremental changes on haproxy to address this, including for responses
> caught from some servers.
>
>> Also, I would probably use a different word than "linger"; at first
>> read I though it means kernel's lingering.
>
> It was my case too when reading this sentence out of context.
>
> Maybe a small change like this would be appropriate ?
>
>
> -   To avoid the TCP reset problem, a server can perform a lingering
> -   close on a connection by closing only the write side of the read/
> -   write connection (a half-close) and continuing to read from the
> -   connection until the connection is closed by the client or the server
>
> +   To avoid the TCP reset problem, a server can shut down the write side
> +   of the connection (also called a half-close) and continuing to read from
> +   the connection until the connection is closed by the client or the server

"lingering close" is also mentioned in previous texts. give it a new
distinct name?

> Willy
>


From ietf-http-wg-request@listhub.w3.org  Thu Nov 29 09:00:07 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6802721F84E8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 29 Nov 2012 09:00:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.484
X-Spam-Level: 
X-Spam-Status: No, score=-6.484 tagged_above=-999 required=5 tests=[AWL=4.115, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gyvQOtGcXRzt for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 29 Nov 2012 08:59:59 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 5068321F8B0E for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 29 Nov 2012 08:59:59 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Te7Qx-00025R-3q for ietf-http-wg-dist@listhub.w3.org; Thu, 29 Nov 2012 16:57:55 +0000
Resent-Date: Thu, 29 Nov 2012 16:57:55 +0000
Resent-Message-Id: <E1Te7Qx-00025R-3q@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <iesg-secretary@ietf.org>) id 1Te7Qq-00024d-HY for ietf-http-wg@listhub.w3.org; Thu, 29 Nov 2012 16:57:48 +0000
Received: from mail.ietf.org ([64.170.98.30]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <iesg-secretary@ietf.org>) id 1Te7Qp-0003V8-6q for ietf-http-wg@w3.org; Thu, 29 Nov 2012 16:57:48 +0000
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 97CE421F8AE6 for <ietf-http-wg@w3.org>; Thu, 29 Nov 2012 08:57:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9jWqf76e0eON; Thu, 29 Nov 2012 08:57:20 -0800 (PST)
Received: from ietfa.amsl.com (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5DF8221F8A34; Thu, 29 Nov 2012 08:57:19 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
From: IESG Secretary <iesg-secretary@ietf.org>
To: IETF Announcement List <ietf-announce@ietf.org>
Cc: ietf-http-wg@w3.org
X-Test-IDTracker: no
X-IETF-IDTracker: 4.36
Message-ID: <20121129165719.14481.9124.idtracker@ietfa.amsl.com>
Date: Thu, 29 Nov 2012 08:57:19 -0800
Received-SPF: pass client-ip=64.170.98.30; envelope-from=iesg-secretary@ietf.org; helo=mail.ietf.org
X-W3C-Hub-Spam-Status: No, score=-4.0
X-W3C-Hub-Spam-Report: AWL=-1.309, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.368, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1Te7Qp-0003V8-6q 8a65f7ad0206d861304aa02d5d5c8d92
X-Original-To: ietf-http-wg@w3.org
Subject: HTTPBIS WG Interim Meeting, January 30 - February 1, 2013, Tokyo
Archived-At: <http://www.w3.org/mid/20121129165719.14481.9124.idtracker@ietfa.amsl.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15712
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

This is an announcement of an Interim Meeting for the HTTPbis WG.

The goal of the meeting is to discuss the issues against HTTP/2 [1] and =

formulate proposals to bring back to the WG.

We'll be meeting in Tokyo from January 30 - February 1, 2013. Google has =

kindly offered to host; details regarding exact location, meeting times, =

remote participation details, recommended hotels, etc. will be =

forthcoming.

If you'd like to attend, please send a note to <mnot@mnot.net> by 15 =

December 2012; we need accurate estimates for site logistics.

Regards,

1. http://trac.tools.ietf.org/wg/httpbis/trac/report/21


From ietf-http-wg-request@listhub.w3.org  Thu Nov 29 16:08:37 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AF79E21F8A4A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 29 Nov 2012 16:08:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.052
X-Spam-Level: 
X-Spam-Status: No, score=-8.052 tagged_above=-999 required=5 tests=[AWL=2.547, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2aQY3eWT-AGE for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 29 Nov 2012 16:08:37 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 08C3321F87FF for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 29 Nov 2012 16:08:36 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TeE8n-0004DL-EF for ietf-http-wg-dist@listhub.w3.org; Fri, 30 Nov 2012 00:07:37 +0000
Resent-Date: Fri, 30 Nov 2012 00:07:37 +0000
Resent-Message-Id: <E1TeE8n-0004DL-EF@frink.w3.org>
Received: from aji.keio.w3.org ([133.27.228.206]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TeE8h-0004Bz-RI for ietf-http-wg@listhub.w3.org; Fri, 30 Nov 2012 00:07:32 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by aji.keio.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TeE8f-0007Gw-3Y for ietf-http-wg@w3.org; Fri, 30 Nov 2012 00:07:30 +0000
Received: from [192.168.1.75] (unknown [118.209.244.234]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 1096D509C1 for <ietf-http-wg@w3.org>; Thu, 29 Nov 2012 19:05:59 -0500 (EST)
From: Mark Nottingham <mnot@mnot.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Message-Id: <DA20ABA2-3574-48F6-8D2A-2C2D65FF0DDD@mnot.net>
Date: Fri, 30 Nov 2012 11:05:55 +1100
To: HTTP Working Group <ietf-http-wg@w3.org>
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-3.1
X-W3C-Hub-Spam-Report: AWL=-3.141, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: aji.keio.w3.org 1TeE8f-0007Gw-3Y e2ce7d63f202100b619201bac81d8b61
X-Original-To: ietf-http-wg@w3.org
Subject: First draft of HTTP/2
Archived-At: <http://www.w3.org/mid/DA20ABA2-3574-48F6-8D2A-2C2D65FF0DDD@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15714
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

After getting some publication process kinks worked out, the editors =
have published a first draft:

  http://tools.ietf.org/html/draft-ietf-httpbis-http2-00

As discussed and chartered, this initial draft is a straight copy of =
SPDY; the only thing that should be different is the addition of our =
editors, and a notice at the top. This gives us a good base for diffs =
going forward.

As we go on, there will be several ways this document changes:

- Editorial changes -- clarifying text, re-arranging it, aligning with =
the HTTPbis work, etc. will be driven by the editors. You'll be able to =
review their changes in each draft, using the diffs from the previous =
one. Feel free to suggest text to them on-list.

- Design changes -- adding new features, removing existing ones, =
changing the bytes on the wire, etc. This will be driven by our issues =
list; see <http://trac.tools.ietf.org/wg/httpbis/trac/report/21>.  New =
issues can be raised on this list, as described at =
<http://trac.tools.ietf.org/wg/httpbis/trac/wiki#IssueHandling>.

This draft is (obviously, I'd hope) NOT for implementation. When we get =
to a point where we've addressed some issues and evolved the protocol =
sufficiently, we'll mark a draft for test implementation; I'm hoping =
this will happen very early next year, and we'll iterate as necessary =
after that.

So, please have a look and start thinking about what needs to change.

Cheers,


--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Thu Nov 29 16:08:37 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CB7DA21F87FF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 29 Nov 2012 16:08:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.483
X-Spam-Level: 
X-Spam-Status: No, score=-6.483 tagged_above=-999 required=5 tests=[AWL=4.116, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GEPdeB7Fi7dh for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 29 Nov 2012 16:08:37 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 4DF4F21F8857 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 29 Nov 2012 16:08:37 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TeE71-0003qb-RP for ietf-http-wg-dist@listhub.w3.org; Fri, 30 Nov 2012 00:05:47 +0000
Resent-Date: Fri, 30 Nov 2012 00:05:47 +0000
Resent-Message-Id: <E1TeE71-0003qb-RP@frink.w3.org>
Received: from aji.keio.w3.org ([133.27.228.206]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <internet-drafts@ietf.org>) id 1TeE6i-00036R-TR for ietf-http-wg@listhub.w3.org; Fri, 30 Nov 2012 00:05:29 +0000
Received: from mail.ietf.org ([2001:1890:126c::1:1e]) by aji.keio.w3.org with esmtp (Exim 4.72) (envelope-from <internet-drafts@ietf.org>) id 1TeDzE-0006Hv-V6 for ietf-http-wg@w3.org; Thu, 29 Nov 2012 23:57:46 +0000
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E362F21F8AC7 for <ietf-http-wg@w3.org>; Thu, 29 Nov 2012 14:30:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YFqcgPSFSJDN; Thu, 29 Nov 2012 14:30:20 -0800 (PST)
Received: from ietfa.amsl.com (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 14D8121F8AC1; Thu, 29 Nov 2012 14:30:20 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
From: internet-drafts@ietf.org
To: i-d-announce@ietf.org
Cc: ietf-http-wg@w3.org
X-Test-IDTracker: no
X-IETF-IDTracker: 4.36
Message-ID: <20121129223020.1354.87590.idtracker@ietfa.amsl.com>
Date: Thu, 29 Nov 2012 14:30:20 -0800
Received-SPF: pass client-ip=2001:1890:126c::1:1e; envelope-from=internet-drafts@ietf.org; helo=mail.ietf.org
X-W3C-Hub-Spam-Status: No, score=-3.6
X-W3C-Hub-Spam-Report: AWL=-3.265, RP_MATCHES_RCVD=-0.368, SPF_PASS=-0.001
X-W3C-Scan-Sig: aji.keio.w3.org 1TeDzE-0006Hv-V6 4f0128a35db8917dda21684d284ec1f4
X-Original-To: ietf-http-wg@w3.org
Subject: I-D Action: draft-ietf-httpbis-http2-00.txt
Archived-At: <http://www.w3.org/mid/20121129223020.1354.87590.idtracker@ietfa.amsl.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15713
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

A New Internet-Draft is available from the on-line Internet-Drafts director=
ies.
 This draft is a work item of the Hypertext Transfer Protocol Bis Working G=
roup of the IETF.

	Title           : SPDY Protocol
	Author(s)       : Mike Belshe
                          Roberto Peon
                          Martin Thomson
                          Alexey Melnikov
	Filename        : draft-ietf-httpbis-http2-00.txt
	Pages           : 46
	Date            : 2012-11-28

Abstract:
   This document describes SPDY, a protocol designed for low-latency
   transport of content over the World Wide Web. SPDY introduces two
   layers of protocol.  The lower layer is a general purpose framing
   layer which can be used atop a reliable transport (likely TCP) for
   multiplexed, prioritized, and compressed data communication of many
   concurrent streams.  The upper layer of the protocol provides HTTP-
   like RFC2616 [RFC2616] semantics for compatibility with existing HTTP
   application servers.


The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-ietf-httpbis-http2

There's also a htmlized version available at:
http://tools.ietf.org/html/draft-ietf-httpbis-http2-00


Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/



From ietf-http-wg-request@listhub.w3.org  Thu Nov 29 16:12:34 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2860221F8AA2 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 29 Nov 2012 16:12:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.186
X-Spam-Level: 
X-Spam-Status: No, score=-8.186 tagged_above=-999 required=5 tests=[AWL=2.413, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 77JjJ51ZSt3h for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 29 Nov 2012 16:12:33 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 7B1EF21F8AA0 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 29 Nov 2012 16:12:33 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TeED3-0006CU-7Y for ietf-http-wg-dist@listhub.w3.org; Fri, 30 Nov 2012 00:12:01 +0000
Resent-Date: Fri, 30 Nov 2012 00:12:01 +0000
Resent-Message-Id: <E1TeED3-0006CU-7Y@frink.w3.org>
Received: from aji.keio.w3.org ([133.27.228.206]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TeECx-0006Bl-Rf for ietf-http-wg@listhub.w3.org; Fri, 30 Nov 2012 00:11:56 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by aji.keio.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TeECu-0007a7-Ua for ietf-http-wg@w3.org; Fri, 30 Nov 2012 00:11:54 +0000
Received: from [192.168.1.75] (unknown [118.209.244.234]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 22FBF509B5 for <ietf-http-wg@w3.org>; Thu, 29 Nov 2012 19:10:24 -0500 (EST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <20121129165719.14481.9124.idtracker@ietfa.amsl.com>
Date: Fri, 30 Nov 2012 11:10:20 +1100
Content-Transfer-Encoding: 7bit
Message-Id: <E876B5DD-A536-4597-9842-FC3809FEF9C2@mnot.net>
References: <20121129165719.14481.9124.idtracker@ietfa.amsl.com>
To: ietf-http-wg@w3.org
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-3.1
X-W3C-Hub-Spam-Report: AWL=-3.102, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: aji.keio.w3.org 1TeECu-0007a7-Ua fa61fba56961737b346443e7a3169e97
X-Original-To: ietf-http-wg@w3.org
Subject: Re: HTTPBIS WG Interim Meeting, January 30 - February 1, 2013, Tokyo
Archived-At: <http://www.w3.org/mid/E876B5DD-A536-4597-9842-FC3809FEF9C2@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15715
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Folks,

I've started collecting logistics here:
  http://trac.tools.ietf.org/wg/httpbis/trac/wiki/F2F/Jan13

PLEASE send me an e-mail ASAP if you plan to come.

Regards,


On 30/11/2012, at 3:57 AM, IESG Secretary <iesg-secretary@ietf.org> wrote:

> This is an announcement of an Interim Meeting for the HTTPbis WG.
> 
> The goal of the meeting is to discuss the issues against HTTP/2 [1] and 
> formulate proposals to bring back to the WG.
> 
> We'll be meeting in Tokyo from January 30 - February 1, 2013. Google has 
> kindly offered to host; details regarding exact location, meeting times, 
> remote participation details, recommended hotels, etc. will be 
> forthcoming.
> 
> If you'd like to attend, please send a note to <mnot@mnot.net> by 15 
> December 2012; we need accurate estimates for site logistics.
> 
> Regards,
> 
> 1. http://trac.tools.ietf.org/wg/httpbis/trac/report/21
> 

--
Mark Nottingham   http://www.mnot.net/





From ietf-http-wg-request@listhub.w3.org  Thu Nov 29 16:34:57 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4049021F8ADC for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 29 Nov 2012 16:34:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.498
X-Spam-Level: 
X-Spam-Status: No, score=-10.498 tagged_above=-999 required=5 tests=[AWL=0.100, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UMeJEAqhl4s8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 29 Nov 2012 16:34:56 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 70AB521F8ADB for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 29 Nov 2012 16:34:52 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TeEYE-0001Nd-CO for ietf-http-wg-dist@listhub.w3.org; Fri, 30 Nov 2012 00:33:54 +0000
Resent-Date: Fri, 30 Nov 2012 00:33:54 +0000
Resent-Message-Id: <E1TeEYE-0001Nd-CO@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1TeEY8-0001MO-TZ for ietf-http-wg@listhub.w3.org; Fri, 30 Nov 2012 00:33:48 +0000
Received: from mail-lb0-f171.google.com ([209.85.217.171]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1TeEY7-00016H-II for ietf-http-wg@w3.org; Fri, 30 Nov 2012 00:33:48 +0000
Received: by mail-lb0-f171.google.com with SMTP id gf7so54627lbb.2 for <ietf-http-wg@w3.org>; Thu, 29 Nov 2012 16:33:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=G7MpxizIwdKh58ykQfe8Ue1HvguibTaCyOwSw0g53Y8=; b=Wqaa6Vj6jIzwDxU8OlymILX3IPVHz/p8JekrA36qd3ot69YuJumEqwpyo50KmiB5tN hN0uLLI94QE3A1G5W/WONdLyy987c9PuAl1yvkNcgnrKlGFmu+jIc67nRmewRrasvqFJ hFClgsxolcLRUJ4ddi6nOrsC5oz0vbnRcDeKIELAh6Nfj9ETKrsMJsl+IXDFSn3SaScX JEdCeIcajwdBtWcVCu33AZ5QYoR9Wwf+H/hZqJJ18bv/S8iKfNTLCDtVEVrRdA0ZtnIv aH7eLzODxVvJYOUJ0FMHeYHIzCkXZx9byMU6JW/J4oO2wmzVAyPs8E52hdC125/FDG+q bxgg==
MIME-Version: 1.0
Received: by 10.152.108.37 with SMTP id hh5mr23382166lab.52.1354229471814; Thu, 29 Nov 2012 14:51:11 -0800 (PST)
Received: by 10.112.128.200 with HTTP; Thu, 29 Nov 2012 14:51:11 -0800 (PST)
Date: Thu, 29 Nov 2012 14:51:11 -0800
Message-ID: <CAP+FsNed22u_hHw5WPZX7+MvSXeB+t8HBJh8wxdQsk0ZXrzr5Q@mail.gmail.com>
From: Roberto Peon <grmocg@gmail.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=bcaec54ee10a9ca36804cfaa1ef7
Received-SPF: pass client-ip=209.85.217.171; envelope-from=grmocg@gmail.com; helo=mail-lb0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.710, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TeEY7-00016H-II 6d273a1fbf5c9d7cc73f494d0ee66762
X-Original-To: ietf-http-wg@w3.org
Subject: delta-encoding compressor code
Archived-At: <http://www.w3.org/mid/CAP+FsNed22u_hHw5WPZX7+MvSXeB+t8HBJh8wxdQsk0ZXrzr5Q@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15716
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--bcaec54ee10a9ca36804cfaa1ef7
Content-Type: text/plain; charset=ISO-8859-1

I've rewritten the python version, which now does encoding/decoding of the
new format, which is smaller than the old version
I've also cleaned up the code a fair bit and added some documentation for
the more important bits.

As usual, the code is available here:
  https://github.com/grmocg/SPDY-Specification/tree/gh-pages

An example output over my dataset, generated by doing ./headers_sample.py
-v 0 ../test-data/*.har
   is this:
                                       http1   |   spdy3   |   spdy4
Req                Compressed Sums:    830525  |   944453  |   106185
Req              Uncompressed Sums:     67237  |    87886  |   106185
Rsp                Compressed Sums:    508189  |   627505  |   152962
Rsp              Uncompressed Sums:    105626  |   128226  |   152962
Req   Compressed/uncompressed HTTP:   0.08096  |  0.10582  |  0.12785
Rsp   Compressed/uncompressed HTTP:   0.20785  |  0.25232  |  0.30099

As a reminder compressing HTTP/1.X or SPDY3 (raw) with gzip isn't safe, and
is included only for comparison/reference.

There are a few parameters in headers_codec.py which may be interesting to
play with (and the majority of the TODOs indicating my thoughts on future
research direction/work).
In particular, look for:
string_length_field_bitlen, strings_use_eof, strings_padded_to_byte_boundary,
and strings_use_huffman

One thing which is a TODO here is that I haven't ensured that the first-bit
of any huffman-encoded string is 1 (which is something I did intend to have
in there, but isn't super critical right now), which is one possible way of
indicating that a string is not huffman-encoded.

As a reminder, though the python version is not made for performance, the
compressor here is made with performance in mind, and includes features to
attempt to ensure that high-throughput proxies can operate efficiently, and
as a result we do trade-off some compression.

The c++ version of this (which only currently does compression) is useful
for determining approximate speed (~3X faster than gzip when doing
compression, which proxies should be able to avoid)
-=R

--bcaec54ee10a9ca36804cfaa1ef7
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I&#39;ve rewritten the python version, which now does encoding/decoding of =
the new format, which is smaller than the old version<div>I&#39;ve also cle=
aned up the code a fair bit and added some documentation for the more impor=
tant bits.</div>
<div><br></div><div>As usual, the code is available here:</div><div>=A0 <a =
href=3D"https://github.com/grmocg/SPDY-Specification/tree/gh-pages">https:/=
/github.com/grmocg/SPDY-Specification/tree/gh-pages</a><br></div><div><br><=
/div>
<div>An example output over my dataset, generated by doing ./headers_sample=
.py -v 0 ../test-data/*.har</div><div>=A0 =A0is this:</div><div><div><font =
face=3D"courier new, monospace">=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0http1 =A0 | =A0 spdy3 =A0 | =A0 spdy4=
=A0</font></div>
<div><font face=3D"courier new, monospace">Req =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0Compressed Sums: =A0 =A0830525 =A0| =A0 944453 =A0| =A0 106185 =A0</font=
></div><div><font face=3D"courier new, monospace">Req =A0 =A0 =A0 =A0 =A0 =
=A0 =A0Uncompressed Sums: =A0 =A0 67237 =A0| =A0 =A087886 =A0| =A0 106185 =
=A0</font></div>
<div><font face=3D"courier new, monospace">Rsp =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0Compressed Sums: =A0 =A0508189 =A0| =A0 627505 =A0| =A0 152962 =A0</font=
></div><div><font face=3D"courier new, monospace">Rsp =A0 =A0 =A0 =A0 =A0 =
=A0 =A0Uncompressed Sums: =A0 =A0105626 =A0| =A0 128226 =A0| =A0 152962 =A0=
</font></div>
<div><font face=3D"courier new, monospace">Req =A0 Compressed/uncompressed =
HTTP: =A0 0.08096 =A0| =A00.10582 =A0| =A00.12785 =A0</font></div><div><fon=
t face=3D"courier new, monospace">Rsp =A0 Compressed/uncompressed HTTP: =A0=
 0.20785 =A0| =A00.25232 =A0| =A00.30099 =A0</font></div>
<div><font face=3D"courier new, monospace"><br></font></div></div><div>As a=
 reminder compressing HTTP/1.X or SPDY3 (raw) with gzip isn&#39;t safe, and=
 is included only for comparison/reference.</div><div><br></div><div>There =
are a few parameters in headers_codec.py which may be interesting to play w=
ith (and the majority of the TODOs indicating my thoughts on future researc=
h direction/work).</div>
<div>In particular, look for: string_length_field_bitlen,=A0strings_use_eof=
,=A0strings_padded_to_byte_boundary, and=A0strings_use_huffman</div><div><b=
r></div><div>One thing which is a TODO here is that I haven&#39;t ensured t=
hat the first-bit of any huffman-encoded string is 1 (which is something I =
did intend to have in there, but isn&#39;t super critical right now), which=
 is one possible way of indicating that a string is not huffman-encoded.</d=
iv>
<div><br></div><div>As a reminder, though the python version is not made fo=
r performance, the compressor here is made with performance in mind, and in=
cludes features to attempt to ensure that high-throughput proxies can opera=
te efficiently, and as a result we do trade-off some compression.</div>
<div><br></div><div>The c++ version of this (which only currently does comp=
ression) is useful for determining approximate speed (~3X faster than gzip =
when doing compression, which proxies should be able to avoid)</div><div>
-=3DR</div>

--bcaec54ee10a9ca36804cfaa1ef7--


From ietf-http-wg-request@listhub.w3.org  Fri Nov 30 03:35:49 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B9D4E21F86FF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 30 Nov 2012 03:35:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.949
X-Spam-Level: 
X-Spam-Status: No, score=-9.949 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HELO_EQ_FR=0.35, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MlG944rDeXcy for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 30 Nov 2012 03:35:48 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 89A3921F86E8 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 30 Nov 2012 03:35:48 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TeOqZ-0005Vz-3Y for ietf-http-wg-dist@listhub.w3.org; Fri, 30 Nov 2012 11:33:31 +0000
Resent-Date: Fri, 30 Nov 2012 11:33:31 +0000
Resent-Message-Id: <E1TeOqZ-0005Vz-3Y@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <f.kayser@free.fr>) id 1TeOqR-0005VF-Tm for ietf-http-wg@listhub.w3.org; Fri, 30 Nov 2012 11:33:23 +0000
Received: from smtp5-g21.free.fr ([212.27.42.5]) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <f.kayser@free.fr>) id 1TeOqO-0002Gd-LC for ietf-http-wg@w3.org; Fri, 30 Nov 2012 11:33:23 +0000
Received: from [192.168.0.1] (unknown [81.56.127.176]) by smtp5-g21.free.fr (Postfix) with ESMTP id 2CE48D48150; Fri, 30 Nov 2012 12:32:54 +0100 (CET)
From: =?iso-8859-1?Q?Fr=E9d=E9ric_Kayser?= <f.kayser@free.fr>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
Date: Fri, 30 Nov 2012 12:32:53 +0100
Message-Id: <26DA01FE-847E-429C-838C-4D260519E931@free.fr>
Cc: Mike Belshe <mbelshe@chromium.org>, Roberto Peon <fenix@google.com>
To: ietf-http-wg@w3.org
Mime-Version: 1.0 (Apple Message framework v1084)
X-Mailer: Apple Mail (2.1084)
Received-SPF: none client-ip=212.27.42.5; envelope-from=f.kayser@free.fr; helo=smtp5-g21.free.fr
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-2.500, BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001
X-W3C-Scan-Sig: maggie.w3.org 1TeOqO-0002Gd-LC 708f3f09b10587926c944215a835bc14
X-Original-To: ietf-http-wg@w3.org
Subject: Regarding initial dictionary for HTTP http://tools.ietf.org/html/draft-ietf-httpbis-http2-00#ref-UDELCOMPRESSION
Archived-At: <http://www.w3.org/mid/26DA01FE-847E-429C-838C-4D260519E931@free.fr>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15717
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Hello,
I've just started to follow all those HTTP2.0 SPDY talks.
I have a good knowledge of how Deflate/Zlib compression works and when I =
look at the chapter  2.6.10.1.  Compression of SPDY, I'm some what =
surprised by the content of SPDY_dictionary_txt[].

First of all, I suppose that HTTP 2.0 will not identify itself as =
"HTTP/1.1".
     0x00, 0x08, 0x48, 0x54, 0x54, 0x50, 0x2f, 0x31,  \\ - - H T T P - 1
     0x2e, 0x31, 0x00, 0x00, 0x00, 0x03, 0x75, 0x72,  \\ - 1 - - - - u r

And it favors old image formats:
     0x68, 0x74, 0x6d, 0x6c, 0x2c, 0x69, 0x6d, 0x61,  \\ h t m l - i m a
     0x67, 0x65, 0x2f, 0x70, 0x6e, 0x67, 0x2c, 0x69,  \\ g e - p n g - i
     0x6d, 0x61, 0x67, 0x65, 0x2f, 0x6a, 0x70, 0x67,  \\ m a g e - j p g
     0x2c, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2f, 0x67,  \\ - i m a g e - g
     0x69, 0x66, 0x2c, 0x61, 0x70, 0x70, 0x6c, 0x69,  \\ i f - a p p l i

There are no provision made for SVG or WebP MIME types, since the =
dictionary itself is based on data gathered a couple of years ago it =
does not look forward to catch new trends (HTML5 video types...)


There are a few interesting statements in this document:
http://www.eecis.udel.edu/~amer/PEL/poc/pdf/SPDY-Fan.pdf

"3.3 Frequency to Update the Initial Dictionary
An update of zlib=92s initial dictionary for SPDY requires modifying =
both peer end points (client browser and server), so changes are =
problematic. If the initial dictionary is not permitted to change or can =
only change infrequently (e.g., every few years), we want today's =
initial dictionary to be appropriate in the future."

"4 Methodology to Derive the Initial Dictionary
...
4 Build an initial dictionary for HTTP replies based on the weight of =
each keyword in HTTP reply headers. Build an initial dictionary for HTTP =
requests based on the count of each keyword in HTTP request headers. =
Since the SPDY designers preferred to have just a single dictionary for =
both headers and replies, we then concatenate these two dictionaries. =
For HTTP header field names and some fixed length values (e.g., =
HTTP/1.1, 200 OK), we include the 32- bit length prefix before the word. =
(Note: a separate initial dictionary optimized for either HTTP requests =
or replies would likely provide better compression, but would in turn =
make SPDY=92s implementation more complex.)"

I dont' see why it would be more complex to use two dictionaries (one is =
for what's going in and the other for what's going out, just cross them =
client/server based), if it leads to better compression this is the way =
to go, it should even be faster since smaller dictionaries lead to =
faster search.

And why wouldn't it be possible to include an update system? Servers =
would send new dictionaries every year or every month to catch new =
trends.
A transport protocol that walls itself in based on past statistics =
really lacks visionary qualities, I think this should not be overlooked.

In the zlib header there's a way to select different dictionaries:
RFC 1950       ZLIB Compressed Data Format Specification

      FDICT (Preset dictionary)
         If FDICT is set, a DICT dictionary identifier is present
         immediately after the FLG byte. The dictionary is a sequence of
         bytes which are initially fed to the compressor without
         producing any compressed output. DICT is the Adler-32 checksum
         of this sequence of bytes (see the definition of ADLER32
         below).  The decompressor can use this identifier to determine
         which dictionary has been used by the compressor.


At first glance the methodology used to produce the initial dictionary =
seems limited.

Apparently the dictionary is not sorted based on the frequency of the =
LZ77 matches, high frequency matches should be moved to the end of the =
dictionary to reduce the distance part of the LZ77 (length, distance) =
pair.
There are a lot of redundancies inside the dictionary itself, the goal =
is probably to catch an entire keyword name in a single LZ77 match, in =
the other hand this increases the dictionary size and requires longer =
distance and length references. Another approach would be to remove =
redundancies from the dictionary this could even produce overlapping =
sequences like "webpngif" that could be used to match "webp", "png" and =
"gif", it would replace a single match by two or three shorter ones =
(this will not necessarily produce a shorter compressed stream, but as =
apparently not been tried).

Regards
--=20
Fr=E9d=E9ric Kayser



From ietf-http-wg-request@listhub.w3.org  Fri Nov 30 12:59:40 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 541F521F85A7 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 30 Nov 2012 12:59:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.949
X-Spam-Level: 
X-Spam-Status: No, score=-6.949 tagged_above=-999 required=5 tests=[AWL=3.350, BAYES_00=-2.599, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bIgQqtTh0d+x for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 30 Nov 2012 12:59:39 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id A5A7D21F85A4 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 30 Nov 2012 12:59:39 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TeXeF-00080j-T6 for ietf-http-wg-dist@listhub.w3.org; Fri, 30 Nov 2012 20:57:23 +0000
Resent-Date: Fri, 30 Nov 2012 20:57:23 +0000
Resent-Message-Id: <E1TeXeF-00080j-T6@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1TeXeA-0007zu-7D for ietf-http-wg@listhub.w3.org; Fri, 30 Nov 2012 20:57:18 +0000
Received: from mail-wg0-f47.google.com ([74.125.82.47]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1TeXe8-0003gs-QP for ietf-http-wg@w3.org; Fri, 30 Nov 2012 20:57:17 +0000
Received: by mail-wg0-f47.google.com with SMTP id dq11so352126wgb.26 for <ietf-http-wg@w3.org>; Fri, 30 Nov 2012 12:56:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=OnRTej17NknRc3gOG3btygRO2aZyTEKy+vq7VX4Z0Uc=; b=vs/uH6YYpyfR42RvkGvytySfacpf55lM0f6LEIlziAeys/HNpvOU3NXckuaNukoEEm g/rRS8rolklzorMk09ipWyvtl6O23xobCDU+UzWCsJ9q133dU4LaJVsWQ2RHtoh13BmF SPj+YXu9aWO76ZoqsyXfQa3+UOZEpIoddpCSxBDAChhb3I9RfC0EguI3U7mUzU7pjwS7 YMiTJQ0EDmsiJfit+WUkBBNZtsZqpwRTKPnxYoeDaPHA2W+4M2IdjTlRMthSx0c/4r/6 k6oE0zTJ3WJWCiGDFqboACYe3yhAXHkmqx81nUpFnTEz+he16RSIWuKyyvtXd3scFn59 zF6w==
MIME-Version: 1.0
Received: by 10.216.226.137 with SMTP id b9mr914525weq.137.1354309010681; Fri, 30 Nov 2012 12:56:50 -0800 (PST)
Received: by 10.180.103.8 with HTTP; Fri, 30 Nov 2012 12:56:50 -0800 (PST)
In-Reply-To: <26DA01FE-847E-429C-838C-4D260519E931@free.fr>
References: <26DA01FE-847E-429C-838C-4D260519E931@free.fr>
Date: Fri, 30 Nov 2012 12:56:50 -0800
Message-ID: <CABkgnnWFYQKZJ-T1YD67z9jhnV0VjfZP+VC7LVOGEn1Y1Ca85w@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: =?UTF-8?B?RnLDqWTDqXJpYyBLYXlzZXI=?= <f.kayser@free.fr>
Cc: HTTP Working Group <ietf-http-wg@w3.org>, Mike Belshe <mbelshe@chromium.org>,  Roberto Peon <fenix@google.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=74.125.82.47; envelope-from=martin.thomson@gmail.com; helo=mail-wg0-f47.google.com
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: AWL=-1.361, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TeXe8-0003gs-QP a8ae9a1383851b94f3f098d99a9dff07
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Regarding initial dictionary for HTTP http://tools.ietf.org/html/draft-ietf-httpbis-http2-00#ref-UDELCOMPRESSION
Archived-At: <http://www.w3.org/mid/CABkgnnWFYQKZJ-T1YD67z9jhnV0VjfZP+VC7LVOGEn1Y1Ca85w@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15718
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 30 November 2012 03:32, Fr=C3=A9d=C3=A9ric Kayser <f.kayser@free.fr> wro=
te:
> Hello,
> I've just started to follow all those HTTP2.0 SPDY talks.
> I have a good knowledge of how Deflate/Zlib compression works and when I =
look at the chapter  2.6.10.1.  Compression of SPDY, I'm some what surprise=
d by the content of SPDY_dictionary_txt[].

Hi Fr=C3=A9d=C3=A9ric,

This is one aspect of HTTP2 that is very likely to change.  I
encourage you to look at Roberto's work on delta-coding.

I'll note that the SPDY initial dictionary optimizes for the web as of
2011.  It is conceivable that selecting a fixed dictionary could
become suboptimal as the web evolves; similarly, it might be
suboptimal for non-web uses.

--Martin


From ietf-http-wg-request@listhub.w3.org  Fri Nov 30 13:05:19 2012
Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3245421F85BF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 30 Nov 2012 13:05:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.515
X-Spam-Level: 
X-Spam-Status: No, score=-10.515 tagged_above=-999 required=5 tests=[AWL=0.083, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oR+GHNBNIMpx for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 30 Nov 2012 13:05:13 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 4668321F85A7 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 30 Nov 2012 13:05:13 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TeXkZ-0003Xp-J6 for ietf-http-wg-dist@listhub.w3.org; Fri, 30 Nov 2012 21:03:55 +0000
Resent-Date: Fri, 30 Nov 2012 21:03:55 +0000
Resent-Message-Id: <E1TeXkZ-0003Xp-J6@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1TeXkT-0003X9-Es for ietf-http-wg@listhub.w3.org; Fri, 30 Nov 2012 21:03:49 +0000
Received: from mail-lb0-f171.google.com ([209.85.217.171]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1TeXkP-0003qJ-AP for ietf-http-wg@w3.org; Fri, 30 Nov 2012 21:03:49 +0000
Received: by mail-lb0-f171.google.com with SMTP id gf7so830206lbb.2 for <ietf-http-wg@w3.org>; Fri, 30 Nov 2012 13:03:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=3kixjl+g05D+QlMZKBa8i2llx7PANVe9k46IyYed6rE=; b=Ot6wRcEZ0Q7qtbuOz7N4eMPoGLiDE51rxf+BqhQPNSxEjSt61Zl0SfzeIWOBcT7U10 qZHDaig5QjXRSmkmT0AXJWu0DpzZuZP6ZfEpyDuWQvbL6zebhh7bJ7b4zXGae4Fqn/xL H/bZrEOUkP2bwkORihymvpSuVzyD7x/YiLVhz4XRfzvmCPr8qFt9gZP6ztisOWFZ0UvV Fjs2n9YwWCKlEbbW5jnjd9c93OlcXi9TexN1WfZzofiIr6Lhj0DrTMB8saWQg/Qf7WTF uEh95TCRiSKnvLyV7o7qZEjXbg8ZS4VutU3eMmfn647f3pjdeNP8/jouB9aNDGS+0XaU Z5rw==
MIME-Version: 1.0
Received: by 10.152.105.33 with SMTP id gj1mr2486054lab.49.1354309398754; Fri, 30 Nov 2012 13:03:18 -0800 (PST)
Received: by 10.112.128.200 with HTTP; Fri, 30 Nov 2012 13:03:18 -0800 (PST)
In-Reply-To: <CAP+FsNed22u_hHw5WPZX7+MvSXeB+t8HBJh8wxdQsk0ZXrzr5Q@mail.gmail.com>
References: <CAP+FsNed22u_hHw5WPZX7+MvSXeB+t8HBJh8wxdQsk0ZXrzr5Q@mail.gmail.com>
Date: Fri, 30 Nov 2012 13:03:18 -0800
Message-ID: <CAP+FsNfSkehELu0f9xnjKNMefwgE4dE_QK=ZtMW7yx-ZyK8O=g@mail.gmail.com>
From: Roberto Peon <grmocg@gmail.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=f46d040716e3a0f62404cfbcba08
Received-SPF: pass client-ip=209.85.217.171; envelope-from=grmocg@gmail.com; helo=mail-lb0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-4.5
X-W3C-Hub-Spam-Report: AWL=-1.761, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TeXkP-0003qJ-AP 0500598a2685047425af431b4062979c
X-Original-To: ietf-http-wg@w3.org
Subject: Re: delta-encoding compressor code
Archived-At: <http://www.w3.org/mid/CAP+FsNfSkehELu0f9xnjKNMefwgE4dE_QK=ZtMW7yx-ZyK8O=g@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15719
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

--f46d040716e3a0f62404cfbcba08
Content-Type: text/plain; charset=ISO-8859-1

The ratios are correct, but 'uncompressed' is labeled as 'compressed' and
vice versa. *sigh* I'll fix it with the next commit.
-=R


On Thu, Nov 29, 2012 at 2:51 PM, Roberto Peon <grmocg@gmail.com> wrote:

> I've rewritten the python version, which now does encoding/decoding of the
> new format, which is smaller than the old version
> I've also cleaned up the code a fair bit and added some documentation for
> the more important bits.
>
> As usual, the code is available here:
>   https://github.com/grmocg/SPDY-Specification/tree/gh-pages
>
> An example output over my dataset, generated by doing ./headers_sample.py
> -v 0 ../test-data/*.har
>    is this:
>                                        http1   |   spdy3   |   spdy4
> Req                Compressed Sums:    830525  |   944453  |   106185
> Req              Uncompressed Sums:     67237  |    87886  |   106185
> Rsp                Compressed Sums:    508189  |   627505  |   152962
> Rsp              Uncompressed Sums:    105626  |   128226  |   152962
> Req   Compressed/uncompressed HTTP:   0.08096  |  0.10582  |  0.12785
> Rsp   Compressed/uncompressed HTTP:   0.20785  |  0.25232  |  0.30099
>
> As a reminder compressing HTTP/1.X or SPDY3 (raw) with gzip isn't safe,
> and is included only for comparison/reference.
>
> There are a few parameters in headers_codec.py which may be interesting to
> play with (and the majority of the TODOs indicating my thoughts on future
> research direction/work).
> In particular, look for:
> string_length_field_bitlen, strings_use_eof, strings_padded_to_byte_boundary,
> and strings_use_huffman
>
> One thing which is a TODO here is that I haven't ensured that the
> first-bit of any huffman-encoded string is 1 (which is something I did
> intend to have in there, but isn't super critical right now), which is one
> possible way of indicating that a string is not huffman-encoded.
>
> As a reminder, though the python version is not made for performance, the
> compressor here is made with performance in mind, and includes features to
> attempt to ensure that high-throughput proxies can operate efficiently, and
> as a result we do trade-off some compression.
>
> The c++ version of this (which only currently does compression) is useful
> for determining approximate speed (~3X faster than gzip when doing
> compression, which proxies should be able to avoid)
> -=R
>

--f46d040716e3a0f62404cfbcba08
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

The ratios are correct, but &#39;uncompressed&#39; is labeled as &#39;compr=
essed&#39; and vice versa. *sigh* I&#39;ll fix it with the next commit.<div=
>-=3DR</div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">O=
n Thu, Nov 29, 2012 at 2:51 PM, Roberto Peon <span dir=3D"ltr">&lt;<a href=
=3D"mailto:grmocg@gmail.com" target=3D"_blank">grmocg@gmail.com</a>&gt;</sp=
an> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">I&#39;ve rewritten the python version, which=
 now does encoding/decoding of the new format, which is smaller than the ol=
d version<div>
I&#39;ve also cleaned up the code a fair bit and added some documentation f=
or the more important bits.</div>
<div><br></div><div>As usual, the code is available here:</div><div>=A0 <a =
href=3D"https://github.com/grmocg/SPDY-Specification/tree/gh-pages" target=
=3D"_blank">https://github.com/grmocg/SPDY-Specification/tree/gh-pages</a><=
br>
</div><div><br></div>
<div>An example output over my dataset, generated by doing ./headers_sample=
.py -v 0 ../test-data/*.har</div><div>=A0 =A0is this:</div><div><div><font =
face=3D"courier new, monospace">=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0http1 =A0 | =A0 spdy3 =A0 | =A0 spdy4=
=A0</font></div>

<div><font face=3D"courier new, monospace">Req =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0Compressed Sums: =A0 =A0830525 =A0| =A0 944453 =A0| =A0 106185 =A0</font=
></div><div><font face=3D"courier new, monospace">Req =A0 =A0 =A0 =A0 =A0 =
=A0 =A0Uncompressed Sums: =A0 =A0 67237 =A0| =A0 =A087886 =A0| =A0 106185 =
=A0</font></div>

<div><font face=3D"courier new, monospace">Rsp =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0Compressed Sums: =A0 =A0508189 =A0| =A0 627505 =A0| =A0 152962 =A0</font=
></div><div><font face=3D"courier new, monospace">Rsp =A0 =A0 =A0 =A0 =A0 =
=A0 =A0Uncompressed Sums: =A0 =A0105626 =A0| =A0 128226 =A0| =A0 152962 =A0=
</font></div>

<div><font face=3D"courier new, monospace">Req =A0 Compressed/uncompressed =
HTTP: =A0 0.08096 =A0| =A00.10582 =A0| =A00.12785 =A0</font></div><div><fon=
t face=3D"courier new, monospace">Rsp =A0 Compressed/uncompressed HTTP: =A0=
 0.20785 =A0| =A00.25232 =A0| =A00.30099 =A0</font></div>

<div><font face=3D"courier new, monospace"><br></font></div></div><div>As a=
 reminder compressing HTTP/1.X or SPDY3 (raw) with gzip isn&#39;t safe, and=
 is included only for comparison/reference.</div><div><br></div><div>There =
are a few parameters in headers_codec.py which may be interesting to play w=
ith (and the majority of the TODOs indicating my thoughts on future researc=
h direction/work).</div>

<div>In particular, look for: string_length_field_bitlen,=A0strings_use_eof=
,=A0strings_padded_to_byte_boundary, and=A0strings_use_huffman</div><div><b=
r></div><div>One thing which is a TODO here is that I haven&#39;t ensured t=
hat the first-bit of any huffman-encoded string is 1 (which is something I =
did intend to have in there, but isn&#39;t super critical right now), which=
 is one possible way of indicating that a string is not huffman-encoded.</d=
iv>

<div><br></div><div>As a reminder, though the python version is not made fo=
r performance, the compressor here is made with performance in mind, and in=
cludes features to attempt to ensure that high-throughput proxies can opera=
te efficiently, and as a result we do trade-off some compression.</div>

<div><br></div><div>The c++ version of this (which only currently does comp=
ression) is useful for determining approximate speed (~3X faster than gzip =
when doing compression, which proxies should be able to avoid)</div><span c=
lass=3D"HOEnZb"><font color=3D"#888888"><div>

-=3DR</div>
</font></span></blockquote></div><br></div>

--f46d040716e3a0f62404cfbcba08--

