From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 02:49:58 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id CAA07604
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 02:49:53 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id HAA16250;
	Thu, 2 Nov 2000 07:48:25 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id HAA06179;
	Thu, 2 Nov 2000 07:48:23 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id HAA15119; Thu, 2 Nov 2000 07:47:23 GMT
Resent-Date: Thu, 2 Nov 2000 07:47:23 GMT
Message-Id: <200011020743.XAA06762@breakaway.Stanford.EDU>
X-Mailer: exmh version 2.0.2 2/24/98
Subject: Of HTTP/1.1 persistent connections and TCP Keepalive timers
To: http-wg@hplb.hpl.hp.com
cc: Jeff.Hodges@kingsmountain.com
From: Jeff.Hodges@kingsmountain.com
Reply-to: Jeff.Hodges@kingsmountain.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 01 Nov 2000 23:43:48 -0800
Sender: hodges@breakaway.Stanford.EDU
Resent-Message-ID: <"_Dyfh2.0.Ci3.BmH0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/923
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com

I'm curious about how HTTP/1.1 [RFC2616] persistent connections typically work 
with respect to the typical browsers out in the wild today (Netscape & 
Microsoft being the two I'm particularly interested in). If I cause a browser 
to send a GET request for a given URL (using HTTP/1.1) to a server, and the 
server doesn't encounter any errors in processing it and responding, and then 
I (say) don't touch the browser for hours, what *typically* happens to the 
established HTTP/1.1 (-over-TCP) connection?

I note that RFC2616 says (in part)..


                             :
8 Connections

8.1 Persistent Connections
                             :
   HTTP implementations SHOULD implement persistent connections.
                             :
   A significant difference between HTTP/1.1 and earlier versions of
   HTTP is that persistent connections are the default behavior of any
   HTTP connection. That is, unless otherwise indicated, the client
   SHOULD assume that the server will maintain a persistent connection,
   even after error responses from the server.
                             :


As it is written, this effectively puts the responsibility for closing the 
HTTP/1.1-cum-TCP connection on the client.

In nosing around on this subject, I note that in [W.R.Stevens, TCP/IP 
Illustrated Vol 1, http://www.dqc.org/~chris/tcpip_ill/], in chapter 23 
Stevens says that..

1. "Keepalives are not part of the TCP specification. ... Nevertheless, many 
implementations provide the keep-alive timer."

2. "If there is no activity on a given connection for 2 hours, the server 
sends a probe segment to the client. ... A perpetual question by people 
discovering the keepalive option is whether the 2-hour idle time value can be 
changed. They normally want it much lower, on the order of minutes. As we show 
in Appendix E, the value can usually be changed, but in all the systems 
described in this appendix, the keepalive interval is a system-wide value, so 
changing it affects all users of the option. "

..and in appendix E he shows kernel configuration parameters for several 
Unix-based TCP implementations, most all of which have a default 2-hour 
timeout *before* a keepalive packet will be sent.

I also note that Microsoft shows a default value of 2 hour idletime for the 
keepalive timer in this doc:

  http://www.microsoft.com/technet/winnt/reskit/sur_tcp2.asp


Some questions (again, in the case of HTTP/1.1 persistent connections):

Q1. Do the popular browsers typically take the platform's OS's TCP defaults 
for
the keepalive (if such capability is provided by the TCP/IP stack, and if it 
is actually used by the browser), or do they typically set this value to 
something in particular?


Q2. What typical assumptions are made on the browsers' parts about an 
established connection to a web site in the absence of user actions? If a
browser opened a HTTP/1.1 connection and the server is behaving as-specified 
by RFC2616, then it is up to the browser to close the connection. What do 
browsers typically do? I looked through the documented configuration 
parameters for Netscape Communicator..

  http://docs.iplanet.com/docs/manuals/communicator/newprefs/newprefn.html

..and could not find a timeout setting that's applicable for this particular 
case. How long will browsers, that are speaking HTTP/1.1, let this connection 
sit in the ESTABLISHED state?


Q3. Are the popular browsers typically using HTTP/1.1, or HTTP/1.0? I didn't 
notice any config parameters that might have something to do with setting the 
default.

thanks,

JeffH






From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 10:27:27 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id KAA23161
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 10:27:26 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id PAA28643;
	Thu, 2 Nov 2000 15:26:39 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id PAA04119;
	Thu, 2 Nov 2000 15:26:37 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id PAA15937; Thu, 2 Nov 2000 15:26:18 GMT
Resent-Date: Thu, 2 Nov 2000 15:26:18 GMT
From: "Joris Dobbelsteen" <joris.dobbelsteen@mail.com>
To: <Jeff.Hodges@KingsMountain.com>
Cc: "WWW WG (E-mail)" <http-wg@cuckoo.hpl.hp.com>
Subject: RE: Of HTTP/1.1 persistent connections and TCP Keepalive timers
Date: Thu, 2 Nov 2000 16:24:23 +0100
Message-ID: <000801c044e0$fbba7d80$01ff1fac@Thuis.local>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0)
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300
Importance: Normal
In-Reply-To: <200011020743.XAA06762@breakaway.Stanford.EDU>
Resent-Message-ID: <"wbKwM2.0.xu3.QUO0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/924
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by ietf.org id KAA23161

> -----Original Message-----
> From: hodges@breakaway.Stanford.EDU
> [mailto:hodges@breakaway.Stanford.EDU]On Behalf Of
> Jeff.Hodges@KingsMountain.com
> Sent: Thursday, 02 November 2000 8:44
> To: http-wg@hplb.hpl.hp.com
> Cc: Jeff.Hodges@KingsMountain.com
> Subject: Of HTTP/1.1 persistent connections and TCP Keepalive timers
> 
> 
> I'm curious about how HTTP/1.1 [RFC2616] persistent 
> connections typically work 
> with respect to the typical browsers out in the wild today 
> (Netscape & 
> Microsoft being the two I'm particularly interested in). If I 
> cause a browser 
> to send a GET request for a given URL (using HTTP/1.1) to a 
> server, and the 
> server doesn't encounter any errors in processing it and 
> responding, and then 
> I (say) don't touch the browser for hours, what *typically* 
> happens to the 
> established HTTP/1.1 (-over-TCP) connection?
> 

<<<SNIP>>>

> 
> Some questions (again, in the case of HTTP/1.1 persistent 
> connections):
> 
> Q1. Do the popular browsers typically take the platform's 
> OS's TCP defaults 
> for
> the keepalive (if such capability is provided by the TCP/IP 
> stack, and if it 
> is actually used by the browser), or do they typically set 
> this value to 
> something in particular?

HTTP/1.1 does not rely on the TCP timeout/keepalive. A HTTP/1.1 connected is alive only if the lower-layer connection is in the CONNECTED state.
> 
> 
> Q2. What typical assumptions are made on the browsers' parts about an 
> established connection to a web site in the absence of user 
> actions? If a
> browser opened a HTTP/1.1 connection and the server is 
> behaving as-specified 
> by RFC2616, then it is up to the browser to close the 
> connection. What do 
> browsers typically do? I looked through the documented configuration 
> parameters for Netscape Communicator..
> 
>   
> http://docs.iplanet.com/docs/manuals/communicator/newprefs/new
> prefn.html
> 
> ..and could not find a timeout setting that's applicable for this particular 
> case. How long will browsers, that are speaking HTTP/1.1, let this connection 
> sit in the ESTABLISHED state?

The browser can leave the connection open for an infinite ammount of time (if not restricted by lower-level protocols, like TCP).

However, idle time-outs when the connection is CONNECTED are, in the real world, handled by the server instead of the client. This is because the server is not interrested in HTTP connections that are idle for an infinite ammount of time and just consuming bandwidth (the lower-level connection must be maintained)...

In the real world, the server does close the connection (when it's idle) without an explicit message that the connection is going to be closed. The server also cannot do this on HTTP level.



> Q3. Are the popular browsers typically using HTTP/1.1, or HTTP/1.0? I didn't 
> notice any config parameters that might have something to do with setting the 
> default.

HTTP/1.1, this version indicates the browser is capable of handling features that are not supported in HTTP/1.0 (such as HTTP keepalive).

MSIE (for Windows) supports HTTP/1.1, but also HTTP/1.0 (default for proxy connections). Here the settings can be changed...

The version is also always send with a HTTP request or response (to indicate the browser/server capacties).

> 
> thanks,
> 
> JeffH
> 
> 


Hope to inform you. Maybe comments from the WG?


- Joris



From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 10:28:21 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id KAA23406
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 10:28:18 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id PAA28710;
	Thu, 2 Nov 2000 15:27:45 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id PAA04167;
	Thu, 2 Nov 2000 15:27:43 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id PAA15959; Thu, 2 Nov 2000 15:27:40 GMT
Resent-Date: Thu, 2 Nov 2000 15:27:40 GMT
Sender: jlacey@mothost.mot.com
Message-ID: <3A018789.ACABEFB1@Motorola.com>
Date: Thu, 02 Nov 2000 09:26:01 -0600
From: James Lacey <James.Lacey@Motorola.com>
X-Mailer: Mozilla 4.6 [en] (X11; I; SunOS 5.6 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: http-wg <http-wg@hplb.hpl.hp.com>
Subject: Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers
References: <200011020743.XAA06762@breakaway.Stanford.EDU>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Resent-Message-ID: <"a1uO-1.0.Kv3.iVO0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/925
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com
Content-Transfer-Encoding: 7bit

Jeff.Hodges@kingsmountain.com wrote:

> I'm curious about how HTTP/1.1 [RFC2616] persistent connections typically work
> with respect to the typical browsers out in the wild today (Netscape &
> Microsoft being the two I'm particularly interested in). If I cause a browser
> to send a GET request for a given URL (using HTTP/1.1) to a server, and the
> server doesn't encounter any errors in processing it and responding, and then
> I (say) don't touch the browser for hours, what *typically* happens to the
> established HTTP/1.1 (-over-TCP) connection?

The web server will close the connection due to inactivity.

You have to realize that web servers are trying to service literally
thousands of clients with only a relatively few TCP/IP connections.
If you don't use it you lose it.

Also, most web servers actively look for reasons to close a connection
to a client. For example, if the web server generates any dynamic content
for the client, then it will usually close the connection after the response it
sent back. Regardless of whether or not the client supplied a Connection:
Keep-Alive header or not. The reasoning behind this is that if the sever
had to generate dynamic content on your behalf, then you've had your share
and its time to give some other poor slob a turn.

>
>
> I note that RFC2616 says (in part)..
>
>                              :
> 8 Connections
>
> 8.1 Persistent Connections
>                              :
>    HTTP implementations SHOULD implement persistent connections.
>                              :
>    A significant difference between HTTP/1.1 and earlier versions of
>    HTTP is that persistent connections are the default behavior of any
>    HTTP connection. That is, unless otherwise indicated, the client
>    SHOULD assume that the server will maintain a persistent connection,
>    even after error responses from the server.
>                              :
>
> As it is written, this effectively puts the responsibility for closing the
> HTTP/1.1-cum-TCP connection on the client.

Nope. See my comments above.

Also, you have to realize that just cuz  the client sends a
Connection: Keep-Alive header it is in no way a guarantee
that the server will not close the connection after the
response is sent back.

There is a HUGE difference between the way the HTTP spec
is written and the way that web server's are actually designed
to work on the internet.

I'm not saying that the web server designers violated the
HTTP protocol. Rather they have simply done what they
have to do in order to protect their web server from
attacks, deadlocks, and starving clients.

Read further in the spec and you will see that the HTTP
spec says that unsafe methods should not be pipelined.

An unsafe method is a method that in some sense changes
the state of the server and will not necessarily generate the
same response every time it is executed.

On the internet unsafe methods are typically used to
represent a clients actions on the internet (i.e. I've just
sent a request to buy product X with my credit card
number aaaa-bbbb-cccc-dddd). Before submitting
another unsafe method I should be allowed to get
feedback about the current unsafe method and determine
if I wish to proceed with the next unsafe method or not.
So, when receiving an unsafe method (POST) most
web servers will close the connection after the response
is generated. Even if more unsafe methods have been sent
into the pipe. They are simply discarded.

>
>
> In nosing around on this subject, I note that in [W.R.Stevens, TCP/IP
> Illustrated Vol 1, http://www.dqc.org/~chris/tcpip_ill/], in chapter 23
> Stevens says that..
>
> 1. "Keepalives are not part of the TCP specification. ... Nevertheless, many
> implementations provide the keep-alive timer."
>
> 2. "If there is no activity on a given connection for 2 hours, the server
> sends a probe segment to the client. ... A perpetual question by people
> discovering the keepalive option is whether the 2-hour idle time value can be
> changed. They normally want it much lower, on the order of minutes. As we show
> in Appendix E, the value can usually be changed, but in all the systems
> described in this appendix, the keepalive interval is a system-wide value, so
> changing it affects all users of the option. "
>
> ..and in appendix E he shows kernel configuration parameters for several
> Unix-based TCP implementations, most all of which have a default 2-hour
> timeout *before* a keepalive packet will be sent.
>
> I also note that Microsoft shows a default value of 2 hour idletime for the
> keepalive timer in this doc:
>
>   http://www.microsoft.com/technet/winnt/reskit/sur_tcp2.asp

Here I think you are confusing TCP/IP keep alive, with HTTP's
Connection header and its Keep-Alive value.

Trust me. These are two very different unrelatred things.

>
>
> Some questions (again, in the case of HTTP/1.1 persistent connections):
>
> Q1. Do the popular browsers typically take the platform's OS's TCP defaults
> for
> the keepalive (if such capability is provided by the TCP/IP stack, and if it
> is actually used by the browser), or do they typically set this value to
> something in particular?

Browsers do not use this at all I'm quite sure.

>
>
> Q2. What typical assumptions are made on the browsers' parts about an
> established connection to a web site in the absence of user actions? If a
> browser opened a HTTP/1.1 connection and the server is behaving as-specified
> by RFC2616, then it is up to the browser to close the connection. What do
> browsers typically do? I looked through the documented configuration
> parameters for Netscape Communicator..
>
>   http://docs.iplanet.com/docs/manuals/communicator/newprefs/newprefn.html
>
> ..and could not find a timeout setting that's applicable for this particular
> case. How long will browsers, that are speaking HTTP/1.1, let this connection
> sit in the ESTABLISHED state?

Until the server closes it IMHO. The server will close the connection due
to inactivity; 30 seconds by default for iPlanet web server.

>
>
> Q3. Are the popular browsers typically using HTTP/1.1, or HTTP/1.0? I didn't
> notice any config parameters that might have something to do with setting the
> default.
>
> thanks,
>
> JeffH



From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 11:00:04 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id LAA02271
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 11:00:01 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id PAA29849;
	Thu, 2 Nov 2000 15:58:43 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id PAA06930;
	Thu, 2 Nov 2000 15:58:41 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id PAA16548; Thu, 2 Nov 2000 15:58:36 GMT
Resent-Date: Thu, 2 Nov 2000 15:58:36 GMT
Sender: francis@localhost.localdomain
Message-ID: <3A018FAF.4B58EB01@ecal.com>
Date: Thu, 02 Nov 2000 11:00:47 -0500
From: John Stracke <francis@ecal.com>
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i586)
X-Accept-Language: en, de, es
MIME-Version: 1.0
To: http-wg@hplb.hpl.hp.com
CC: Jeff.Hodges@KingsMountain.com
Subject: Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers
References: <200011020743.XAA06762@breakaway.Stanford.EDU>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Resent-Message-ID: <"zXXS11.0.X24.iyO0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/926
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com
Content-Transfer-Encoding: 7bit

Jeff.Hodges@KingsMountain.com wrote:

> Q1. Do the popular browsers typically take the platform's OS's TCP defaults
> for
> the keepalive (if such capability is provided by the TCP/IP stack, and if it
> is actually used by the browser), or do they typically set this value to
> something in particular?

Sane applications typically do not use TCP keepalives.  TCP keepalives are a way
of consuming bandwidth in order to make your application less reliable.

See, keepalives are misnamed; idle TCP connections will be kept alive
indefinitely by default.  Using keepalives means you send an empty ACK every so
often to see if the remote host is still up.  The problem is that sending that
keepalive will also mean you drop the connection if some intermediate router is
down.  But, if your link is idle, you don't care whether an intermediate router
is down; you only care when you want to send data.  So keepalives just add
another way for your application to fail.

--
/==============================================================\
|John Stracke    | http://www.ecal.com |My opinions are my own.|
|Chief Scientist |=============================================|
|eCal Corp.      |Two words that do not go together: "Memorial |
|francis@ecal.com|Cookbook".                                   |
\==============================================================/





From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 11:50:25 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id LAA15271
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 11:50:24 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id QAA02141;
	Thu, 2 Nov 2000 16:49:52 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id QAA11615;
	Thu, 2 Nov 2000 16:49:49 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id QAA16834; Thu, 2 Nov 2000 16:49:45 GMT
Resent-Date: Thu, 2 Nov 2000 16:49:45 GMT
Message-Id: <200011021646.IAA08149@breakaway.Stanford.EDU>
X-Mailer: exmh version 2.0.2 2/24/98
Subject: Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers 
To: http-wg <http-wg@hplb.hpl.hp.com>
Reply-to: http-wg <http-wg@hplb.hpl.hp.com>
From: Jeff.Hodges@kingsmountain.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 02 Nov 2000 08:46:04 -0800
Sender: hodges@breakaway.Stanford.EDU
Resent-Message-ID: <"Xekp7.0._64.fiP0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/927
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com

Thanks for all the info about how web servers are typically implemented. My 
apologies tho, I didn't really make my questions clear. What I'm really  
interested in is how *browsers* are typically implemented, because, say, I'm 
going to write my own HTTP/1.1-speaking gizmo for a very application-specific 
purpose, and I have reasons to want it (the server side) to treat 
client-initiated connections as persistent.

So this causes me to be curious about how BROWSERS will typically behave in 
this context.

Assuming one writes one's own HTTP/1.1-speaking gizmo (according to RFC2616), 
then I have these questions...


Q1. Do the popular BROWSERS typically take the platform's OS's TCP defaults 
for the keepalive (IF such capability is provided by the TCP/IP stack, and IF 
it is actually used by the browser), or do they typically set this value to
something in particular?


Q2. What typical assumptions are made on the BROWSERS' parts about an 
established connection to a HTTP/1.1-speaking server in the absence of user 
actions? If a browser opened a HTTP/1.1 connection and such a server is 
behaving as-specified by RFC2616, then it is up to the browser to close the 
connection. What do browsers typically do?

I looked through the documented configuration parameters for Netscape 
Communicator..

  http://docs.iplanet.com/docs/manuals/communicator/newprefs/newprefn.html

..and could not find a timeout setting that's applicable for this particular 
case. How long will BROWSERS, that are speaking HTTP/1.1, let this connection 
sit in the ESTABLISHED state?


Q3. Are the popular BROWSERS typically speaking HTTP/1.1, or HTTP/1.0? I 
didn't
notice any config parameters that might have something to do with setting the 
default.


thanks again,

JeffH




From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 12:11:32 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id MAA21487
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 12:11:31 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id RAA02913;
	Thu, 2 Nov 2000 17:10:51 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id RAA12717;
	Thu, 2 Nov 2000 17:10:48 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id RAA17158; Thu, 2 Nov 2000 17:10:46 GMT
Resent-Date: Thu, 2 Nov 2000 17:10:46 GMT
From: "Scott Lawrence" <lawrence@agranat.com>
To: "http-wg" <http-wg@hplb.hpl.hp.com>
Subject: RE: Of HTTP/1.1 persistent connections and TCP Keepalive timers 
Date: Thu, 2 Nov 2000 12:06:52 -0500
Message-ID: <00a901c044ef$4bfe3f80$1200150a@oyster.ma.virata.com>
MIME-Version: 1.0
Content-Type: multipart/mixed;
	boundary="----=_NextPart_000_00AA_01C044C5.63283780"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
In-Reply-To: <200011021646.IAA08149@breakaway.Stanford.EDU>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Resent-Message-ID: <"CQBAf3.0.0C4.M0Q0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/928
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com

This is a multi-part message in MIME format.

------=_NextPart_000_00AA_01C044C5.63283780
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit



--
Scott Lawrence         Architect             <lawrence@agranat.com>
Virata             http://www.virata.com/         http://emweb.com/

> Q1. Do the popular BROWSERS typically take the platform's
> OS's TCP defaults
> for the keepalive (IF such capability is provided by the
> TCP/IP stack, and IF
> it is actually used by the browser), or do they typically
> set this value to
> something in particular?

They don't leave connections open and idle long enough for this to be
relevant.  Browsers typically close idle connections in one or two
minutes, even if the server does not.

> I looked through the documented configuration parameters
> for Netscape
> Communicator..

Communicator doesn't do 1.1 yet.

Q3. Are the popular BROWSERS typically speaking HTTP/1.1, or HTTP/1.0?
I
didn't
notice any config parameters that might have something to do with
setting the
default.

The default for direct connections in IE is 1.1; I believe that Opera
also uses 1.1 by default now.

------=_NextPart_000_00AA_01C044C5.63283780
Content-Type: text/x-vcard;
	name="Scott D. Lawrence.vcf"
Content-Disposition: attachment;
	filename="Scott D. Lawrence.vcf"
Content-Transfer-Encoding: quoted-printable

BEGIN:VCARD
VERSION:2.1
N:Lawrence;Scott;D.
FN:Scott D. Lawrence
ORG:Virata
TITLE:Architect
TEL;WORK;VOICE:+1 (978) 461-0888 x235
TEL;WORK;FAX:+1 (978) 461-2080
ADR;WORK;ENCODING=3DQUOTED-PRINTABLE:;;5 Clocktower Place=3D0D=3D0ASuite =
400;Maynard;MA;01754;US
LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:5 Clocktower Place=3D0D=3D0ASuite =
400=3D0D=3D0AMaynard, MA 01754=3D0D=3D0AUS
URL:
URL:http://emweb.com/~lawrence/
EMAIL;PREF;INTERNET:slawrence@virata.com
EMAIL;INTERNET:lawrence@agranat.com
EMAIL;INTERNET:scott.lawrence@virata.com
REV:20000913T132943Z
END:VCARD

------=_NextPart_000_00AA_01C044C5.63283780--



From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 12:13:29 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id MAA22004
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 12:13:28 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id RAA03091;
	Thu, 2 Nov 2000 17:12:49 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id RAA12859;
	Thu, 2 Nov 2000 17:12:47 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id RAA17226; Thu, 2 Nov 2000 17:12:44 GMT
Resent-Date: Thu, 2 Nov 2000 17:12:44 GMT
Sender: jlacey@pobox2.mot.com
Message-ID: <3A01A034.88DF3EF9@Motorola.com>
Date: Thu, 02 Nov 2000 11:11:16 -0600
From: James Lacey <James.Lacey@Motorola.com>
X-Mailer: Mozilla 4.6 [en] (X11; I; SunOS 5.6 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: http-wg <http-wg@hplb.hpl.hp.com>
Subject: Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers
References: <200011021646.IAA08149@breakaway.Stanford.EDU>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Resent-Message-ID: <"GgdK63.0.7D4.C2Q0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/929
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com
Content-Transfer-Encoding: 7bit

Jeff.Hodges@kingsmountain.com wrote:

> Thanks for all the info about how web servers are typically implemented. My
> apologies tho, I didn't really make my questions clear. What I'm really
> interested in is how *browsers* are typically implemented, because, say, I'm
> going to write my own HTTP/1.1-speaking gizmo for a very application-specific
> purpose, and I have reasons to want it (the server side) to treat
> client-initiated connections as persistent.
>

The server-side will do whatever it wants no matter what you do on
the client side.

Believe me. I have been down this road.

If you are assuming that just because the HTTP protocol talks about
persistent connections that you will be able to connect to a typical
web server and have the connection stay up as long as you do things
on the client side 'just right' you are mistaken.

As I said before web servers actively look for reasons to close connections.
There is _nothing_ that you can do on the client side to prevent this.
Send Connection: Keep-Alive all you want. It will not keep the web
server from closing the connection whenever it darn well feels like it.

>
> So this causes me to be curious about how BROWSERS will typically behave in
> this context.
>
> Assuming one writes one's own HTTP/1.1-speaking gizmo (according to RFC2616),
> then I have these questions...
>
> Q1. Do the popular BROWSERS typically take the platform's OS's TCP defaults
> for the keepalive (IF such capability is provided by the TCP/IP stack, and IF
> it is actually used by the browser), or do they typically set this value to
> something in particular?

Browsers do not use TCP/IP keep alive!

Almost no one uses TCP/IP keep alive mechanisms.

As John Stracke pointed out the use of TCP/IP keep
alive actually makes your application less reliable
and more likely to close an idle connection for no
reason!

>
>
> Q2. What typical assumptions are made on the BROWSERS' parts about an
> established connection to a HTTP/1.1-speaking server in the absence of user
> actions? If a browser opened a HTTP/1.1 connection and such a server is
> behaving as-specified by RFC2616, then it is up to the browser to close the
> connection. What do browsers typically do?
>

Typically, browsers do not close the connection.

For example, suppose the  server sends back an HTTP response to the client
that does not have a Content-Length: header field and that it is not
chunked.

Then the only way the client knows that it has read the
entire response off of the pipe is when the server closes the connection.
When the server closes the connection the client will receive a
zero-byte read which is socket layer's indication that the pipe
is broken.

>
> I looked through the documented configuration parameters for Netscape
> Communicator..
>
>   http://docs.iplanet.com/docs/manuals/communicator/newprefs/newprefn.html
>
> ..and could not find a timeout setting that's applicable for this particular
> case. How long will BROWSERS, that are speaking HTTP/1.1, let this connection
> sit in the ESTABLISHED state?

My guess is that until the server closes the connection.

Which by the way, will be sooner than later.

>
>
> Q3. Are the popular BROWSERS typically speaking HTTP/1.1, or HTTP/1.0? I
> didn't
> notice any config parameters that might have something to do with setting the
> default.
>

I've done some snoops on browsers that are GETting HTML pages with
lots of embedded links that are in the same realm as the original HTML
page.

Despite this obvious opportunity to take advantage of persistent connections
the browser opens  a connection for each subsequent GET.

This is true even though the browser is advertising that it supports HTTP/1.1
Most browsers seem to be supporting receiveing of chunked dynamic content
rather than persistent connections ...

>
> thanks again,
>
> JeffH



From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 12:20:07 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id MAA23817
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 12:20:06 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id RAA03555;
	Thu, 2 Nov 2000 17:19:40 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id RAA13858;
	Thu, 2 Nov 2000 17:19:38 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id RAA17695; Thu, 2 Nov 2000 17:19:34 GMT
Resent-Date: Thu, 2 Nov 2000 17:19:34 GMT
Date: Thu, 2 Nov 2000 12:17:28 -0500 (EST)
From: Dave Kristol <dmk@research.bell-labs.com>
Message-Id: <200011021717.MAA19990@aleatory.research.bell-labs.com>
To: Jeff.Hodges@kingsmountain.com
Subject: Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers
Cc: http-wg@hplb.hpl.hp.com
Resent-Message-ID: <"bWHfG1.0.SK4.c8Q0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/930
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com

Jeff.Hodges@kingsmountain.com wrote:
  > Thanks for all the info about how web servers are typically implemented. My 
  > apologies tho, I didn't really make my questions clear. What I'm really  
  > interested in is how *browsers* are typically implemented, because, say, I'm 
  > going to write my own HTTP/1.1-speaking gizmo for a very application-specific 
  > purpose, and I have reasons to want it (the server side) to treat 
  > client-initiated connections as persistent.

Actually, I think most responses recognized that you were interested in
browsers.  The problem is that the browser can only express its
preference.  But the server is in command, and it can close a
connection whenever it feels it must.  That's why there were all the
comments on server behavior.  (In truth, the browser may *also* close
the connection at will, but that's a less common case.)

  > 
  > So this causes me to be curious about how BROWSERS will typically behave in 
  > this context.
  > 
  > Assuming one writes one's own HTTP/1.1-speaking gizmo (according to RFC2616), 
  > then I have these questions...
  > 
  > 

I am not a browser implementer, so my answers are speculative, but....

  > Q1. Do the popular BROWSERS typically take the platform's OS's TCP defaults 
  > for the keepalive (IF such capability is provided by the TCP/IP stack, and IF 
  > it is actually used by the browser), or do they typically set this value to
  > something in particular?

They take the OS's defaults.

  > 
  > 
  > Q2. What typical assumptions are made on the BROWSERS' parts about an 
  > established connection to a HTTP/1.1-speaking server in the absence of user 
  > actions? If a browser opened a HTTP/1.1 connection and such a server is 
  > behaving as-specified by RFC2616, then it is up to the browser to close the 
  > connection. What do browsers typically do?

Browsers probably open connections with the hope of keeping them open as
long as possible.  But as I said earlier, that doesn't mean they will stay
open.  I believe the only way the client discovers the connection has been
closed is by getting an error response when it tries to write to a (now-closed)
connection.

[Rest deleted -- I believe the questions were answered earlier.]

Dave Kristol



From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 12:23:35 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id MAA24793
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 12:23:33 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id RAA03804;
	Thu, 2 Nov 2000 17:23:06 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id RAA14317;
	Thu, 2 Nov 2000 17:23:04 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id RAA17843; Thu, 2 Nov 2000 17:23:01 GMT
Resent-Date: Thu, 2 Nov 2000 17:23:01 GMT
Date: Thu, 2 Nov 2000 09:20:56 -0800 (PST)
From: Marc Slemko <marcs@znep.com>
To: James Lacey <James.Lacey@Motorola.com>
cc: http-wg <http-wg@hplb.hpl.hp.com>
Subject: Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers
In-Reply-To: <3A018789.ACABEFB1@Motorola.com>
Message-ID: <Pine.BSF.4.20.0011020903230.2523-100000@alive.znep.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Resent-Message-ID: <"MXXND3.0.mM4.rBQ0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/931
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com

On Thu, 2 Nov 2000, James Lacey wrote:

> Jeff.Hodges@kingsmountain.com wrote:
> 
> > I'm curious about how HTTP/1.1 [RFC2616] persistent connections typically work
> > with respect to the typical browsers out in the wild today (Netscape &
> > Microsoft being the two I'm particularly interested in). If I cause a browser
> > to send a GET request for a given URL (using HTTP/1.1) to a server, and the
> > server doesn't encounter any errors in processing it and responding, and then
> > I (say) don't touch the browser for hours, what *typically* happens to the
> > established HTTP/1.1 (-over-TCP) connection?
> 
> The web server will close the connection due to inactivity.
> 
> You have to realize that web servers are trying to service literally
> thousands of clients with only a relatively few TCP/IP connections.
> If you don't use it you lose it.

It is fair to say that the client has no idea of what sort of resource 
limits the server may have, so it should leave the connection open 
unless it has some particular reason (eg. wanting to limit the total
number of connections it has open to all servers) to close it.  In 
reality, common browsers probably put some fixed time limit on how long
they keep a connection open; if anyone wants to know exactly what 
whatever browsers they are concerned with do, try it.

On the same token, the server has no great desire to arbitrarily close 
connections, so it will leave it open unless it has some "reason" to 
close it.  Currently, many servers use a very simple metric for this,
which is a fixed timeout of x seconds after the last response was 
sent.  This is arguably a very poor metric to use, there has been some 
small amount of research on adaptive keepalive timeouts based on load.
The server, however, has a lot more information on which to base a decision
to close a connection.

It isn't that this sort of behaviour doesn't follow the spec, but simply
that there is no need to embed this sort of runtime information in a
protocol spec.  If you read the spec carefully, you will note it goes to
great lengths to ensure that the server may close the connection whenever
it is idle, which requires things like a half-duplex close, etc.

The bottom line, however, is that if you open a connection and make 
one request every few hours, I really don't see why you should care
if it is persistent or not, since persistent connections are just an
optimization.

> Also, most web servers actively look for reasons to close a connection
> to a client. For example, if the web server generates any dynamic content
> for the client, then it will usually close the connection after the response it
> sent back. Regardless of whether or not the client supplied a Connection:
> Keep-Alive header or not. The reasoning behind this is that if the sever
> had to generate dynamic content on your behalf, then you've had your share
> and its time to give some other poor slob a turn.

Huh?  That would be a webserver with some very... odd ideas.

If you are talking about "Connection: Keep-Alive" then you appear to be
talking about HTTP/1.0, in which there is no chunked encoding so
unless the server puts a content-length on its dynamic content
(which is perfectly possible for it to do, but many don't for
reasons that are also perfectly legitimate) then there is no way
to use a persistent connection since in that case the only
end-of-reponse marker you have is the close of connection.

> 
> >
> >
> > I note that RFC2616 says (in part)..
> >
> >                              :
> > 8 Connections
> >
> > 8.1 Persistent Connections
> >                              :
> >    HTTP implementations SHOULD implement persistent connections.
> >                              :
> >    A significant difference between HTTP/1.1 and earlier versions of
> >    HTTP is that persistent connections are the default behavior of any
> >    HTTP connection. That is, unless otherwise indicated, the client
> >    SHOULD assume that the server will maintain a persistent connection,
> >    even after error responses from the server.
> >                              :
> >
> > As it is written, this effectively puts the responsibility for closing the
> > HTTP/1.1-cum-TCP connection on the client.
> 
> Nope. See my comments above.
> 
> Also, you have to realize that just cuz  the client sends a
> Connection: Keep-Alive header it is in no way a guarantee
> that the server will not close the connection after the
> response is sent back.
> 
> There is a HUGE difference between the way the HTTP spec
> is written and the way that web server's are actually designed
> to work on the internet.

The HTTP spec also doesn't describe what sort of config files you
should use for your server, since that isn't part of the protocol either.

> 
> I'm not saying that the web server designers violated the
> HTTP protocol. Rather they have simply done what they
> have to do in order to protect their web server from
> attacks, deadlocks, and starving clients.
> 
> Read further in the spec and you will see that the HTTP
> spec says that unsafe methods should not be pipelined.
> 
> An unsafe method is a method that in some sense changes
> the state of the server and will not necessarily generate the
> same response every time it is executed.
> 
> On the internet unsafe methods are typically used to
> represent a clients actions on the internet (i.e. I've just
> sent a request to buy product X with my credit card
> number aaaa-bbbb-cccc-dddd). Before submitting
> another unsafe method I should be allowed to get
> feedback about the current unsafe method and determine
> if I wish to proceed with the next unsafe method or not.
> So, when receiving an unsafe method (POST) most
> web servers will close the connection after the response
> is generated. Even if more unsafe methods have been sent
> into the pipe. They are simply discarded.

Umh... again, your reasoning here is a little confused.  Closing the 
connection after sending the response to a POST by no means ensures that
this problem is avoided and, at that state of the game, is pointless.

It is legitimate to send a non-idempotent request with several idempotent
requests pipelined after it.

I think you are again getting confused by the requirement for a
content-length or chunking or the lack of a response body in order to
do persistent connections.



From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 12:49:56 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id MAA00987
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 12:49:54 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id RAA04736;
	Thu, 2 Nov 2000 17:49:22 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id RAA15899;
	Thu, 2 Nov 2000 17:49:19 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id RAA18280; Thu, 2 Nov 2000 17:49:14 GMT
Resent-Date: Thu, 2 Nov 2000 17:49:14 GMT
Message-Id: <200011021745.JAA08639@breakaway.Stanford.EDU>
X-Mailer: exmh version 2.0.2 2/24/98
Subject: Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers 
To: "http-wg" <http-wg@hplb.hpl.hp.com>
In-reply-to: "Scott Lawrence" <lawrence@agranat.com> 's message of 
	Thu, 02 Nov 2000 12:06:52 -0500
Reply-to: "http-wg" <http-wg@hplb.hpl.hp.com>
From: Jeff.Hodges@kingsmountain.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 02 Nov 2000 09:45:39 -0800
Sender: hodges@breakaway.Stanford.EDU
Resent-Message-ID: <"knyeG.0.YT4.QaQ0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/932
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com

> They [browsers] don't leave connections open and idle long enough for this
> to be relevant.  Browsers typically close idle connections in one or two
> minutes, even if the server does not.

Thanks, this is the sort of info I am interested in.

When I said "say I'm going to write my own HTTP/1.1-speaking gizmo", I should 
probably have made it clear that I am postulating a server-side gizmo, hence 
being interested in how the browsers out there in the wild will behave if this 
server-side gizmo doesn't behave just like typical existing web servers.

> Communicator doesn't do 1.1 yet.
>
> [...]
> 
> The default for direct connections in IE is 1.1; I believe that Opera
> also uses 1.1 by default now.

Innaresting. Does anyone have a pointer handy to any documentation for any of 
the popular browsers that indicates what all versions of what all protocols 
they do speak? An admittedly cursory search for such wrt Communicator didn't 
turn up anything.

thanks,

JeffH




From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 13:11:26 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id NAA06640
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 13:11:24 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id SAA05586;
	Thu, 2 Nov 2000 18:10:37 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id SAA17149;
	Thu, 2 Nov 2000 18:10:35 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id SAA18920; Thu, 2 Nov 2000 18:10:26 GMT
Resent-Date: Thu, 2 Nov 2000 18:10:26 GMT
Message-ID: <AA1E32BC8A58D411A2CB0050DACEDA4366074C@raptor>
From: "Fielding, Roy" <fielding@eBuilt.com>
To: "'Jeff.Hodges@kingsmountain.com'" <Jeff.Hodges@kingsmountain.com>,
        http-wg@hplb.hpl.hp.com
Subject: RE: Of HTTP/1.1 persistent connections and TCP Keepalive timers
Date: Thu, 2 Nov 2000 10:08:27 -0800 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="ISO-8859-1"
Resent-Message-ID: <"Gm2Jg.0.bd4.IuQ0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/935
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com

The decision on when to close is left to either side.  A server will
close the connection based on its resource-consumption requirements
which may vary substantially based on the type of server and the
number of clients it is intended to serve.  A client will close the
connection if it is connection-limited and needs to open many other
connections, or if it just believes in being network friendly.

Unfortunately, none of the major browsers are network friendly,
so they typically ignore the connection (not even recognizing FIN
as an event) until they later attempt to use it again.  Most
general-purpose servers have a short activity time-out on
connections and will close the connection after that time-out
(typically under 10 seconds, though a high-activity server will
set this to one second or turn off persistent connections altogether).

Cheers,

Roy T. Fielding, Chief Scientist, eBuilt, Inc.            (www.ebuilt.com)
                 Chairman, The Apache Software Foundation (www.apache.org)  



From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 13:21:07 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id NAA08873
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 13:21:06 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id SAA06022;
	Thu, 2 Nov 2000 18:20:15 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id SAA18295;
	Thu, 2 Nov 2000 18:20:12 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id SAA19331; Thu, 2 Nov 2000 18:20:09 GMT
Resent-Date: Thu, 2 Nov 2000 18:20:09 GMT
Date: Thu, 2 Nov 2000 10:18:47 -0800 (PST)
From: Marc Slemko <marcs@znep.com>
To: http-wg <http-wg@hplb.hpl.hp.com>
Subject: Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers
In-Reply-To: <3A01AB65.4FA4A535@Motorola.com>
Message-ID: <Pine.BSF.4.20.0011021017320.2523-100000@alive.znep.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Resent-Message-ID: <"H9dan2.0.0k4.P1R0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/936
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com

On Thu, 2 Nov 2000, James Lacey wrote:

> > > to a client. For example, if the web server generates any dynamic content
> > > for the client, then it will usually close the connection after the response it
> > > sent back. Regardless of whether or not the client supplied a Connection:
> > > Keep-Alive header or not. The reasoning behind this is that if the sever
> > > had to generate dynamic content on your behalf, then you've had your share
> > > and its time to give some other poor slob a turn.
> >
> > Huh?  That would be a webserver with some very... odd ideas.
> >
> > If you are talking about "Connection: Keep-Alive" then you appear to be
> > talking about HTTP/1.0, in which there is no chunked encoding so
> > unless the server puts a content-length on its dynamic content
> > (which is perfectly possible for it to do, but many don't for
> > reasons that are also perfectly legitimate) then there is no way
> > to use a persistent connection since in that case the only
> > end-of-reponse marker you have is the close of connection.
> 
> As a concrete example the iPlanet Enterprise v4.1 server always
> closes the connection after responding to a POST request or
> anytime that dynamic content is generated (possibly because
> the response does not have a Content-Length: header field
> and the response is not chunked).
> 
> I have verified this and it is clearly documented in their
> literature.

You are missing the point; it doesn't do it out of some odd desire
to "share" since a client has "had it's fill of dynamic content
for now", like you suggested it does.



From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 13:21:28 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id NAA08955
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 13:21:26 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id SAA06188;
	Thu, 2 Nov 2000 18:20:51 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id SAA16736;
	Thu, 2 Nov 2000 18:01:47 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id SAA18623; Thu, 2 Nov 2000 18:01:44 GMT
Resent-Date: Thu, 2 Nov 2000 18:01:44 GMT
Sender: jlacey@mothost.mot.com
Message-ID: <3A01AB65.4FA4A535@Motorola.com>
Date: Thu, 02 Nov 2000 11:59:01 -0600
From: James Lacey <James.Lacey@Motorola.com>
X-Mailer: Mozilla 4.6 [en] (X11; I; SunOS 5.6 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: http-wg <http-wg@hplb.hpl.hp.com>
Subject: Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers
References: <Pine.BSF.4.20.0011020903230.2523-100000@alive.znep.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Resent-Message-ID: <"1jywA.0.vY4.8mQ0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/934
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com
Content-Transfer-Encoding: 7bit

Marc Slemko wrote:

> On Thu, 2 Nov 2000, James Lacey wrote:
>
> > Jeff.Hodges@kingsmountain.com wrote:
> >
> > > I'm curious about how HTTP/1.1 [RFC2616] persistent connections typically work
> > > with respect to the typical browsers out in the wild today (Netscape &
> > > Microsoft being the two I'm particularly interested in). If I cause a browser
> > > to send a GET request for a given URL (using HTTP/1.1) to a server, and the
> > > server doesn't encounter any errors in processing it and responding, and then
> > > I (say) don't touch the browser for hours, what *typically* happens to the
> > > established HTTP/1.1 (-over-TCP) connection?
> >
> > The web server will close the connection due to inactivity.
> >
> > You have to realize that web servers are trying to service literally
> > thousands of clients with only a relatively few TCP/IP connections.
> > If you don't use it you lose it.
>
> It is fair to say that the client has no idea of what sort of resource
> limits the server may have, so it should leave the connection open
> unless it has some particular reason (eg. wanting to limit the total
> number of connections it has open to all servers) to close it.  In
> reality, common browsers probably put some fixed time limit on how long
> they keep a connection open; if anyone wants to know exactly what
> whatever browsers they are concerned with do, try it.
>
> On the same token, the server has no great desire to arbitrarily close
> connections, so it will leave it open unless it has some "reason" to
> close it.  Currently, many servers use a very simple metric for this,
> which is a fixed timeout of x seconds after the last response was
> sent.  This is arguably a very poor metric to use, there has been some
> small amount of research on adaptive keepalive timeouts based on load.
> The server, however, has a lot more information on which to base a decision
> to close a connection.
>
> It isn't that this sort of behaviour doesn't follow the spec, but simply
> that there is no need to embed this sort of runtime information in a
> protocol spec.  If you read the spec carefully, you will note it goes to
> great lengths to ensure that the server may close the connection whenever
> it is idle, which requires things like a half-duplex close, etc.
>
> The bottom line, however, is that if you open a connection and make
> one request every few hours, I really don't see why you should care
> if it is persistent or not, since persistent connections are just an
> optimization.
>
> > Also, most web servers actively look for reasons to close a connection
> > to a client. For example, if the web server generates any dynamic content
> > for the client, then it will usually close the connection after the response it
> > sent back. Regardless of whether or not the client supplied a Connection:
> > Keep-Alive header or not. The reasoning behind this is that if the sever
> > had to generate dynamic content on your behalf, then you've had your share
> > and its time to give some other poor slob a turn.
>
> Huh?  That would be a webserver with some very... odd ideas.
>
> If you are talking about "Connection: Keep-Alive" then you appear to be
> talking about HTTP/1.0, in which there is no chunked encoding so
> unless the server puts a content-length on its dynamic content
> (which is perfectly possible for it to do, but many don't for
> reasons that are also perfectly legitimate) then there is no way
> to use a persistent connection since in that case the only
> end-of-reponse marker you have is the close of connection.

As a concrete example the iPlanet Enterprise v4.1 server always
closes the connection after responding to a POST request or
anytime that dynamic content is generated (possibly because
the response does not have a Content-Length: header field
and the response is not chunked).

I have verified this and it is clearly documented in their
literature.


>
>
> >
> > >
> > >
> > > I note that RFC2616 says (in part)..
> > >
> > >                              :
> > > 8 Connections
> > >
> > > 8.1 Persistent Connections
> > >                              :
> > >    HTTP implementations SHOULD implement persistent connections.
> > >                              :
> > >    A significant difference between HTTP/1.1 and earlier versions of
> > >    HTTP is that persistent connections are the default behavior of any
> > >    HTTP connection. That is, unless otherwise indicated, the client
> > >    SHOULD assume that the server will maintain a persistent connection,
> > >    even after error responses from the server.
> > >                              :
> > >
> > > As it is written, this effectively puts the responsibility for closing the
> > > HTTP/1.1-cum-TCP connection on the client.
> >
> > Nope. See my comments above.
> >
> > Also, you have to realize that just cuz  the client sends a
> > Connection: Keep-Alive header it is in no way a guarantee
> > that the server will not close the connection after the
> > response is sent back.
> >
> > There is a HUGE difference between the way the HTTP spec
> > is written and the way that web server's are actually designed
> > to work on the internet.
>
> The HTTP spec also doesn't describe what sort of config files you
> should use for your server, since that isn't part of the protocol either.
>
> >
> > I'm not saying that the web server designers violated the
> > HTTP protocol. Rather they have simply done what they
> > have to do in order to protect their web server from
> > attacks, deadlocks, and starving clients.
> >
> > Read further in the spec and you will see that the HTTP
> > spec says that unsafe methods should not be pipelined.
> >
> > An unsafe method is a method that in some sense changes
> > the state of the server and will not necessarily generate the
> > same response every time it is executed.
> >
> > On the internet unsafe methods are typically used to
> > represent a clients actions on the internet (i.e. I've just
> > sent a request to buy product X with my credit card
> > number aaaa-bbbb-cccc-dddd). Before submitting
> > another unsafe method I should be allowed to get
> > feedback about the current unsafe method and determine
> > if I wish to proceed with the next unsafe method or not.
> > So, when receiving an unsafe method (POST) most
> > web servers will close the connection after the response
> > is generated. Even if more unsafe methods have been sent
> > into the pipe. They are simply discarded.
>
> Umh... again, your reasoning here is a little confused.  Closing the
> connection after sending the response to a POST by no means ensures that
> this problem is avoided and, at that state of the game, is pointless.
>
> It is legitimate to send a non-idempotent request with several idempotent
> requests pipelined after it.
>
> I think you are again getting confused by the requirement for a
> content-length or chunking or the lack of a response body in order to
> do persistent connections.

Nope. I'm clear on that. All I was trying to say was that some
web servers always close the connection after they have processed
what they believe to be a non-idempotent request; iPlanet is
a case in point.



From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 13:21:40 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id NAA09013
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 13:21:39 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id SAA06180;
	Thu, 2 Nov 2000 18:20:48 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id SAA16672;
	Thu, 2 Nov 2000 18:01:09 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id SAA18595; Thu, 2 Nov 2000 18:00:55 GMT
Resent-Date: Thu, 2 Nov 2000 18:00:55 GMT
Importance: Normal
Subject: Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers
To: James Lacey <James.Lacey@Motorola.com>
Cc: http-wg <http-wg@hplb.hpl.hp.com>
X-Mailer: Lotus Notes Release 5.0.3 (Intl) 21 March 2000
Message-ID: <OF81A758A3.0D81FCD5-ON8725698B.00624A20@LocalDomain>
From: "Carl Kugler/Boulder/IBM" <kugler@us.ibm.com>
Date: Thu, 2 Nov 2000 10:59:16 -0700
X-MIMETrack: Serialize by Router on D03NM103/03/M/IBM(Release 5.0.3 (Intl)|21 March 2000) at
 11/02/2000 10:59:19 AM
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Resent-Message-ID: <"_JFn11.0.WY4.NlQ0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/933
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com


...
>
>For example, suppose the  server sends back an HTTP response to the client
>that does not have a Content-Length: header field and that it is not
>chunked.
>
>Then the only way the client knows that it has read the
>entire response off of the pipe is when the server closes the connection.
>When the server closes the connection the client will receive a
>zero-byte read which is socket layer's indication that the pipe
>is broken.
>
This is not good.  If this is the server's normal behavior, the client has
no way to distinguish a dropped connection from end of file.  So the client
can never be sure it received an entire message.

If this is the server's behavior for error conditions, this is still not
good unless the server either waits for the entire request (could be a
humongous POST and/or a very slow connection), or only closes one half of
the connection (which, BTW, is impossible in Java, except maybe in the
latest releases).  Otherwise, the client might get a RST while transmitting
the request, and will then never see the error response.

...
>
>I've done some snoops on browsers that are GETting HTML pages with
>lots of embedded links that are in the same realm as the original HTML
>page.
>
>Despite this obvious opportunity to take advantage of persistent connections
>the browser opens  a connection for each subsequent GET.
>
I was looking at IE's (version 5 somthing) traffic yesterday, and it seems to send two requests per connection.


     -Carl



From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 13:21:51 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id NAA09067
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 13:21:49 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id SAA06201;
	Thu, 2 Nov 2000 18:20:54 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id SAA18507;
	Thu, 2 Nov 2000 18:20:51 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id SAA19391; Thu, 2 Nov 2000 18:20:48 GMT
Resent-Date: Thu, 2 Nov 2000 18:20:48 GMT
Message-ID: <F500BDA6D2EAD311AD5B00508BCF2DF3019D9E27@iwexchange1.interworld.com>
From: "Wallace, William" <WilliamW@InterWorld.com>
To: "'Fielding, Roy'" <fielding@eBuilt.com>,
        "'Jeff.Hodges@kingsmountain.com'" <Jeff.Hodges@kingsmountain.com>,
        http-wg@hplb.hpl.hp.com
Subject: RE: Of HTTP/1.1 persistent connections and TCP Keepalive timers
Date: Thu, 2 Nov 2000 13:19:46 -0500 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Resent-Message-ID: <"aDAHn2.0.yk4.02R0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/937
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com

What experimentation, if any, has been done with adaptive server timeouts? A
project I'm working on reduces timeouts based on current load. When a
certain point is reached connections are closed immediately until the load
drops down.

I haven't got as far as testing this on a live site so I'm curious whether
anyone has any real world experience.

> -----Original Message-----
> From: Fielding, Roy [mailto:fielding@eBuilt.com]
> Sent: Thursday, November 02, 2000 1:08 PM
> To: 'Jeff.Hodges@kingsmountain.com'; http-wg@hplb.hpl.hp.com
> Subject: RE: Of HTTP/1.1 persistent connections and TCP 
> Keepalive timers
> 
> 
> The decision on when to close is left to either side.  A server will
> close the connection based on its resource-consumption requirements
> which may vary substantially based on the type of server and the
> number of clients it is intended to serve.  A client will close the
> connection if it is connection-limited and needs to open many other
> connections, or if it just believes in being network friendly.
> 
> Unfortunately, none of the major browsers are network friendly,
> so they typically ignore the connection (not even recognizing FIN
> as an event) until they later attempt to use it again.  Most
> general-purpose servers have a short activity time-out on
> connections and will close the connection after that time-out
> (typically under 10 seconds, though a high-activity server will
> set this to one second or turn off persistent connections altogether).
> 
> Cheers,
> 
> Roy T. Fielding, Chief Scientist, eBuilt, Inc.            
> (www.ebuilt.com)
>                  Chairman, The Apache Software Foundation 
(www.apache.org)  



From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 13:38:55 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id NAA13062
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 13:38:53 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id SAA06940;
	Thu, 2 Nov 2000 18:38:12 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id SAA19304;
	Thu, 2 Nov 2000 18:38:10 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id SAA20009; Thu, 2 Nov 2000 18:38:05 GMT
Resent-Date: Thu, 2 Nov 2000 18:38:05 GMT
X-Lotus-FromDomain: NEON
From: "Fred Bohle" <fbohle@neonsys.com>
To: CN=Carl_Kugler/OU=Boulder/O=IBM_ <kugler@us.ibm.com>
cc: James Lacey <James.Lacey@Motorola.com>, http-wg <http-wg@hplb.hpl.hp.com>
Message-ID: <8625698B.00666642.00@internet1.neonsys.com>
Date: Thu, 2 Nov 2000 12:27:24 -0600
Subject: Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers
Mime-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline
Resent-Message-ID: <"CIYaz.0.au4.DIR0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/938
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com





Fred Bohle@NEON
11/02/2000 12:27 PM


     We seem to be diverging into TCP coding.  A read will return zero
length
when the other end has issued a normal close (and all the data has been
read).
A read will return -1 when the connection is ReSeT, or there is a
connection time-out
of any sort.  So the server can too tell the difference between end of data
and
a connection failure.

Fred




From: Carl Kugler/Boulder/IBM <kugler@us.ibm.com> on 11/02/2000 11:59 AM

To:   James Lacey <James.Lacey@Motorola.com>
cc:   http-wg <http-wg@hplb.hpl.hp.com>

Subject:  Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers


...
>
>For example, suppose the  server sends back an HTTP response to the client
>that does not have a Content-Length: header field and that it is not
>chunked.
>
>Then the only way the client knows that it has read the
>entire response off of the pipe is when the server closes the connection.
>When the server closes the connection the client will receive a
>zero-byte read which is socket layer's indication that the pipe
>is broken.
>
This is not good.  If this is the server's normal behavior, the client has
no way to distinguish a dropped connection from end of file.  So the client
can never be sure it received an entire message.

If this is the server's behavior for error conditions, this is still not
good unless the server either waits for the entire request (could be a
humongous POST and/or a very slow connection), or only closes one half of
the connection (which, BTW, is impossible in Java, except maybe in the
latest releases).  Otherwise, the client might get a RST while transmitting
the request, and will then never see the error response.

...
>
>I've done some snoops on browsers that are GETting HTML pages with
>lots of embedded links that are in the same realm as the original HTML
>page.
>
>Despite this obvious opportunity to take advantage of persistent
connections
>the browser opens  a connection for each subsequent GET.
>
I was looking at IE's (version 5 somthing) traffic yesterday, and it seems
to send two requests per connection.


     -Carl








From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 13:41:53 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id NAA13733
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 13:41:52 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id SAA07166;
	Thu, 2 Nov 2000 18:41:05 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id SAA19497;
	Thu, 2 Nov 2000 18:41:02 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id SAA20125; Thu, 2 Nov 2000 18:40:59 GMT
Resent-Date: Thu, 2 Nov 2000 18:40:59 GMT
Sender: hkchoi@cc.gatech.edu
Message-ID: <3A01B4B7.1C0070BD@cc.gatech.edu>
Date: Thu, 02 Nov 2000 13:38:47 -0500
From: Hyoung-Kee Choi <hkchoi@cc.gatech.edu>
Organization: Georgia Tech
X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u)
X-Accept-Language: en, ko
MIME-Version: 1.0
To: http-wg@cuckoo.hpl.hp.com
Subject: Re: Of HTTP/1.1 persistent connections and TCP Keepalive timer
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Resent-Message-ID: <"Dn7BR3.0.Qw4.xKR0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/939
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com
Content-Transfer-Encoding: 7bit


"Fielding, Roy" wrote:
> 
> The decision on when to close is left to either side.  A server will
> close the connection based on its resource-consumption requirements
> which may vary substantially based on the type of server and the
> number of clients it is intended to serve.  A client will close the
> connection if it is connection-limited and needs to open many other
> connections, or if it just believes in being network friendly.
> 
> Unfortunately, none of the major browsers are network friendly,
> so they typically ignore the connection (not even recognizing FIN
> as an event) until they later attempt to use it again.  Most
> general-purpose servers have a short activity time-out on
> connections and will close the connection after that time-out
> (typically under 10 seconds, though a high-activity server will
> set this to one second or turn off persistent connections altogether).
> 


Apache server uses 15 seconds as a default timeout and 100 connections
as the number of idle persistent connections. Over 60 percent of Web
servers use Apache.



From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 14:09:16 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id OAA21016
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 14:09:15 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id TAA08001;
	Thu, 2 Nov 2000 19:08:53 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id TAA21456;
	Thu, 2 Nov 2000 19:08:50 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id TAA20584; Thu, 2 Nov 2000 19:08:42 GMT
Resent-Date: Thu, 2 Nov 2000 19:08:42 GMT
Importance: Normal
Subject: Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers
To: "Fred Bohle" <fbohle@neonsys.com>
Cc: James Lacey <James.Lacey@Motorola.com>, http-wg <http-wg@hplb.hpl.hp.com>
X-Mailer: Lotus Notes Release 5.0.3 (Intl) 21 March 2000
Message-ID: <OF63869D21.AF53E3B2-ON8725698B.0068F35F@LocalDomain>
From: "Carl Kugler/Boulder/IBM" <kugler@us.ibm.com>
Date: Thu, 2 Nov 2000 12:07:15 -0700
X-MIMETrack: Serialize by Router on D03NM103/03/M/IBM(Release 5.0.3 (Intl)|21 March 2000) at
 11/02/2000 12:07:17 PM
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Resent-Message-ID: <"49EXy.0.b15.vkR0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/940
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com


I stand corrected.  But then, why was Content-Length added in HTTP/1.0 and
Tranfer-Encoding: chunked in HTTP/1.1?

     -Carl



"Fred Bohle" <fbohle@neonsys.com> on 11/02/2000 11:27:24 AM

To:   Carl Kugler/Boulder/IBM@IBMUS
cc:   James Lacey <James.Lacey@Motorola.com>, http-wg
      <http-wg@hplb.hpl.hp.com>
Subject:  Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers







Fred Bohle@NEON
11/02/2000 12:27 PM


     We seem to be diverging into TCP coding.  A read will return zero
length
when the other end has issued a normal close (and all the data has been
read).
A read will return -1 when the connection is ReSeT, or there is a
connection time-out
of any sort.  So the server can too tell the difference between end of data
and
a connection failure.

Fred




From: Carl Kugler/Boulder/IBM <kugler@us.ibm.com> on 11/02/2000 11:59 AM

To:   James Lacey <James.Lacey@Motorola.com>
cc:   http-wg <http-wg@hplb.hpl.hp.com>

Subject:  Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers


...
>
>For example, suppose the  server sends back an HTTP response to the client
>that does not have a Content-Length: header field and that it is not
>chunked.
>
>Then the only way the client knows that it has read the
>entire response off of the pipe is when the server closes the connection.
>When the server closes the connection the client will receive a
>zero-byte read which is socket layer's indication that the pipe
>is broken.
>
This is not good.  If this is the server's normal behavior, the client has
no way to distinguish a dropped connection from end of file.  So the client
can never be sure it received an entire message.

If this is the server's behavior for error conditions, this is still not
good unless the server either waits for the entire request (could be a
humongous POST and/or a very slow connection), or only closes one half of
the connection (which, BTW, is impossible in Java, except maybe in the
latest releases).  Otherwise, the client might get a RST while transmitting
the request, and will then never see the error response.

...
>
>I've done some snoops on browsers that are GETting HTML pages with
>lots of embedded links that are in the same realm as the original HTML
>page.
>
>Despite this obvious opportunity to take advantage of persistent
connections
>the browser opens  a connection for each subsequent GET.
>
I was looking at IE's (version 5 somthing) traffic yesterday, and it seems
to send two requests per connection.


     -Carl











From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 14:13:19 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id OAA22309
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 14:13:17 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id TAA08261;
	Thu, 2 Nov 2000 19:12:52 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id TAA21847;
	Thu, 2 Nov 2000 19:12:49 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id TAA20769; Thu, 2 Nov 2000 19:12:43 GMT
Resent-Date: Thu, 2 Nov 2000 19:12:43 GMT
Importance: Normal
Subject: Re: Of HTTP/1.1 persistent connections and TCP Keepalive timer
To: Hyoung-Kee Choi <hkchoi@cc.gatech.edu>
Cc: http-wg@cuckoo.hpl.hp.com
X-Mailer: Lotus Notes Release 5.0.3 (Intl) 21 March 2000
Message-ID: <OFA69C6997.D2D031D9-ON8725698B.00690B5E@LocalDomain>
From: "Carl Kugler/Boulder/IBM" <kugler@us.ibm.com>
Date: Thu, 2 Nov 2000 12:11:18 -0700
X-MIMETrack: Serialize by Router on D03NM103/03/M/IBM(Release 5.0.3 (Intl)|21 March 2000) at
 11/02/2000 12:11:21 PM
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Resent-Message-ID: <"vAX7F2.0.U45.hoR0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/941
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com


>Sent by: hkchoi@cc.gatech.edu
>
>"Fielding, Roy" wrote:
>>
>> The decision on when to close is left to either side.  A server will
>> close the connection based on its resource-consumption requirements
>> which may vary substantially based on the type of server and the
>> number of clients it is intended to serve.  A client will close the
>> connection if it is connection-limited and needs to open many other
>> connections, or if it just believes in being network friendly.
>>
>> Unfortunately, none of the major browsers are network friendly,
>> so they typically ignore the connection (not even recognizing FIN
>> as an event) until they later attempt to use it again.  Most
>> general-purpose servers have a short activity time-out on
>> connections and will close the connection after that time-out
>> (typically under 10 seconds, though a high-activity server will
>> set this to one second or turn off persistent connections altogether).
>>
>
>
Ideally, you'd want the client to close the connection.  If the server
closes it, it has to keep the connection around in TIME_WAIT state for four
minutes, right?  So a server that agressively closes idle connections might
make matters worse for itself if the client makes requests more often than
once every 4 minutes (for example, the Windows 2000 IPP client polling
job-status evey minute or so).

     -Carl




From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 14:15:04 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id OAA22880
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 14:15:03 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id TAA08442;
	Thu, 2 Nov 2000 19:14:30 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id TAA22032;
	Thu, 2 Nov 2000 19:14:27 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id TAA20849; Thu, 2 Nov 2000 19:14:23 GMT
Resent-Date: Thu, 2 Nov 2000 19:14:23 GMT
Sender: jlacey@mothost.mot.com
Message-ID: <3A01BCC9.B7755930@Motorola.com>
Date: Thu, 02 Nov 2000 13:13:13 -0600
From: James Lacey <James.Lacey@Motorola.com>
X-Mailer: Mozilla 4.6 [en] (X11; I; SunOS 5.6 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: Carl Kugler/Boulder/IBM <kugler@us.ibm.com>
CC: Fred Bohle <fbohle@neonsys.com>,
        James Lacey <James_Lacey-CJL023@email.mot.com>,
        http-wg <http-wg@hplb.hpl.hp.com>
Subject: Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers
References: <OF63869D21.AF53E3B2-ON8725698B.0068F35F@LocalDomain>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Resent-Message-ID: <"Vhx7k3.0.j55.FqR0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/942
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com
Content-Transfer-Encoding: 7bit

Carl Kugler/Boulder/IBM wrote:

> I stand corrected.  But then, why was Content-Length added in HTTP/1.0 and
> Tranfer-Encoding: chunked in HTTP/1.1?

Content-Length was added so that persistent connections would be possible.

Without a content length, neither the client or the server would know
where the message ended. You have to realize that TCP is a stream and
it is up to the users of the stream to impose some kind of framing protocol
onto the stream.

Transfer-Encoding: chunked was added so that servers could return
possibly large dynamic content in chunks, as it was generated, so that
the server did not have to buffer up all of the dynamic content before
sending it back. With chunking you can also have persistent connections
w/o the need of a Content-Length header field.

One curious think about chunking that I do not understand is that
HTTP proxies are required to move the chunked (any?) encoding before
forwarding the response.

>
>
>      -Carl
>
> "Fred Bohle" <fbohle@neonsys.com> on 11/02/2000 11:27:24 AM
>
> To:   Carl Kugler/Boulder/IBM@IBMUS
> cc:   James Lacey <James.Lacey@Motorola.com>, http-wg
>       <http-wg@hplb.hpl.hp.com>
> Subject:  Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers
>
> Fred Bohle@NEON
> 11/02/2000 12:27 PM
>
>      We seem to be diverging into TCP coding.  A read will return zero
> length
> when the other end has issued a normal close (and all the data has been
> read).
> A read will return -1 when the connection is ReSeT, or there is a
> connection time-out
> of any sort.  So the server can too tell the difference between end of data
> and
> a connection failure.
>
> Fred
>
> From: Carl Kugler/Boulder/IBM <kugler@us.ibm.com> on 11/02/2000 11:59 AM
>
> To:   James Lacey <James.Lacey@Motorola.com>
> cc:   http-wg <http-wg@hplb.hpl.hp.com>
>
> Subject:  Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers
>
> ...
> >
> >For example, suppose the  server sends back an HTTP response to the client
> >that does not have a Content-Length: header field and that it is not
> >chunked.
> >
> >Then the only way the client knows that it has read the
> >entire response off of the pipe is when the server closes the connection.
> >When the server closes the connection the client will receive a
> >zero-byte read which is socket layer's indication that the pipe
> >is broken.
> >
> This is not good.  If this is the server's normal behavior, the client has
> no way to distinguish a dropped connection from end of file.  So the client
> can never be sure it received an entire message.
>
> If this is the server's behavior for error conditions, this is still not
> good unless the server either waits for the entire request (could be a
> humongous POST and/or a very slow connection), or only closes one half of
> the connection (which, BTW, is impossible in Java, except maybe in the
> latest releases).  Otherwise, the client might get a RST while transmitting
> the request, and will then never see the error response.
>
> ...
> >
> >I've done some snoops on browsers that are GETting HTML pages with
> >lots of embedded links that are in the same realm as the original HTML
> >page.
> >
> >Despite this obvious opportunity to take advantage of persistent
> connections
> >the browser opens  a connection for each subsequent GET.
> >
> I was looking at IE's (version 5 somthing) traffic yesterday, and it seems
> to send two requests per connection.
>
>      -Carl



From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 14:24:05 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id OAA25758
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 14:24:04 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id TAA08902;
	Thu, 2 Nov 2000 19:23:20 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id TAA23427;
	Thu, 2 Nov 2000 19:23:18 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id TAA21382; Thu, 2 Nov 2000 19:23:16 GMT
Resent-Date: Thu, 2 Nov 2000 19:23:16 GMT
Sender: jlacey@mothost.mot.com
Message-ID: <3A01BEE0.1ECAC6C7@Motorola.com>
Date: Thu, 02 Nov 2000 13:22:08 -0600
From: James Lacey <James.Lacey@Motorola.com>
X-Mailer: Mozilla 4.6 [en] (X11; I; SunOS 5.6 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: Marc Slemko <marcs@znep.com>
CC: http-wg <http-wg@hplb.hpl.hp.com>
Subject: Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers
References: <Pine.BSF.4.20.0011021017320.2523-100000@alive.znep.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Resent-Message-ID: <"TU5Ty.0.3E5.ZyR0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/943
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com
Content-Transfer-Encoding: 7bit

Marc Slemko wrote:

> On Thu, 2 Nov 2000, James Lacey wrote:
>
> > > > to a client. For example, if the web server generates any dynamic content
> > > > for the client, then it will usually close the connection after the response it
> > > > sent back. Regardless of whether or not the client supplied a Connection:
> > > > Keep-Alive header or not. The reasoning behind this is that if the sever
> > > > had to generate dynamic content on your behalf, then you've had your share
> > > > and its time to give some other poor slob a turn.
> > >
> > > Huh?  That would be a webserver with some very... odd ideas.
> > >
> > > If you are talking about "Connection: Keep-Alive" then you appear to be
> > > talking about HTTP/1.0, in which there is no chunked encoding so
> > > unless the server puts a content-length on its dynamic content
> > > (which is perfectly possible for it to do, but many don't for
> > > reasons that are also perfectly legitimate) then there is no way
> > > to use a persistent connection since in that case the only
> > > end-of-reponse marker you have is the close of connection.
> >
> > As a concrete example the iPlanet Enterprise v4.1 server always
> > closes the connection after responding to a POST request or
> > anytime that dynamic content is generated (possibly because
> > the response does not have a Content-Length: header field
> > and the response is not chunked).
> >
> > I have verified this and it is clearly documented in their
> > literature.
>
> You are missing the point; it doesn't do it out of some odd desire
> to "share" since a client has "had it's fill of dynamic content
> for now", like you suggested it does.

OK. OK. I get your point.

It may not be out of some odd desire to "share".

But it is certainly based on the idea that many
clients need to be serviced with relatively few
connections.



From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 14:48:40 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id OAA01789
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 14:48:39 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id TAA09506;
	Thu, 2 Nov 2000 19:47:54 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id TAA24865;
	Thu, 2 Nov 2000 19:47:51 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id TAA21720; Thu, 2 Nov 2000 19:47:48 GMT
Resent-Date: Thu, 2 Nov 2000 19:47:48 GMT
Importance: Normal
Subject: Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers
To: James Lacey <James.Lacey@Motorola.com>
Cc: http-wg <http-wg@hplb.hpl.hp.com>
X-Mailer: Lotus Notes Release 5.0.3 (Intl) 21 March 2000
Message-ID: <OFC87F87E1.07F91C6F-ON8725698B.006C455B@LocalDomain>
From: "Carl Kugler/Boulder/IBM" <kugler@us.ibm.com>
Date: Thu, 2 Nov 2000 12:46:21 -0700
X-MIMETrack: Serialize by Router on D03NM103/03/M/IBM(Release 5.0.3 (Intl)|21 March 2000) at
 11/02/2000 12:46:23 PM
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Resent-Message-ID: <"fJM0Q1.0.IJ5.aJS0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/944
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com


>Sent by: jlacey@mothost.mot.com
>Carl Kugler/Boulder/IBM wrote:
>
>> I stand corrected.  But then, why was Content-Length added in HTTP/1.0
and
>> Tranfer-Encoding: chunked in HTTP/1.1?
>
>Content-Length was added so that persistent connections would be possible.
>
>Without a content length, neither the client or the server would know
>where the message ended. You have to realize that TCP is a stream and
>it is up to the users of the stream to impose some kind of framing
protocol
>onto the stream.
>
>Transfer-Encoding: chunked was added so that servers could return
>possibly large dynamic content in chunks, as it was generated, so that
>the server did not have to buffer up all of the dynamic content before
>sending it back. With chunking you can also have persistent connections
>w/o the need of a Content-Length header field.
>
Ah yes, make perfect sense now.

>One curious think about chunking that I do not understand is that
>HTTP proxies are required to move the chunked (any?) encoding before
>forwarding the response.
>
That's news to me.  Doesn't that apply only to MIME gateways or something?
Wouldn't that require a potentially infinite buffer in the proxy?  Wouldn't
it have a horrible impact on response time?

     -Carl

>>
>>
>>      -Carl
>>
>> "Fred Bohle" <fbohle@neonsys.com> on 11/02/2000 11:27:24 AM
>>
>> To:   Carl Kugler/Boulder/IBM@IBMUS
>> cc:   James Lacey <James.Lacey@Motorola.com>, http-wg
>>       <http-wg@hplb.hpl.hp.com>
>> Subject:  Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers
>>
>> Fred Bohle@NEON
>> 11/02/2000 12:27 PM
>>
>>      We seem to be diverging into TCP coding.  A read will return zero
>> length
>> when the other end has issued a normal close (and all the data has been
>> read).
>> A read will return -1 when the connection is ReSeT, or there is a
>> connection time-out
>> of any sort.  So the server can too tell the difference between end of data
>> and
>> a connection failure.
>>
>> Fred
>>
>> From: Carl Kugler/Boulder/IBM <kugler@us.ibm.com> on 11/02/2000 11:59 AM
>>
>> To:   James Lacey <James.Lacey@Motorola.com>
>> cc:   http-wg <http-wg@hplb.hpl.hp.com>
>>
>> Subject:  Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers
>>
>> ...
>> >
>> >For example, suppose the  server sends back an HTTP response to the client
>> >that does not have a Content-Length: header field and that it is not
>> >chunked.
>> >
>> >Then the only way the client knows that it has read the
>> >entire response off of the pipe is when the server closes the connection.
>> >When the server closes the connection the client will receive a
>> >zero-byte read which is socket layer's indication that the pipe
>> >is broken.
>> >
>> This is not good.  If this is the server's normal behavior, the client has
>> no way to distinguish a dropped connection from end of file.  So the client
>> can never be sure it received an entire message.
>>
>> If this is the server's behavior for error conditions, this is still not
>> good unless the server either waits for the entire request (could be a
>> humongous POST and/or a very slow connection), or only closes one half of
>> the connection (which, BTW, is impossible in Java, except maybe in the
>> latest releases).  Otherwise, the client might get a RST while transmitting
>> the request, and will then never see the error response.
>>
>> ...
>> >
>> >I've done some snoops on browsers that are GETting HTML pages with
>> >lots of embedded links that are in the same realm as the original HTML
>> >page.
>> >
>> >Despite this obvious opportunity to take advantage of persistent
>> connections
>> >the browser opens  a connection for each subsequent GET.
>> >
>> I was looking at IE's (version 5 somthing) traffic yesterday, and it seems
>> to send two requests per connection.
>>
>>      -Carl
>



From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 14:52:45 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id OAA02763
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 14:52:44 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id TAA09752;
	Thu, 2 Nov 2000 19:52:03 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id TAA25622;
	Thu, 2 Nov 2000 19:52:01 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id TAA21866; Thu, 2 Nov 2000 19:51:56 GMT
Resent-Date: Thu, 2 Nov 2000 19:51:56 GMT
From: dillon@hns.com
X-Lotus-FromDomain: HNS
Sender: dillon@hns.com
To: http-wg <http-wg@hplb.hpl.hp.com>
Message-ID: <8525698B.006CDCCF.00@ngw2.hns.com>
Date: Thu, 2 Nov 2000 14:47:31 -0500
Subject: More On Persistent Connections...
Mime-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline
Resent-Message-ID: <"c0lTQ3.0.dL5.SNS0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/945
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com




     In the satellite industry we are highly motivated
from a response time standpoint to having persistent connections
and pipelining work.

     To what extent will the use of a proxy server enable
persistent connections between the browser and the proxy server?
I'm assuming that the proxy would be more configurable to keep
the connections alive.

     I bet there are issues regarding transparent and
non-transparent connections.

     Also, how about HTTPS:? There's an even bigger
reason to maintain persistent connections here in both CPU
expense of openning a connection and response time (extra
handshakes).

     Do proxies help with HTTPS and persistent connections?

     Are web servers more or less likely to support persistent
connections with HTTPS?

     I could give my thoughts on this in more detail, but
would be interested to see if anyone is interested in kicking these
items around.

     Doug..............





From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 14:53:36 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id OAA02967
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 14:53:35 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id TAA09913;
	Thu, 2 Nov 2000 19:53:05 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id TAA25730;
	Thu, 2 Nov 2000 19:53:02 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id TAA21983; Thu, 2 Nov 2000 19:53:00 GMT
Resent-Date: Thu, 2 Nov 2000 19:53:00 GMT
Sender: jlacey@pobox2.mot.com
Message-ID: <3A01C5CA.33F5ABA6@Motorola.com>
Date: Thu, 02 Nov 2000 13:51:38 -0600
From: James Lacey <James.Lacey@Motorola.com>
X-Mailer: Mozilla 4.6 [en] (X11; I; SunOS 5.6 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: Carl Kugler/Boulder/IBM <kugler@us.ibm.com>
CC: James Lacey <James_Lacey-CJL023@email.mot.com>,
        http-wg <http-wg@hplb.hpl.hp.com>
Subject: Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers
References: <OFC87F87E1.07F91C6F-ON8725698B.006C455B@LocalDomain>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Resent-Message-ID: <"rmEPN.0.SN5.ROS0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/946
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com
Content-Transfer-Encoding: 7bit

Carl Kugler/Boulder/IBM wrote:

> >Sent by: jlacey@mothost.mot.com
> >Carl Kugler/Boulder/IBM wrote:
> >
> >> I stand corrected.  But then, why was Content-Length added in HTTP/1.0
> and
> >> Tranfer-Encoding: chunked in HTTP/1.1?
> >
> >Content-Length was added so that persistent connections would be possible.
> >
> >Without a content length, neither the client or the server would know
> >where the message ended. You have to realize that TCP is a stream and
> >it is up to the users of the stream to impose some kind of framing
> protocol
> >onto the stream.
> >
> >Transfer-Encoding: chunked was added so that servers could return
> >possibly large dynamic content in chunks, as it was generated, so that
> >the server did not have to buffer up all of the dynamic content before
> >sending it back. With chunking you can also have persistent connections
> >w/o the need of a Content-Length header field.
> >
> Ah yes, make perfect sense now.
>
> >One curious think about chunking that I do not understand is that
> >HTTP proxies are required to move the chunked (any?) encoding before
> >forwarding the response.
> >
> That's news to me.  Doesn't that apply only to MIME gateways or something?
> Wouldn't that require a potentially infinite buffer in the proxy?  Wouldn't
> it have a horrible impact on response time?
>
>      -Carl

I didn't say that it wasn't a controversial requirement ...

>
>
> >>
> >>
> >>      -Carl
> >>
> >> "Fred Bohle" <fbohle@neonsys.com> on 11/02/2000 11:27:24 AM
> >>
> >> To:   Carl Kugler/Boulder/IBM@IBMUS
> >> cc:   James Lacey <James.Lacey@Motorola.com>, http-wg
> >>       <http-wg@hplb.hpl.hp.com>
> >> Subject:  Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers
> >>
> >> Fred Bohle@NEON
> >> 11/02/2000 12:27 PM
> >>
> >>      We seem to be diverging into TCP coding.  A read will return zero
> >> length
> >> when the other end has issued a normal close (and all the data has been
> >> read).
> >> A read will return -1 when the connection is ReSeT, or there is a
> >> connection time-out
> >> of any sort.  So the server can too tell the difference between end of data
> >> and
> >> a connection failure.
> >>
> >> Fred
> >>
> >> From: Carl Kugler/Boulder/IBM <kugler@us.ibm.com> on 11/02/2000 11:59 AM
> >>
> >> To:   James Lacey <James.Lacey@Motorola.com>
> >> cc:   http-wg <http-wg@hplb.hpl.hp.com>
> >>
> >> Subject:  Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers
> >>
> >> ...
> >> >
> >> >For example, suppose the  server sends back an HTTP response to the client
> >> >that does not have a Content-Length: header field and that it is not
> >> >chunked.
> >> >
> >> >Then the only way the client knows that it has read the
> >> >entire response off of the pipe is when the server closes the connection.
> >> >When the server closes the connection the client will receive a
> >> >zero-byte read which is socket layer's indication that the pipe
> >> >is broken.
> >> >
> >> This is not good.  If this is the server's normal behavior, the client has
> >> no way to distinguish a dropped connection from end of file.  So the client
> >> can never be sure it received an entire message.
> >>
> >> If this is the server's behavior for error conditions, this is still not
> >> good unless the server either waits for the entire request (could be a
> >> humongous POST and/or a very slow connection), or only closes one half of
> >> the connection (which, BTW, is impossible in Java, except maybe in the
> >> latest releases).  Otherwise, the client might get a RST while transmitting
> >> the request, and will then never see the error response.
> >>
> >> ...
> >> >
> >> >I've done some snoops on browsers that are GETting HTML pages with
> >> >lots of embedded links that are in the same realm as the original HTML
> >> >page.
> >> >
> >> >Despite this obvious opportunity to take advantage of persistent
> >> connections
> >> >the browser opens  a connection for each subsequent GET.
> >> >
> >> I was looking at IE's (version 5 somthing) traffic yesterday, and it seems
> >> to send two requests per connection.
> >>
> >>      -Carl
> >



From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 15:20:40 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id PAA09405
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 15:20:38 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id UAA10725;
	Thu, 2 Nov 2000 20:20:14 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id UAA27690;
	Thu, 2 Nov 2000 20:20:11 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id UAA22636; Thu, 2 Nov 2000 20:20:07 GMT
Resent-Date: Thu, 2 Nov 2000 20:20:07 GMT
Date: Thu, 2 Nov 2000 15:17:14 -0500
From: Patrick McManus <mcmanus@appliedtheory.com>
To: James Lacey <James.Lacey@Motorola.com>
Cc: Carl Kugler/Boulder/IBM <kugler@us.ibm.com>,
        Fred Bohle <fbohle@neonsys.com>,
        James Lacey <James_Lacey-CJL023@email.mot.com>,
        http-wg <http-wg@hplb.hpl.hp.com>
Subject: Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers
Message-ID: <20001102151714.A15264@appliedtheory.com>
Reply-To: mcmanus@appliedtheory.com
References: <OF63869D21.AF53E3B2-ON8725698B.0068F35F@LocalDomain> <3A01BCC9.B7755930@Motorola.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2i
In-Reply-To: <3A01BCC9.B7755930@Motorola.com>; from James.Lacey@Motorola.com on Thu, Nov 02, 2000 at 01:13:13PM -0600
Resent-Message-ID: <"Yc_rk2.0.fX5.tnS0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/947
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com


> One curious think about chunking that I do not understand is that
> HTTP proxies are required to move the chunked (any?) encoding before
> forwarding the response.

transfer encodings (of which chunk is one) are hop to hop.. so they
have to be theoretically removed.. but if the outgoing encoding is the
same as the incoming encoding that phsyical operation can certainly be
optimized away. The requirement is that the outgoing encoding meets
the requirements of the request received by the proxy.. so if the
proxy gets a 1.0 request it will need to remove 'chunked' and
terminate the message in some other fashion. 

That other way is probably to buffer it and add a CL, or more likely
terminate it by closing the connection.

which leads me to a pet peeve of mine.. 2616 prohibits the sending of
CL when a non identity transfer encoding is used.. consider the case I
just used of a 1.1 proxy with a 1.1 origin-server and a 1.0
user-agent.. the proxy receives a 1.1 chunked (and something else non
identity) response but it's only choice to send it downstream is to
buffer it in a store and fowrard fashion to figure out the content
length or close the connection w/ EOF which would rob of it of the
chance to use 1.0 style keepalives... 

admittedly some folks think 1.0 keepalives ought to be burned.. but by
that argument all responses to 1.0 reqs should lack CL's and be TCP
terminated, right?

if the content length is known by the original sender it seems a
little odd to lose this information if for no reason other than use in
resource allocation or UI thermometer widgets. Certainly with dynamic
content the server probably doesn't know the CL anyhow at header time,
but what if it's just sending say trasnfer-encoding: deflate, chunked
??

-P





From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  2 15:21:19 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id PAA09552
	for <http-archive@odin.ietf.org>; Thu, 2 Nov 2000 15:21:17 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id UAA10777;
	Thu, 2 Nov 2000 20:20:35 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id UAA27774;
	Thu, 2 Nov 2000 20:20:31 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id UAA22660; Thu, 2 Nov 2000 20:20:28 GMT
Resent-Date: Thu, 2 Nov 2000 20:20:28 GMT
Importance: Normal
Subject: Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers
To: http-wg <http-wg@hplb.hpl.hp.com>
X-Mailer: Lotus Notes Release 5.0.3 (Intl) 21 March 2000
Message-ID: <OF207A6E0C.5D94D7F9-ON8725698B.006F63A1@LocalDomain>
From: "Carl Kugler/Boulder/IBM" <kugler@us.ibm.com>
Date: Thu, 2 Nov 2000 13:19:01 -0700
X-MIMETrack: Serialize by Router on D03NM103/03/M/IBM(Release 5.0.3 (Intl)|21 March 2000) at
 11/02/2000 01:19:05 PM
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Resent-Message-ID: <"S-vtI2.0.-X5.CoS0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/948
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com

> -----Original Message-----
> From: Joris Dobbelsteen [mailto:joris.dobbelsteen@m...]
...
>
> The browser can leave the connection open for an infinite ammount of time
> (if not restricted by lower-level protocols, like TCP).
>
> However, idle time-outs when the connection is CONNECTED are, in the real
> world, handled by the server instead of the client. This is because the
> server is not interrested in HTTP connections that are idle for an
infinite
> ammount of time and just consuming bandwidth (the lower-level connection
> must be maintained)...
>
...

How does an idle connection consume bandwidth?

     -Carl



From http-wg-request@cuckoo.hpl.hp.com  Fri Nov  3 17:44:30 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id RAA18789
	for <http-archive@odin.ietf.org>; Fri, 3 Nov 2000 17:44:29 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id WAA15308;
	Fri, 3 Nov 2000 22:43:34 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id WAA20853;
	Fri, 3 Nov 2000 22:43:32 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id WAA04328; Fri, 3 Nov 2000 22:42:52 GMT
Resent-Date: Fri, 3 Nov 2000 22:42:52 GMT
Message-Id: <200011032239.OAA14814@breakaway.Stanford.EDU>
X-Mailer: exmh version 2.0.2 2/24/98
Subject: Of HTTP-over-SSL/TLS connection persistence
To: http-wg <http-wg@hplb.hpl.hp.com>
From: Jeff.Hodges@kingsmountain.com
Reply-to: http-wg <http-wg@hplb.hpl.hp.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Fri, 03 Nov 2000 14:39:23 -0800
Sender: hodges@breakaway.Stanford.EDU
Resent-Message-ID: <"jB-bk2.0.b31.izp0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/949
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com

Ok, so now I'm postulating a server-side gizmo speaking "HTTP 1.0 | 
1.1"-over-SSL/TLS that tries its best to have such connections be persistent.

What do browsers typically do in ~this~ case -- how long before they'll 
timeout an idle connection if the user causes it to connect and then walks 
away for whatever reason?

thanks,

JeffH




From http-wg-request@cuckoo.hpl.hp.com  Fri Nov  3 18:07:21 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id SAA23817
	for <http-archive@odin.ietf.org>; Fri, 3 Nov 2000 18:07:19 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id XAA15947;
	Fri, 3 Nov 2000 23:06:59 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id XAA22495;
	Fri, 3 Nov 2000 23:06:57 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id XAA04579; Fri, 3 Nov 2000 23:06:53 GMT
Resent-Date: Fri, 3 Nov 2000 23:06:53 GMT
Message-ID: <3A0344D6.C250A3FD@netscape.com>
Date: Fri, 03 Nov 2000 15:05:58 -0800
From: jpierre@netscape.com (Julien Pierre)
Organization: Netscape Communications Corp. - America On-Line, Inc. - Sun-Netscape 
 Alliance - iPlanet E-commerce Solutions - AOL Time Warner, Inc. - what 
 next ?
X-Mailer: Mozilla 4.7 [en]C-AOLNSCP  (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: James Lacey <James.Lacey@Motorola.com>
CC: Carl Kugler/Boulder/IBM <kugler@us.ibm.com>,
        Fred Bohle <fbohle@neonsys.com>,
        James Lacey <James_Lacey-CJL023@email.mot.com>,
        http-wg <http-wg@hplb.hpl.hp.com>
Subject: Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers
References: <OF63869D21.AF53E3B2-ON8725698B.0068F35F@LocalDomain> <3A01BCC9.B7755930@Motorola.com>
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms9B7E6E332888E4E15C9BE03B"
Resent-Message-ID: <"Z8sfC3.0.W71.CKq0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/950
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com

This is a cryptographically signed message in MIME format.

--------------ms9B7E6E332888E4E15C9BE03B
Content-Type: multipart/mixed;
 boundary="------------B8ADD73E0BF31695A59B9C71"

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

Hi,

James Lacey wrote:

> Carl Kugler/Boulder/IBM wrote:
>
> > I stand corrected.  But then, why was Content-Length added in HTTP/1.0 and
> > Tranfer-Encoding: chunked in HTTP/1.1?
>
> Content-Length was added so that persistent connections would be possible.
>
> Without a content length, neither the client or the server would know
> where the message ended. You have to realize that TCP is a stream and
> it is up to the users of the stream to impose some kind of framing protocol
> onto the stream.
>
> Transfer-Encoding: chunked was added so that servers could return
> possibly large dynamic content in chunks, as it was generated, so that
> the server did not have to buffer up all of the dynamic content before
> sending it back. With chunking you can also have persistent connections
> w/o the need of a Content-Length header field.

"Transfer-Encoding chunked" also works on the client side, and would allow a
client to send dynamic content in its request. If both the client and the server
are doing chunking, it makes streaming applications possible over a standard HTTP
connection (eg: VPN, multimedia, etc).

I'd like to point out that with iPlanet Web Server 4.1, you can easily write such
applications in NSAPI and all the chunking issues are transparently taken care of
for the application developer. The only requirement is of course that the client
must be HTTP/1.1 compliant and support chunking. The client counterpart of such a
server-side streaming application could be a Java applet or browser plugin.

> One curious think about chunking that I do not understand is that
> HTTP proxies are required to move the chunked (any?) encoding before
> forwarding the response.

It seems that such a proxy would break the type of application mentioned above
... Full duplex would be required for such an application. This is something that
is not very well addressed in current HTTP specs (hint: this is just a trick to
get immediate attention from the RFC2616 owners :)).

Traditionally, with the content-length indicated in requests and responses, many
browsers and servers have used a synchronous model, where clients try to submit
the whole request, then only after it's complete, begin read the server response.
Many servers operate similarly and read the entire request before starting the
reponse. This is generally true for small GET requests, which the server can
afford to buffer. However, for POST, the server will not buffer since that would
make the memory footprint of the server very high when multiplied by the number
of connections. So the HTTP server will just act as a sort of intermediate and
use a relatively small buffer for the POST data, then pass it gradually to the
consumer of the request - whether it's a CGI, servlet, or NSAPI application ...

I have found that HTTP clients typically break if the server tries to respond too
early to a request, before it is complete. For example, this can happen with a
large POST request to a non-existing object. The server detects early on that the
URI doesn't point to a valid object on the server, and will try to respond
immediately with a 404 response. This is done before it reads the entire amount
of POST data ; since that can be very large and slow to read.

At that point however, the client is still submitting the large POST data ; and
the connection ends up being reset since both sides are sending and the client
isn't trying to read until its write loop is over. In iWS, we have some
workarounds that I consider ugly, including trying to read more POST data on such
erroneous large requests and just discarding it, as well as doing shutdown before
close, just to make sure the client doesn't see a "connection reset" error. This
doesn't work 100% of the time since we set some limits, but obviously we aren't
going to read megabytes of data if the request is too large, or wait a long time
on that socket, since that could be a denial of service attack - eating up socket
descriptors and in some cases also holding up a thread in the server. It would be
really good if the HTTP spec would address such cases and require both client and
servers to try both sides of the socket before closing/shutting the connection
down ... Such workarounds would not be necessary and the servers could just
peacefully shut down the connection after reporting an error, and assume that the
client in fact was really able to receive that error - not causing a "connection
reset".

--
The network is the computer, and it's down


--------------B8ADD73E0BF31695A59B9C71
Content-Type: text/x-vcard; charset=us-ascii;
 name="jpierre.vcf"
Content-Description: Card for Julien Pierre
Content-Disposition: attachment;
 filename="jpierre.vcf"
Content-Transfer-Encoding: 7bit

begin:vcard 
n:Pierre;Julien
tel;work:408 276 3664
x-mozilla-html:FALSE
url:http://www.iplanet.com
org:iPlanet E-commerce Solutions, a Sun-Netscape Alliance;Web Server
adr:;;4160 Network Circle;Santa Clara;California;95054;USA
version:2.1
email;internet:jpierre@netscape.com
title:Software Developer
x-mozilla-cpt:;31168
fn:Julien Pierre
end:vcard

--------------B8ADD73E0BF31695A59B9C71--

--------------ms9B7E6E332888E4E15C9BE03B
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
Content-Transfer-Encoding: base64

MIIIiQYJKoZIhvcNAQcCoIIIejCCCHYCAQExCzAJBgUrDgMC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h8AzEshxDVYjtw
1Q6xZIA0Tln6xlnmRt5OaAh1QPUdjCnWrnetyT1p5ECNRJdGb756wFiksR9qpw8pUYqBDSmO
neQPMwuPjSQ97DGCAfUwggHxAgEBMIGaMIGTMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0Ex
FjAUBgNVBAcTDU1vdW50YWluIFZpZXcxGzAZBgNVBAoTEkFtZXJpY2EgT25saW5lIEluYzEZ
MBcGA1UECxMQQU9MIFRlY2hub2xvZ2llczEnMCUGA1UEAxMeSW50cmFuZXQgQ2VydGlmaWNh
dGUgQXV0aG9yaXR5AgIkfDAJBgUrDgMCGgUAoIGxMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0B
BwEwHAYJKoZIhvcNAQkFMQ8XDTAwMTEwMzIzMDU1OFowIwYJKoZIhvcNAQkEMRYEFBN595fC
sOpTFjarKqOceNCDjRCNMFIGCSqGSIb3DQEJDzFFMEMwCgYIKoZIhvcNAwcwDgYIKoZIhvcN
AwICAgCAMAcGBSsOAwIHMA0GCCqGSIb3DQMCAgFAMA0GCCqGSIb3DQMCAgEoMA0GCSqGSIb3
DQEBAQUABIGAKuSgln9swMBPbLPJL85ieVsybvG8LYPPqQtXnahaNsAg8j/g+oSLLC2d3Atr
1N+z58AFtdGtS7FW0kMJzH4Jtb2nlTrY1jA1SmgScsH7yOImgIJdLYdmku8nE0kKS16YeGLS
Q4Vvw/W+8DhFkihmIBSjBQJ3H59KZDW7hv+spks=
--------------ms9B7E6E332888E4E15C9BE03B--



From http-wg-request@cuckoo.hpl.hp.com  Fri Nov  3 18:17:51 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id SAA26121
	for <http-archive@odin.ietf.org>; Fri, 3 Nov 2000 18:17:50 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id XAA16252;
	Fri, 3 Nov 2000 23:17:30 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id XAA23240;
	Fri, 3 Nov 2000 23:17:27 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id XAA04704; Fri, 3 Nov 2000 23:17:22 GMT
Resent-Date: Fri, 3 Nov 2000 23:17:22 GMT
Message-ID: <3A034749.9AAFF6F4@netscape.com>
Date: Fri, 03 Nov 2000 15:16:25 -0800
From: ruslan@netscape.com (Ruslan Belkin)
Organization: Netscape Communications Corporation
X-Mailer: Mozilla 4.74 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Julien Pierre <jpierre@netscape.com>
CC: James Lacey <James.Lacey@Motorola.com>,
        Carl Kugler/Boulder/IBM <kugler@us.ibm.com>,
        Fred Bohle <fbohle@neonsys.com>,
        James Lacey <James_Lacey-CJL023@email.mot.com>,
        http-wg <http-wg@hplb.hpl.hp.com>
Subject: Re: Of HTTP/1.1 persistent connections and TCP Keepalive timers
References: <OF63869D21.AF53E3B2-ON8725698B.0068F35F@LocalDomain> <3A01BCC9.B7755930@Motorola.com> <3A0344D6.C250A3FD@netscape.com>
Content-Type: multipart/mixed;
 boundary="------------0695EF5062F03981D11B33FA"
Resent-Message-ID: <"G_yPb3.0.T91.2Uq0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/951
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com

This is a multi-part message in MIME format.
--------------0695EF5062F03981D11B33FA
Content-Type: text/plain; charset=koi8-r
Content-Transfer-Encoding: 7bit

Julien Pierre wrote:

> Hi,
>
> James Lacey wrote:
>
> > Carl Kugler/Boulder/IBM wrote:
> >
> > > I stand corrected.  But then, why was Content-Length added in HTTP/1.0 and
> > > Tranfer-Encoding: chunked in HTTP/1.1?
> >
> I have found that HTTP clients typically break if the server tries to respond too
> early to a request, before it is complete. For example, this can happen with a

that's cuz the right thing to do would be to send expect continue along with POST
then wait for continue then send the data. But many servers are broken 2 with respect
to this,

Ruslan

--------------0695EF5062F03981D11B33FA
Content-Type: text/x-vcard; charset=koi8-r;
 name="ruslan.vcf"
Content-Description: Card for Ruslan Belkin
Content-Disposition: attachment;
 filename="ruslan.vcf"
Content-Transfer-Encoding: 7bit

begin:vcard 
n:Belkin;Ruslan
x-mozilla-html:TRUE
url:http://people.netscape.com/ruslan
org:Netscape Communications Corporation
adr:;;501 E. Middlefiled Rd;Mountain View;CA;94043;USA
version:2.1
email;internet:ruslan@netscape.com
title:Principal Engineer
fn:Ruslan Belkin
end:vcard

--------------0695EF5062F03981D11B33FA--



From http-wg-request@cuckoo.hpl.hp.com  Fri Nov  3 19:01:37 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id TAA05792
	for <http-archive@odin.ietf.org>; Fri, 3 Nov 2000 19:01:35 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id AAA17336;
	Sat, 4 Nov 2000 00:01:17 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id AAA26134;
	Sat, 4 Nov 2000 00:01:15 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id AAA04831; Sat, 4 Nov 2000 00:01:06 GMT
Resent-Date: Sat, 4 Nov 2000 00:01:06 GMT
Message-ID: <3A03519A.8BAFA9FD@netscape.com>
Date: Fri, 03 Nov 2000 16:00:26 -0800
From: jpierre@netscape.com (Julien Pierre)
Organization: Netscape Communications Corp. - America On-Line, Inc. - Sun-Netscape 
 Alliance - iPlanet E-commerce Solutions - AOL Time Warner, Inc. - what 
 next ?
X-Mailer: Mozilla 4.7 [en]C-AOLNSCP  (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: http-wg <http-wg@hplb.hpl.hp.com>
Subject: Re: Of HTTP-over-SSL/TLS connection persistence
References: <200011032239.OAA14814@breakaway.Stanford.EDU>
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------msFE99F2BAB0205D7EB8EB1823"
Resent-Message-ID: <"N8Toc1.0.PB1.17r0w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/952
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com

This is a cryptographically signed message in MIME format.

--------------msFE99F2BAB0205D7EB8EB1823
Content-Type: multipart/mixed;
 boundary="------------BFC2EBC111E6633B9AEAE6C2"

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

As far as timeouts, my experience (as a server developer) is that clients will
typically treat the HTTP over SSL connections the same way they do insecure HTTP
connections, and use the same persistent connection timeout.

If you are talking about persistent connections of clients with HTTP over TLS
upgrade, then you just opened a can of worms :-) After either side times out that
persistent connection, the client would have to reconnect to the server and
"reupgrade" the connection to TLS ... Or maybe not, depending on what factors
trigger the TLS upgrade, - especially if it's triggered by the server on a part
of the URI space - so you might end up with a nonsecure connection after the
reconnect due to the timeout if the client reconnects with a different URI (there
could be other factors and other corresponding possible error cases ...). This is
one of the reasons I don't consider the current TLS upgrade draft very useful in
the real world; it seems to be only used for custom applications like IPP and I
don't think any major client supports it today. But my response probably goes
beyond what you were asking.

Jeff.Hodges@kingsmountain.com wrote:

> Ok, so now I'm postulating a server-side gizmo speaking "HTTP 1.0 |
> 1.1"-over-SSL/TLS that tries its best to have such connections be persistent.
>
> What do browsers typically do in ~this~ case -- how long before they'll
> timeout an idle connection if the user causes it to connect and then walks
> away for whatever reason?
>
> thanks,
>
> JeffH

--
The network is the computer, and it's down


--------------BFC2EBC111E6633B9AEAE6C2
Content-Type: text/x-vcard; charset=us-ascii;
 name="jpierre.vcf"
Content-Description: Card for Julien Pierre
Content-Disposition: attachment;
 filename="jpierre.vcf"
Content-Transfer-Encoding: 7bit

begin:vcard 
n:Pierre;Julien
tel;work:408 276 3664
x-mozilla-html:FALSE
url:http://www.iplanet.com
org:iPlanet E-commerce Solutions, a Sun-Netscape Alliance;Web Server
adr:;;4160 Network Circle;Santa Clara;California;95054;USA
version:2.1
email;internet:jpierre@netscape.com
title:Software Developer
x-mozilla-cpt:;31168
fn:Julien Pierre
end:vcard

--------------BFC2EBC111E6633B9AEAE6C2--

--------------msFE99F2BAB0205D7EB8EB1823
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
Content-Transfer-Encoding: base64

MIIIiQYJKoZIhvcNAQcCoIIIejCCCHYCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCC
BlwwggMPMIICeKADAgECAgIkfDANBgkqhkiG9w0BAQQFADCBkzELMAkGA1UEBhMCVVMxCzAJ
BgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRswGQYDVQQKExJBbWVyaWNhIE9u
bGluZSBJbmMxGTAXBgNVBAsTEEFPTCBUZWNobm9sb2dpZXMxJzAlBgNVBAMTHkludHJhbmV0
IENlcnRpZmljYXRlIEF1dGhvcml0eTAeFw0wMDA5MDEwMDQ1MTFaFw0wMTAyMjgwMDQ1MTFa
MIGFMRMwEQYKCZImiZPyLGQBGRYDY29tMRgwFgYKCZImiZPyLGQBGRYIbmV0c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B
BwEwHAYJKoZIhvcNAQkFMQ8XDTAwMTEwNDAwMDAzMFowIwYJKoZIhvcNAQkEMRYEFFyiU1ij
1zEdryUxnzeAARNM7njeMFIGCSqGSIb3DQEJDzFFMEMwCgYIKoZIhvcNAwcwDgYIKoZIhvcN
AwICAgCAMAcGBSsOAwIHMA0GCCqGSIb3DQMCAgFAMA0GCCqGSIb3DQMCAgEoMA0GCSqGSIb3
DQEBAQUABIGAPt8N1Fc9KL80CrxBV8dKHiOogLxl5Uq1LAIuIL8fvBLddYagft+qZkzrmP8x
v5s5dJi9X9qopzLsKKMjnnX+qCbTMRQbVK0XokTvZHVTH96hufDQ597uCRsPFYKbJ7FEVd68
cPc17QGKhTWyVUjaMIPq9OCMTEXHjGBt8URrVhE=
--------------msFE99F2BAB0205D7EB8EB1823--



From http-wg-request@cuckoo.hpl.hp.com  Sun Nov  5 12:13:15 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id MAA06710
	for <http-archive@odin.ietf.org>; Sun, 5 Nov 2000 12:13:09 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id RAA14057;
	Sun, 5 Nov 2000 17:11:17 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id RAA19544;
	Sun, 5 Nov 2000 17:11:15 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id RAA24005; Sun, 5 Nov 2000 17:10:38 GMT
Resent-Date: Sun, 5 Nov 2000 17:10:38 GMT
From: "Joris Dobbelsteen" <joris.dobbelsteen@mail.com>
To: "'Carl Kugler/Boulder/IBM'" <kugler@us.ibm.com>
Cc: "WWW WG (E-mail)" <http-wg@cuckoo.hpl.hp.com>
Subject: RE: Of HTTP/1.1 persistent connections and TCP Keepalive timers
Date: Sun, 5 Nov 2000 17:57:25 +0100
Message-ID: <000101c0474b$0dfb5bb0$01ff1fac@Thuis.local>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
In-Reply-To: <OFC87F87E1.07F91C6F-ON8725698B.006C455B@LocalDomain>
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300
Resent-Message-ID: <"-2W3X1.0.2t5.EIP1w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/953
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by ietf.org id MAA06710

As for removing chunked encoding. Why is it actually needed???

The only reason I see is when you make a HTTP/1.0 request (no chunked support) and the browser a subsequent HTTP/1.1 request and the server returns a chunked response back.
I would think that it might be to ensure the client can always understand the request. Also it takes less time to make a subsequent request to a proxy than to the web server (most of the time).
Also as Carl indicated this requires the buffer of the proxy to be of infinite length if the connection must be kept open and this would even dramatically downgrade response time.

I think you shouldn't do this over HTTP/1.1 connections, and over HTTP/1.0 connections just by sending NO content-length...



About MSIE sending only two requests at a time: Microsoft has documented this and it is possibility to have the lowest response times for the web page. If one requests takes a lot of time, to the requests after this, the server will respond later. As a browser you cannot know the size of a request.
There was once a discussion about HOL (Head-of-Line) blocking that went into this problem. Microsoft avoided the problem this way...

- Joris


> -----Original Message-----
> From: Carl Kugler/Boulder/IBM [mailto:kugler@us.ibm.com]
> Sent: Thursday, 02 November 2000 20:46
> To: James Lacey
> Cc: http-wg
> Subject: Re: Of HTTP/1.1 persistent connections and TCP 
> Keepalive timers
> 
> 
> 
> >Sent by: jlacey@mothost.mot.com
> >Carl Kugler/Boulder/IBM wrote:
> >
> >> I stand corrected.  But then, why was Content-Length added 
> in HTTP/1.0
> and
> >> Tranfer-Encoding: chunked in HTTP/1.1?
> >
> >Content-Length was added so that persistent connections 
> would be possible.
> >
> >Without a content length, neither the client or the server would know
> >where the message ended. You have to realize that TCP is a stream and
> >it is up to the users of the stream to impose some kind of framing
> protocol
> >onto the stream.
> >
> >Transfer-Encoding: chunked was added so that servers could return
> >possibly large dynamic content in chunks, as it was 
> generated, so that
> >the server did not have to buffer up all of the dynamic 
> content before
> >sending it back. With chunking you can also have persistent 
> connections
> >w/o the need of a Content-Length header field.
> >
> Ah yes, make perfect sense now.
> 
> >One curious think about chunking that I do not understand is that
> >HTTP proxies are required to move the chunked (any?) encoding before
> >forwarding the response.
> >
> That's news to me.  Doesn't that apply only to MIME gateways 
> or something?
> Wouldn't that require a potentially infinite buffer in the 
> proxy?  Wouldn't
> it have a horrible impact on response time?
> 
>      -Carl
> 
> >>
> >>
> >>      -Carl
> >>
> >> "Fred Bohle" <fbohle@neonsys.com> on 11/02/2000 11:27:24 AM
> >>
> >> To:   Carl Kugler/Boulder/IBM@IBMUS
> >> cc:   James Lacey <James.Lacey@Motorola.com>, http-wg
> >>       <http-wg@hplb.hpl.hp.com>
> >> Subject:  Re: Of HTTP/1.1 persistent connections and TCP 
> Keepalive timers
> >>
> >> Fred Bohle@NEON
> >> 11/02/2000 12:27 PM
> >>
> >>      We seem to be diverging into TCP coding.  A read will 
> return zero
> >> length
> >> when the other end has issued a normal close (and all the 
> data has been
> >> read).
> >> A read will return -1 when the connection is ReSeT, or there is a
> >> connection time-out
> >> of any sort.  So the server can too tell the difference 
> between end of data
> >> and
> >> a connection failure.
> >>
> >> Fred
> >>
> >> From: Carl Kugler/Boulder/IBM <kugler@us.ibm.com> on 
> 11/02/2000 11:59 AM
> >>
> >> To:   James Lacey <James.Lacey@Motorola.com>
> >> cc:   http-wg <http-wg@hplb.hpl.hp.com>
> >>
> >> Subject:  Re: Of HTTP/1.1 persistent connections and TCP 
> Keepalive timers
> >>
> >> ...
> >> >
> >> >For example, suppose the  server sends back an HTTP 
> response to the client
> >> >that does not have a Content-Length: header field and 
> that it is not
> >> >chunked.
> >> >
> >> >Then the only way the client knows that it has read the
> >> >entire response off of the pipe is when the server closes 
> the connection.
> >> >When the server closes the connection the client will receive a
> >> >zero-byte read which is socket layer's indication that the pipe
> >> >is broken.
> >> >
> >> This is not good.  If this is the server's normal 
> behavior, the client has
> >> no way to distinguish a dropped connection from end of 
> file.  So the client
> >> can never be sure it received an entire message.
> >>
> >> If this is the server's behavior for error conditions, 
> this is still not
> >> good unless the server either waits for the entire request 
> (could be a
> >> humongous POST and/or a very slow connection), or only 
> closes one half of
> >> the connection (which, BTW, is impossible in Java, except 
> maybe in the
> >> latest releases).  Otherwise, the client might get a RST 
> while transmitting
> >> the request, and will then never see the error response.
> >>
> >> ...
> >> >
> >> >I've done some snoops on browsers that are GETting HTML pages with
> >> >lots of embedded links that are in the same realm as the 
> original HTML
> >> >page.
> >> >
> >> >Despite this obvious opportunity to take advantage of persistent
> >> connections
> >> >the browser opens  a connection for each subsequent GET.
> >> >
> >> I was looking at IE's (version 5 somthing) traffic 
> yesterday, and it seems
> >> to send two requests per connection.
> >>
> >>      -Carl
> >
> 
> 



From http-wg-request@cuckoo.hpl.hp.com  Sun Nov  5 12:24:19 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id MAA11464
	for <http-archive@odin.ietf.org>; Sun, 5 Nov 2000 12:24:17 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id RAA14709;
	Sun, 5 Nov 2000 17:23:44 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id RAA20940;
	Sun, 5 Nov 2000 17:23:42 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id RAA24373; Sun, 5 Nov 2000 17:23:39 GMT
Resent-Date: Sun, 5 Nov 2000 17:23:39 GMT
From: "Joris Dobbelsteen" <joris.dobbelsteen@mail.com>
To: "'http-wg'" <http-wg@hplb.hpl.hp.com>
Subject: RE: Of HTTP-over-SSL/TLS connection persistence
Date: Sun, 5 Nov 2000 18:21:53 +0100
Message-ID: <001701c0474c$e471be40$01ff1fac@Thuis.local>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
In-Reply-To: <200011032239.OAA14814@breakaway.Stanford.EDU>
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300
Resent-Message-ID: <"ZnjHi2.0.oy5.RUP1w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/956
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by ietf.org id MAA11464

Better head for SSL, since I don't know any browsers that actually support TLS (MSIE doesn't, I think)...

> -----Original Message-----
> From: hodges@breakaway.Stanford.EDU
> [mailto:hodges@breakaway.Stanford.EDU]On Behalf Of
> Jeff.Hodges@KingsMountain.com
> Sent: Friday, 03 November 2000 23:39
> To: http-wg
> Subject: Of HTTP-over-SSL/TLS connection persistence
> 
> 
> Ok, so now I'm postulating a server-side gizmo speaking "HTTP 1.0 | 
> 1.1"-over-SSL/TLS that tries its best to have such 
> connections be persistent.
> 
> What do browsers typically do in ~this~ case -- how long 
> before they'll 
> timeout an idle connection if the user causes it to connect 
> and then walks 
> away for whatever reason?
> 
> thanks,
> 
> JeffH
> 
> 
> 



From http-wg-request@cuckoo.hpl.hp.com  Sun Nov  5 12:49:28 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id MAA06708
	for <http-archive@odin.ietf.org>; Sun, 5 Nov 2000 12:13:09 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id RAA14070;
	Sun, 5 Nov 2000 17:11:20 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id RAA19550;
	Sun, 5 Nov 2000 17:11:16 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id RAA24023; Sun, 5 Nov 2000 17:10:40 GMT
Resent-Date: Sun, 5 Nov 2000 17:10:40 GMT
From: "Joris Dobbelsteen" <joris.dobbelsteen@mail.com>
To: "WWW WG (E-mail)" <http-wg@cuckoo.hpl.hp.com>
Subject: RE: Of HTTP/1.1 persistent connections and TCP Keepalive timers
Date: Sun, 5 Nov 2000 18:01:08 +0100
Message-ID: <000201c0474b$0f9360d0$01ff1fac@Thuis.local>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
In-Reply-To: <3A01BEE0.1ECAC6C7@Motorola.com>
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300
Resent-Message-ID: <"PTCAY.0.Jt5.GIP1w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/954
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by ietf.org id MAA06708

> -----Original Message-----
> From: jlacey@mothost.mot.com 
> [mailto:jlacey@mothost.mot.com]On Behalf Of
> James Lacey
> Sent: Thursday, 02 November 2000 20:22
> To: Marc Slemko
> Cc: http-wg
> Subject: Re: Of HTTP/1.1 persistent connections and TCP 
> Keepalive timers
> 
> 
> Marc Slemko wrote:
> 
> > On Thu, 2 Nov 2000, James Lacey wrote:
> >
> > > > > to a client. For example, if the web server generates 
> any dynamic content
> > > > > for the client, then it will usually close the 
> connection after the response it
> > > > > sent back. Regardless of whether or not the client 
> supplied a Connection:
> > > > > Keep-Alive header or not. The reasoning behind this 
> is that if the sever
> > > > > had to generate dynamic content on your behalf, then 
> you've had your share
> > > > > and its time to give some other poor slob a turn.
> > > >
> > > > Huh?  That would be a webserver with some very... odd ideas.
> > > >
> > > > If you are talking about "Connection: Keep-Alive" then 
> you appear to be
> > > > talking about HTTP/1.0, in which there is no chunked encoding so
> > > > unless the server puts a content-length on its dynamic content
> > > > (which is perfectly possible for it to do, but many don't for
> > > > reasons that are also perfectly legitimate) then there is no way
> > > > to use a persistent connection since in that case the only
> > > > end-of-reponse marker you have is the close of connection.
> > >
> > > As a concrete example the iPlanet Enterprise v4.1 server always
> > > closes the connection after responding to a POST request or
> > > anytime that dynamic content is generated (possibly because
> > > the response does not have a Content-Length: header field
> > > and the response is not chunked).
> > >
> > > I have verified this and it is clearly documented in their
> > > literature.
> >
> > You are missing the point; it doesn't do it out of some odd desire
> > to "share" since a client has "had it's fill of dynamic content
> > for now", like you suggested it does.
> 
> OK. OK. I get your point.
> 
> It may not be out of some odd desire to "share".
> 
> But it is certainly based on the idea that many
> clients need to be serviced with relatively few
> connections.
> 
Some servers can close a connection after sending dynamic content because of security resons. (or because they are bad implementations.)

As for POST, if a server responds (except the 1xx status codes), the request must have ended. At least, this is the most logic thing for me. Also I don't know how to send a POST request without using content-length or chunked encoding and having the server knowning absolutely sure that request has ended.

- Joris



From http-wg-request@cuckoo.hpl.hp.com  Sun Nov  5 12:49:28 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id MAA06709
	for <http-archive@odin.ietf.org>; Sun, 5 Nov 2000 12:13:09 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id RAA14069;
	Sun, 5 Nov 2000 17:11:20 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id RAA19553;
	Sun, 5 Nov 2000 17:11:16 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id RAA24039; Sun, 5 Nov 2000 17:10:44 GMT
Resent-Date: Sun, 5 Nov 2000 17:10:44 GMT
From: "Joris Dobbelsteen" <joris.dobbelsteen@mail.com>
To: "WWW WG (E-mail)" <http-wg@cuckoo.hpl.hp.com>
Subject: RE: Of HTTP/1.1 persistent connections and TCP Keepalive timers
Date: Sun, 5 Nov 2000 17:46:10 +0100
Message-ID: <000001c0474b$0a773e00$01ff1fac@Thuis.local>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
In-Reply-To: <OF63869D21.AF53E3B2-ON8725698B.0068F35F@LocalDomain>
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300
Resent-Message-ID: <"g8LRU3.0.at5.KIP1w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/955
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by ietf.org id MAA06709

Content-length in HTTP/1.0 is not directly needed, except when using the addional RFC purposing persistent connections. It gave the client a indication of the length of the file. This is nice when downloading a large file, you know that you have all the data received (in case of line failures)...

HTTP/1.1 added chunked encoding in order to let HTTP implementations benefit when sending content where the length is not known (like dynamic content or an real-time video/measurement) and benefit from the persistent connections. The next request (e.g. a picture) can be requested without waisting time to open a new connection.


That looks like the most logic explaination for me....

- Joris

> -----Original Message-----
> From: Carl Kugler/Boulder/IBM [mailto:kugler@us.ibm.com]
> Sent: Thursday, 02 November 2000 20:07
> To: Fred Bohle
> Cc: James Lacey; http-wg
> Subject: Re: Of HTTP/1.1 persistent connections and TCP 
> Keepalive timers
> 
> 
> 
> I stand corrected.  But then, why was Content-Length added in 
> HTTP/1.0 and
> Tranfer-Encoding: chunked in HTTP/1.1?
> 
>      -Carl
> 
> 
> 
> "Fred Bohle" <fbohle@neonsys.com> on 11/02/2000 11:27:24 AM
> 
> To:   Carl Kugler/Boulder/IBM@IBMUS
> cc:   James Lacey <James.Lacey@Motorola.com>, http-wg
>       <http-wg@hplb.hpl.hp.com>
> Subject:  Re: Of HTTP/1.1 persistent connections and TCP 
> Keepalive timers
> 
> 
> 
> 
> 
> 
> 
> Fred Bohle@NEON
> 11/02/2000 12:27 PM
> 
> 
>      We seem to be diverging into TCP coding.  A read will return zero
> length
> when the other end has issued a normal close (and all the 
> data has been
> read).
> A read will return -1 when the connection is ReSeT, or there is a
> connection time-out
> of any sort.  So the server can too tell the difference 
> between end of data
> and
> a connection failure.
> 
> Fred
> 
> 
> 
> 
> From: Carl Kugler/Boulder/IBM <kugler@us.ibm.com> on 
> 11/02/2000 11:59 AM
> 
> To:   James Lacey <James.Lacey@Motorola.com>
> cc:   http-wg <http-wg@hplb.hpl.hp.com>
> 
> Subject:  Re: Of HTTP/1.1 persistent connections and TCP 
> Keepalive timers
> 
> 
> ...
> >
> >For example, suppose the  server sends back an HTTP response 
> to the client
> >that does not have a Content-Length: header field and that it is not
> >chunked.
> >
> >Then the only way the client knows that it has read the
> >entire response off of the pipe is when the server closes 
> the connection.
> >When the server closes the connection the client will receive a
> >zero-byte read which is socket layer's indication that the pipe
> >is broken.
> >
> This is not good.  If this is the server's normal behavior, 
> the client has
> no way to distinguish a dropped connection from end of file.  
> So the client
> can never be sure it received an entire message.
> 
> If this is the server's behavior for error conditions, this 
> is still not
> good unless the server either waits for the entire request (could be a
> humongous POST and/or a very slow connection), or only closes 
> one half of
> the connection (which, BTW, is impossible in Java, except maybe in the
> latest releases).  Otherwise, the client might get a RST 
> while transmitting
> the request, and will then never see the error response.
> 
> ...
> >
> >I've done some snoops on browsers that are GETting HTML pages with
> >lots of embedded links that are in the same realm as the 
> original HTML
> >page.
> >
> >Despite this obvious opportunity to take advantage of persistent
> connections
> >the browser opens  a connection for each subsequent GET.
> >
> I was looking at IE's (version 5 somthing) traffic yesterday, 
> and it seems
> to send two requests per connection.
> 
> 
>      -Carl
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 



From http-wg-request@cuckoo.hpl.hp.com  Mon Nov  6 10:50:40 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id KAA01173
	for <http-archive@odin.ietf.org>; Mon, 6 Nov 2000 10:50:38 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id PAA10556;
	Mon, 6 Nov 2000 15:48:43 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id PAA29501;
	Mon, 6 Nov 2000 15:48:41 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id PAA05283; Mon, 6 Nov 2000 15:46:55 GMT
Resent-Date: Mon, 6 Nov 2000 15:46:55 GMT
From: dillon@hns.com
X-Lotus-FromDomain: HNS
Sender: dillon@hns.com
To: http-wg@hplb.hpl.hp.com
Message-ID: <8525698F.00566A74.00@ngw2.hns.com>
Date: Mon, 6 Nov 2000 10:42:23 -0500
Subject: Reference HTTP 1.1 Client And Server Implementations
Mime-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline
Resent-Message-ID: <"1xHoP2.0.WI1.k9j1w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/957
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com




     Are there reference HTTP 1.1 client and server implementations
available which could be used as the basis for moving Mozilla and Apache
up to include 1.1 implementations with support for persistent connections and
request pipelining?

     Doug...................




From http-wg-request@cuckoo.hpl.hp.com  Mon Nov  6 11:26:54 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id LAA11519
	for <http-archive@odin.ietf.org>; Mon, 6 Nov 2000 11:26:52 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id QAA12284;
	Mon, 6 Nov 2000 16:26:22 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id QAA02633;
	Mon, 6 Nov 2000 16:26:20 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id QAA05500; Mon, 6 Nov 2000 16:25:21 GMT
Resent-Date: Mon, 6 Nov 2000 16:25:21 GMT
Sender: francis@localhost.localdomain
Message-ID: <3A06DBD9.2734C576@ecal.com>
Date: Mon, 06 Nov 2000 11:27:05 -0500
From: John Stracke <francis@ecal.com>
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i586)
X-Accept-Language: en, de, es
MIME-Version: 1.0
To: http-wg@hplb.hpl.hp.com
Subject: Re: Reference HTTP 1.1 Client And Server Implementations
References: <8525698F.00566A74.00@ngw2.hns.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Resent-Message-ID: <"4SYAO1.0.sL1.njj1w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/958
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com
Content-Transfer-Encoding: 7bit

dillon@hns.com wrote:

>      Are there reference HTTP 1.1 client and server implementations

The W3C has some stuff; I don't know how complete it is.

 http://www.w3.org/Library

--
/==============================================================\
|John Stracke    | http://www.ecal.com |My opinions are my own.|
|Chief Scientist |=============================================|
|eCal Corp.      |You! Out of the gene pool!                   |
|francis@ecal.com|                                             |
\==============================================================/





From http-wg-request@cuckoo.hpl.hp.com  Mon Nov  6 11:48:44 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id LAA17778
	for <http-archive@odin.ietf.org>; Mon, 6 Nov 2000 11:48:43 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id QAA13228;
	Mon, 6 Nov 2000 16:48:16 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id QAA03965;
	Mon, 6 Nov 2000 16:48:13 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id QAA05680; Mon, 6 Nov 2000 16:47:13 GMT
Resent-Date: Mon, 6 Nov 2000 16:47:13 GMT
Importance: Normal
Subject: RE: Of HTTP-over-SSL/TLS connection persistence
To: "Joris Dobbelsteen" <joris.dobbelsteen@mail.com>
Cc: "'http-wg'" <http-wg@hplb.hpl.hp.com>
X-Mailer: Lotus Notes Release 5.0.3 (Intl) 21 March 2000
Message-ID: <OF0D8A775F.245CBCA4-ON8725698F.005BE688@LocalDomain>
From: "Carl Kugler/Boulder/IBM" <kugler@us.ibm.com>
Date: Mon, 6 Nov 2000 09:44:45 -0700
X-MIMETrack: Serialize by Router on D03NM103/03/M/IBM(Release 5.0.3 (Intl)|21 March 2000) at
 11/06/2000 09:44:57 AM
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Resent-Message-ID: <"si5KF1.0.jO1.H2k1w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/959
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com


My copy of MSIE 5.50.4134.0600 has a checkbox for "Use TLS 1.0".

     -Carl



"Joris Dobbelsteen" <joris.dobbelsteen@mail.com> on 11/05/2000 10:21:53 AM

To:   "'http-wg'" <http-wg@hplb.hpl.hp.com>
cc:
Subject:  RE: Of HTTP-over-SSL/TLS connection persistence



Better head for SSL, since I don't know any browsers that actually support
TLS (MSIE doesn't, I think)...

> -----Original Message-----
> From: hodges@breakaway.Stanford.EDU
> [mailto:hodges@breakaway.Stanford.EDU]On Behalf Of
> Jeff.Hodges@KingsMountain.com
> Sent: Friday, 03 November 2000 23:39
> To: http-wg
> Subject: Of HTTP-over-SSL/TLS connection persistence
>
>
> Ok, so now I'm postulating a server-side gizmo speaking "HTTP 1.0 |
> 1.1"-over-SSL/TLS that tries its best to have such
> connections be persistent.
>
> What do browsers typically do in ~this~ case -- how long
> before they'll
> timeout an idle connection if the user causes it to connect
> and then walks
> away for whatever reason?
>
> thanks,
>
> JeffH
>
>
>






From http-wg-request@cuckoo.hpl.hp.com  Tue Nov  7 10:08:08 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id KAA16343
	for <http-archive@odin.ietf.org>; Tue, 7 Nov 2000 10:08:06 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id PAA16761;
	Tue, 7 Nov 2000 15:06:36 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id PAA11762;
	Tue, 7 Nov 2000 15:06:35 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id PAA18099; Tue, 7 Nov 2000 15:05:45 GMT
Resent-Date: Tue, 7 Nov 2000 15:05:45 GMT
Message-ID: <001601c048cb$b37f4fc0$0b78bfd1@larry>
From: "Larry Masinter" <LMM@acm.org>
To: "HTTP Working Group" <http-wg@hplb.hpl.hp.com>
Subject: Fw: Last Call: On the use of HTTP as a Substrate for Other Protocols to BCP
Date: Tue, 7 Nov 2000 07:02:08 -0800
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Resent-Message-ID: <"9o9_b1.0.mQ4.9f12w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/960
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com
Content-Transfer-Encoding: 7bit

In case you hadn't seen this...

----- Original Message -----
From: "The IESG" <iesg-secretary@ietf.org>
To: <IETF-Announce:>
Sent: Sunday, November 05, 2000 8:35 AM
Subject: Last Call: On the use of HTTP as a Substrate for Other Protocols to
BCP


>
> The IESG has received a request to consider On the use of HTTP as a
> Substrate for Other Protocols <draft-moore-using-http-01.txt> as a
> BCP.  This has been reviewed in the IETF but is not the product of an
> IETF Working Group.
>
> The IESG plans to make a decision in the next few weeks, and solicits
> final comments on this action.  Please send any comments to the
> iesg@ietf.org or ietf@ietf.org mailing lists by December 5, 2000.
>
> Files can be obtained via
> http://www.ietf.org/internet-drafts/draft-moore-using-http-01.txt
>



From http-wg-request@cuckoo.hpl.hp.com  Tue Nov  7 12:46:19 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id MAA26086
	for <http-archive@odin.ietf.org>; Tue, 7 Nov 2000 12:46:18 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id RAA22505;
	Tue, 7 Nov 2000 17:45:38 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id RAA22984;
	Tue, 7 Nov 2000 17:45:36 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id RAA18624; Tue, 7 Nov 2000 17:45:18 GMT
Resent-Date: Tue, 7 Nov 2000 17:45:18 GMT
From: "Joris Dobbelsteen" <joris.dobbelsteen@mail.com>
To: "WWW WG (E-mail)" <http-wg@cuckoo.hpl.hp.com>
Subject: RE: Of HTTP-over-SSL/TLS connection persistence
Date: Tue, 7 Nov 2000 18:43:34 +0100
Message-ID: <000101c048e2$40ba64e0$8c48fea9@Thuis.local>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
In-Reply-To: <OF0D8A775F.245CBCA4-ON8725698F.005BE688@LocalDomain>
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300
Resent-Message-ID: <"Nx49g.0.zY4.j-32w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/961
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by ietf.org id MAA26086

As Julien Pierre said, MSIE probably doesn't support TLS upgrade. Maybe it supports TLS with HTTPS://???

Also TLS is disabled as default. SSL/2.0 and SSL/3.0 are enabled by default (MSIE).

- Joris

> -----Original Message-----
> From: Carl Kugler/Boulder/IBM [mailto:kugler@us.ibm.com]
> Sent: Monday, 06 November 2000 17:45
> To: Joris Dobbelsteen
> Cc: 'http-wg'
> Subject: RE: Of HTTP-over-SSL/TLS connection persistence
> 
> 
> 
> My copy of MSIE 5.50.4134.0600 has a checkbox for "Use TLS 1.0".
> 
>      -Carl
> 
> 
> 
> "Joris Dobbelsteen" <joris.dobbelsteen@mail.com> on 
> 11/05/2000 10:21:53 AM
> 
> To:   "'http-wg'" <http-wg@hplb.hpl.hp.com>
> cc:
> Subject:  RE: Of HTTP-over-SSL/TLS connection persistence
> 
> 
> 
> Better head for SSL, since I don't know any browsers that 
> actually support
> TLS (MSIE doesn't, I think)...
> 
> > -----Original Message-----
> > From: hodges@breakaway.Stanford.EDU
> > [mailto:hodges@breakaway.Stanford.EDU]On Behalf Of
> > Jeff.Hodges@KingsMountain.com
> > Sent: Friday, 03 November 2000 23:39
> > To: http-wg
> > Subject: Of HTTP-over-SSL/TLS connection persistence
> >
> >
> > Ok, so now I'm postulating a server-side gizmo speaking "HTTP 1.0 |
> > 1.1"-over-SSL/TLS that tries its best to have such
> > connections be persistent.
> >
> > What do browsers typically do in ~this~ case -- how long
> > before they'll
> > timeout an idle connection if the user causes it to connect
> > and then walks
> > away for whatever reason?
> >
> > thanks,
> >
> > JeffH
> >
> >
> >
> 
> 
> 
> 
> 



From http-wg-request@cuckoo.hpl.hp.com  Tue Nov  7 17:11:19 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id RAA12665
	for <http-archive@odin.ietf.org>; Tue, 7 Nov 2000 17:11:19 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id WAA28605;
	Tue, 7 Nov 2000 22:10:48 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id WAA09335;
	Tue, 7 Nov 2000 22:10:47 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id WAA19399; Tue, 7 Nov 2000 22:10:32 GMT
Resent-Date: Tue, 7 Nov 2000 22:10:32 GMT
Importance: Normal
Subject: Re: Fw: Last Call: On the use of HTTP as a Substrate for Other Protocols to
 BCP
To: "Larry Masinter" <LMM@acm.org>
Cc: "HTTP Working Group" <http-wg@hplb.hpl.hp.com>, iesg@ietf.org
X-Mailer: Lotus Notes Release 5.0.3 (Intl) 21 March 2000
Message-ID: <OFAC6F6C98.5EC3F385-ON87256990.0078F86A@LocalDomain>
From: "Carl Kugler/Boulder/IBM" <kugler@us.ibm.com>
Date: Tue, 7 Nov 2000 15:09:03 -0700
X-MIMETrack: Serialize by Router on D03NM103/03/M/IBM(Release 5.0.3 (Intl)|21 March 2000) at
 11/07/2000 03:09:05 PM
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Resent-Message-ID: <"GXFbC.0.1l4.Ot72w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/962
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com


I've got a comment.  The draft refers to "Hypertext Transport Protocol
(HTTP)" and talks about using HTTP as "the transport" for RPCs, etc.   I
thought HTTP was supposed to be a transfer protocol, not a transport.
Isn't "HTTP" usually expanded as "Hypertext Transfer Protocol"?  Or is the
distiction between transfer and transport unimportant in this context?

     -Carl


"Larry Masinter" <LMM@acm.org> on 11/07/2000 08:02:08 AM

To:   "HTTP Working Group" <http-wg@hplb.hpl.hp.com>
cc:
Subject:  Fw: Last Call: On the use of HTTP as a Substrate for Other
      Protocols to BCP



In case you hadn't seen this...

----- Original Message -----
From: "The IESG" <iesg-secretary@ietf.org>
To: <IETF-Announce:>
Sent: Sunday, November 05, 2000 8:35 AM
Subject: Last Call: On the use of HTTP as a Substrate for Other Protocols
to
BCP


>
> The IESG has received a request to consider On the use of HTTP as a
> Substrate for Other Protocols <draft-moore-using-http-01.txt> as a
> BCP.  This has been reviewed in the IETF but is not the product of an
> IETF Working Group.
>
> The IESG plans to make a decision in the next few weeks, and solicits
> final comments on this action.  Please send any comments to the
> iesg@ietf.org or ietf@ietf.org mailing lists by December 5, 2000.
>
> Files can be obtained via
> http://www.ietf.org/internet-drafts/draft-moore-using-http-01.txt
>






From http-wg-request@cuckoo.hpl.hp.com  Tue Nov  7 20:32:43 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id UAA02863
	for <http-archive@odin.ietf.org>; Tue, 7 Nov 2000 20:32:42 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id BAA03534;
	Wed, 8 Nov 2000 01:31:50 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id BAA26884;
	Wed, 8 Nov 2000 01:31:47 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id BAA20118; Wed, 8 Nov 2000 01:31:37 GMT
Resent-Date: Wed, 8 Nov 2000 01:31:37 GMT
From: "Tim Coates" <tcoates@dynamics.net>
To: <http-wg@cuckoo.hpl.hp.com>
Subject: Caching Problem with 1.0 and a Proxy Server
Date: Wed, 8 Nov 2000 11:30:20 +1100
Message-ID: <NEBBIHMBBKBFHCINLBBGCEBJCCAA.tcoates@dynamics.net>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Importance: Normal
Resent-Message-ID: <"Byahn.0.Jw4.vpA2w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/963
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com
Content-Transfer-Encoding: 7bit

A small problem to overcome...

We already know the caching problems with 1.0 but....

Firstly, assume that no proxy server is used. A browser send a a request
using HTTP 1.1 protocol. The response it receives from the web server is
also HTTP 1.1. This can be proven viewing the logs provided by a packet
sniffer. The document received by the browser contains 1.1 header for cache
control. The cache control instructions basically force the brower to do a
get each time the user requests the page.

Now... add a proxy server. I had to modify the Windows registry so that the
browser would issue a 1.1 request to the web server (via the proxy). The
browser sends a 1.1 request, but receives a 1.0 response - this is from the
same web server, and I am using the same browser.

What appears to happen is that the proxy server downgrades the protocol
identifier (at least in the response back to the web browser) and forwards
the response containing the 1.1 cache control headers to the browser. The
browser now interprets the response using the 1.0 instructions and the end
result is that the page is caches. If I ask for the same page again (and not
using a forced GET) the page is retrieved from the cache as no GET request
is captured by the packet sniffer.

I have different browser that upon receipt of a response that indicates a
1.0 response, but contains 1.1 headers seems to disregard the protocol
identifier in the response and processes each header instruction received.
The end result is that even though the protocol identifier says it is 1.0,
when a GET is issued, the page is requested from the web server.

Note that in the example given above the same web page was requested, from
the same web server. We know that a proxy server downgrades the response,
but that affects the way the response is also handled by the browser.

Questions:

1. What meaning (other than the obvious) is attached to the protocol
identifier (e.g. HTTP/1.0) that is contained in a browser request or
response?

2. How strictly should a web browser use the protocol identifier in
processing a response from a web server?

Thanks,
Tim C.



From http-wg-request@cuckoo.hpl.hp.com  Tue Nov  7 20:42:25 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id UAA04988
	for <http-archive@odin.ietf.org>; Tue, 7 Nov 2000 20:42:24 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id BAA03759;
	Wed, 8 Nov 2000 01:42:10 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id BAA29062;
	Wed, 8 Nov 2000 01:42:08 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id BAA20238; Wed, 8 Nov 2000 01:42:04 GMT
Resent-Date: Wed, 8 Nov 2000 01:42:04 GMT
From: Jeffrey Mogul <mogul@pa.dec.com>
Message-Id: <200011080140.RAA13136@wera.pa.dec.com>
To: "Tim Coates" <tcoates@dynamics.net>
Cc: <http-wg@cuckoo.hpl.hp.com>
Subject: Re: Caching Problem with 1.0 and a Proxy Server 
In-Reply-To: Your message of "Wed, 08 Nov 2000 11:30:20 +1100."
             <NEBBIHMBBKBFHCINLBBGCEBJCCAA.tcoates@dynamics.net> 
Date: Tue, 07 Nov 2000 17:40:12 -0800
X-Mts: smtp
Resent-Message-ID: <"DpL0n3.0.8y4.izA2w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/964
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com

    1. What meaning (other than the obvious) is attached to the protocol
    identifier (e.g. HTTP/1.0) that is contained in a browser request or
    response?
    
See RFC 2145. "Use and Interpretation of HTTP Version Numbers",
     J. C. Mogul, R. Fielding, J. Gettys, H. Frystyk, May 1997. 

     HTTP request and response messages include an HTTP protocol
     version number. Some confusion exists concerning the proper use
     and interpretation of HTTP version numbers, and concerning
     interoperability of HTTP implementations of different protocol
     versions. This document is an attempt to clarify the situation.

Read it carefully, and your questions should be answered.  A
proxy that converts an HTTP/1.1 request message to an HTTP/1.0
request is almost certainly legal.  I would be more worried
(well, "pissed off" is more accurate) about an HTTP/1.0 proxy
that does NOT label its messages as HTTP/1.0.

    2. How strictly should a web browser use the protocol identifier in
    processing a response from a web server?
    
Whenever an HTTP protocol header could be misinterpreted if
you are using the wrong version of the protocol spec, then
the browser should be very cautious about using it if the
version number seems to be inconsistent.  The HTTP/1.1 spec
(RFC 2616) documents a number of specific cases.

-Jeff



From http-wg-request@cuckoo.hpl.hp.com  Wed Nov  8 09:25:16 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id JAA14339
	for <http-archive@odin.ietf.org>; Wed, 8 Nov 2000 09:25:07 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id OAA20624;
	Wed, 8 Nov 2000 14:23:49 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id OAA25641;
	Wed, 8 Nov 2000 14:23:47 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id OAA00933; Wed, 8 Nov 2000 14:23:27 GMT
Resent-Date: Wed, 8 Nov 2000 14:23:27 GMT
Date: Wed, 8 Nov 2000 09:20:05 -0500 (EST)
From: Dave Kristol <dmk@research.bell-labs.com>
Message-Id: <200011081420.JAA16900@aleatory.research.bell-labs.com>
To: tcoates@dynamics.net
Subject: Re: Caching Problem with 1.0 and a Proxy Server
Cc: http-wg@cuckoo.hpl.hp.com
Resent-Message-ID: <"yS6-S1.0.YE.V7M2w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/965
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com

"Tim Coates" <tcoates@dynamics.net> wrote:
  > A small problem to overcome...
  > 
  > We already know the caching problems with 1.0 but....
  > 
  > Firstly, assume that no proxy server is used. A browser send a a request
  > using HTTP 1.1 protocol. The response it receives from the web server is
  > also HTTP 1.1. This can be proven viewing the logs provided by a packet
  > sniffer. The document received by the browser contains 1.1 header for cache
  > control. The cache control instructions basically force the brower to do a
  > get each time the user requests the page.
  > 
  > Now... add a proxy server. I had to modify the Windows registry so that the
  > browser would issue a 1.1 request to the web server (via the proxy). The
  > browser sends a 1.1 request, but receives a 1.0 response - this is from the
  > same web server, and I am using the same browser.
  > 
  > What appears to happen is that the proxy server downgrades the protocol
  > identifier (at least in the response back to the web browser) and forwards
  > the response containing the 1.1 cache control headers to the browser. The
  > browser now interprets the response using the 1.0 instructions and the end
  > result is that the page is caches. If I ask for the same page again (and not
  > using a forced GET) the page is retrieved from the cache as no GET request
  > is captured by the packet sniffer.

Do you know whether the proxy server is a *1.1* proxy?  More than
likely it is not.  Therefore the proxy won't know about HTTP/1.1, will
send requests as HTTP/1.0 requests because it doesn't know better, and
treat responses accordingly.  And that is why, as Jeff Mogul has already
remarked, the browser should be cautious about how it interprets

Dave Kristol
HTTP/1.1 headers.



From http-wg-request@cuckoo.hpl.hp.com  Wed Nov  8 17:07:57 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id RAA16755
	for <http-archive@odin.ietf.org>; Wed, 8 Nov 2000 17:07:56 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id WAA04732;
	Wed, 8 Nov 2000 22:07:32 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id WAA25939;
	Wed, 8 Nov 2000 22:07:31 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id WAA02711; Wed, 8 Nov 2000 22:06:59 GMT
Resent-Date: Wed, 8 Nov 2000 22:06:59 GMT
From: "Tim Coates" <tcoates@dynamics.net>
To: <http-wg@cuckoo.hpl.hp.com>
Subject: Thanks Re Caching Problem
Date: Thu, 9 Nov 2000 08:05:59 +1100
Message-ID: <NEBBIHMBBKBFHCINLBBGOEBMCCAA.tcoates@dynamics.net>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Resent-Message-ID: <"3EBKe.0.Kg.3wS2w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/966
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com
Content-Transfer-Encoding: 7bit

Thanks to those who provided me with information about the caching problem
with the proxy server...

We were running a number of tests using Netscape, MSIE V5, Opera, Neoplanet
browsers. We knew that the proxy server was dowgrading the response. Based
on the references provided by Jeff and other document Q222064 ("Pragma:
no-cache" Tag May Not Prevent Pages from Being Cached) and Q234067 (Prevent
Caching in Internet Explorer) (from MS Support) explain why the web page was
still being cached by the browser. The strange thing was the pages were not
being cached by Netscape - even with HTTP/1.0. A problem still exists at the
browser end however.

From a security end we know that HTTP/1.0 has flaws (especially when you
introduce a web browser), but it raises the question of how many proxy
server are there which only implement HTTP/1.0. All it seems to takes is a
single proxy server for a response to be downgraded, and for the browser to
receive that downgraded response and (correctly?) ignore any settings that
are not associated with the protocol identifier in the response - such as
Cache-Control headers.

Regards,
Tim C.



From http-wg-request@cuckoo.hpl.hp.com  Wed Nov  8 17:53:24 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id RAA27008
	for <http-archive@odin.ietf.org>; Wed, 8 Nov 2000 17:53:19 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id WAA05715;
	Wed, 8 Nov 2000 22:52:26 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id WAA29093;
	Wed, 8 Nov 2000 22:52:24 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id WAA02911; Wed, 8 Nov 2000 22:52:17 GMT
Resent-Date: Wed, 8 Nov 2000 22:52:17 GMT
Message-ID: <AA1E32BC8A58D411A2CB0050DACEDA43660767@raptor>
From: "Fielding, Roy" <fielding@eBuilt.com>
To: "'Tim Coates'" <tcoates@dynamics.net>, http-wg@cuckoo.hpl.hp.com
Subject: RE: Thanks Re Caching Problem
Date: Wed, 8 Nov 2000 14:50:17 -0800 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Resent-Message-ID: <"5hzuB.0.Sj.XaT2w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/967
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com

> >From a security end we know that HTTP/1.0 has flaws (especially when you
> introduce a web browser), but it raises the question of how many proxy
> server are there which only implement HTTP/1.0. All it seems to takes is a
> single proxy server for a response to be downgraded, and for the browser
to
> receive that downgraded response and (correctly?) ignore any settings that
> are not associated with the protocol identifier in the response - such as
> Cache-Control headers.

Incorrectly.  If a browser supports the Cache-Control header field for
any HTTP/1.x response, then it should support it for every HTTP/1.x
response.
The definition of an HTTP header field is defined by the major number,
not the minor number.

....Roy



From http-wg-request@cuckoo.hpl.hp.com  Thu Nov  9 18:44:11 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id SAA18469
	for <http-archive@odin.ietf.org>; Thu, 9 Nov 2000 18:44:10 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id XAA11743;
	Thu, 9 Nov 2000 23:43:13 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id XAA17713;
	Thu, 9 Nov 2000 23:43:11 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id XAA16243; Thu, 9 Nov 2000 23:42:13 GMT
Resent-Date: Thu, 9 Nov 2000 23:42:13 GMT
From: "Joris Dobbelsteen" <joris.dobbelsteen@mail.com>
To: "WWW WG (E-mail)" <http-wg@cuckoo.hpl.hp.com>
Subject: RE: Thanks Re Caching Problem
Date: Thu, 9 Nov 2000 20:56:16 +0100
Message-ID: <001301c04aa6$64aefcb0$01ff1fac@Thuis.local>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0)
In-Reply-To: <AA1E32BC8A58D411A2CB0050DACEDA43660767@raptor>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300
Resent-Message-ID: <"LKKv8.0.kz3.LPp2w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/968
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by ietf.org id SAA18469

For MSIE there is reason to believe that the browser will cache documents with: "Cache-Control: no-cache", since MSIE's feature "Work Offline". Maybe that "must-revalidate" is never cached by the browser, since commercial banners usually asked to be retreived from the server when working offline.
It is possible that objects are not retreived from cache when working offline is disabled.

To validate this, you should search of ask Microsoft.

And indeed Roy seems to be right. A HTTP/1.1 proxy/server should not serve requests for HTTP/2.0 or later clients, but may do it for a HTTP/1.9 or HTTP/1.10 request according to the HTTP/1.1 RFC. This is outlined in the RFC. This is one failure of the MS-IIS, that serves HTTP/2.0 or later requests, even though it is only a HTTP/1.1 server. Netscape doesn't do this...
Protocol changes that are not compatible with HTTP/1.x should be HTTP/2.0 and not HTTP/1.2 (or any)...

- Joris

> -----Original Message-----
> From: Fielding, Roy [mailto:fielding@eBuilt.com]
> Sent: Wednesday, 08 November 2000 23:50
> To: 'Tim Coates'; http-wg@cuckoo.hpl.hp.com
> Subject: RE: Thanks Re Caching Problem
> 
> 
> > >From a security end we know that HTTP/1.0 has flaws 
> (especially when you
> > introduce a web browser), but it raises the question of how 
> many proxy
> > server are there which only implement HTTP/1.0. All it 
> seems to takes is a
> > single proxy server for a response to be downgraded, and 
> for the browser
> to
> > receive that downgraded response and (correctly?) ignore 
> any settings that
> > are not associated with the protocol identifier in the 
> response - such as
> > Cache-Control headers.
> 
> Incorrectly.  If a browser supports the Cache-Control header field for
> any HTTP/1.x response, then it should support it for every HTTP/1.x
> response.
> The definition of an HTTP header field is defined by the major number,
> not the minor number.
> 
> ....Roy
> 
> 



From http-wg-request@cuckoo.hpl.hp.com  Mon Nov 13 12:41:22 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id MAA13787
	for <http-archive@odin.ietf.org>; Mon, 13 Nov 2000 12:41:19 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id RAA18857;
	Mon, 13 Nov 2000 17:40:07 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id RAA12122;
	Mon, 13 Nov 2000 17:40:05 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id RAA04187; Mon, 13 Nov 2000 17:39:19 GMT
Resent-Date: Mon, 13 Nov 2000 17:39:19 GMT
Message-ID: <004f01bf2ec7$f64bde00$763a36ca@deepak>
From: "http://www.roseindia.net" <jdbc@del2.vsnl.net.in>
To: <http-wg@cuckoo.hpl.hp.com>
Subject: HTTPs
Date: Sun, 14 Nov 1999 23:12:56 +0530
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_004C_01BF2EF5.C95DDBE0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Resent-Message-ID: <"KlSNB1.0.O11.7T24w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/969
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com

This is a multi-part message in MIME format.

------=_NextPart_000_004C_01BF2EF5.C95DDBE0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Dear Friends,

How can is use con.setRequestProperty() to send the url name from where =
the
current page has been loaded.

Thanks in advance

Deepak

------=_NextPart_000_004C_01BF2EF5.C95DDBE0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Dear Friends,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>How can is use con.setRequestProperty() =
to send the=20
url name from where the</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>current page has been =
loaded.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advance</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Deepak</FONT></DIV></BODY></HTML>

------=_NextPart_000_004C_01BF2EF5.C95DDBE0--



From http-wg-request@cuckoo.hpl.hp.com  Wed Nov 15 12:45:02 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id MAA01286
	for <http-archive@odin.ietf.org>; Wed, 15 Nov 2000 12:45:00 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id RAA00509;
	Wed, 15 Nov 2000 17:42:14 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id RAA14394;
	Wed, 15 Nov 2000 17:42:13 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id RAA01190; Wed, 15 Nov 2000 17:41:39 GMT
Resent-Date: Wed, 15 Nov 2000 17:41:39 GMT
From: pdf@bizfon.com
X-Lotus-FromDomain: PCTCO.COM
To: http-wg@cuckoo.hpl.hp.com
Message-ID: <85256998.006156DB.00@Enterprise>
Date: Wed, 15 Nov 2000 12:43:11 -0500
Subject: Push technology
Mime-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline
Resent-Message-ID: <"bvrFP2.0.ZI.Jhi4w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/970
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com



Can anyone tell me where I can find information on this?  I read that HTTP
includes "push" technology to send information, but I can't find any solid
information on the W3 website.  Any help is appreciated.

Thanks,
Peter Foti




From http-wg-request@cuckoo.hpl.hp.com  Tue Nov 28 06:55:45 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id GAA28249
	for <http-archive@odin.ietf.org>; Tue, 28 Nov 2000 06:55:44 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id LAA13994;
	Tue, 28 Nov 2000 11:53:44 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id LAA04683;
	Tue, 28 Nov 2000 11:53:42 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id LAA09183; Tue, 28 Nov 2000 11:52:40 GMT
Resent-Date: Tue, 28 Nov 2000 11:52:40 GMT
X-Originating-IP: [149.170.190.138]
From: "Thomas McLaren" <mclarenthomas@hotmail.com>
To: http-wg@cuckoo.hpl.hp.com
Subject: IPv6 and HTTP (1.2?)
Date: Tue, 28 Nov 2000 11:51:39 
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
Message-ID: <F213sxf4yp8ARf3sllN00006c53@hotmail.com>
X-OriginalArrivalTime: 28 Nov 2000 11:51:39.0821 (UTC) FILETIME=[91A5DDD0:01C05931]
Resent-Message-ID: <"CTaTO1.0.SF2.8ov8w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/971
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com

Can anyone specify the requirements that IPv6 will have for changes to HTTP 
1.1, apart from URL structure?
_____________________________________________________________________________________
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com



From http-wg-request@cuckoo.hpl.hp.com  Tue Nov 28 09:00:35 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id JAA13353
	for <http-archive@odin.ietf.org>; Tue, 28 Nov 2000 09:00:34 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id NAA18118;
	Tue, 28 Nov 2000 13:58:01 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id NAA12676;
	Tue, 28 Nov 2000 13:57:59 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id NAA09666; Tue, 28 Nov 2000 13:57:48 GMT
Resent-Date: Tue, 28 Nov 2000 13:57:48 GMT
Message-ID: <3A23B957.4020307@agranat.com>
Date: Tue, 28 Nov 2000 08:55:35 -0500
From: Scott Lawrence <lawrence@agranat.com>
Organization: Virata  
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.14 i686; en-US; m18) Gecko/20001107 Netscape6/6.0
X-Accept-Language: en
MIME-Version: 1.0
To: Thomas McLaren <mclarenthomas@hotmail.com>
CC: http-wg@cuckoo.hpl.hp.com
Subject: Re: IPv6 and HTTP (1.2?)
References: <F213sxf4yp8ARf3sllN00006c53@hotmail.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Resent-Message-ID: <"tf7dh.0.yM2.Sdx8w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/972
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com
Content-Transfer-Encoding: 7bit

Thomas McLaren wrote:

> Can anyone specify the requirements that IPv6 will have for changes to 
> HTTP 1.1, apart from URL structure?

There aren't any - there is already a spec (sorry, don't have the 
reference handy) on how to write an IPv6 address in a URL.


-- 
Scott Lawrence      Architect            lawrence@agranat.com
Virata       Embedded Web Technology    http://www.emweb.com/



From http-wg-request@cuckoo.hpl.hp.com  Tue Nov 28 11:40:49 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id LAA23764
	for <http-archive@odin.ietf.org>; Tue, 28 Nov 2000 11:40:48 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id QAA24581;
	Tue, 28 Nov 2000 16:40:15 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id QAA24183;
	Tue, 28 Nov 2000 16:40:13 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id QAA10725; Tue, 28 Nov 2000 16:39:56 GMT
Resent-Date: Tue, 28 Nov 2000 16:39:56 GMT
From: "Joris Dobbelsteen" <joris.dobbelsteen@mail.com>
To: "WWW WG (E-mail)" <http-wg@cuckoo.hpl.hp.com>
Subject: RE: IPv6 and HTTP (1.2?)
Date: Tue, 28 Nov 2000 17:37:48 +0100
MIME-Version: 1.0
Message-ID: <006001c05959$8bbe7490$01ff1fac@Thuis.local>
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0)
Content-Type: multipart/signed;
	micalg=SHA1;
	boundary="----=_NextPart_000_0022_01C05961.EC3EEAE0";
	protocol="application/x-pkcs7-signature"
Importance: Normal
In-Reply-To: <3A23B957.4020307@agranat.com>
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Resent-Message-ID: <"1Ny-81.0.Yd2.S_z8w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/973
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com

This is a multi-part message in MIME format.

------=_NextPart_000_0022_01C05961.EC3EEAE0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

That is quite simple and already discussed in the WG.

the standard IPv6 address specifies an IPv6 address. Because there are
always more than one ":", you know it's IPv6.
e.g. "fe80::01" or "fe80::3a3c:2bc:96f5:1060"

If you specify a port, you must send the IPv6 address as:
"[" IPv6-address "]:" port

e.g. "[fe80::01]:8080" or "[fe80::3a3c:2bc:96f5:1060]:81"

So the URL is:

e.g. "http://fe80::01/" or "http://[fe80::3a3c:2bc:96f5:1060]:81/"

for the rest nothing changes. The server (or gateway) just has to
reqognise these addresses...

Please correct me if I'm wrong.....
Send to the WG directly (no CC please), can take a while...


- Joris

> -----Original Message-----
> From: Scott Lawrence [mailto:lawrence@agranat.com]
> Sent: Tuesday 28 November, 2000 14:56
> To: Thomas McLaren
> Cc: http-wg@cuckoo.hpl.hp.com
> Subject: Re: IPv6 and HTTP (1.2?)
> 
> 
> Thomas McLaren wrote:
> 
> > Can anyone specify the requirements that IPv6 will have for 
> changes to 
> > HTTP 1.1, apart from URL structure?
> 
> There aren't any - there is already a spec (sorry, don't have the 
> reference handy) on how to write an IPv6 address in a URL.
> 
> 
> -- 
> Scott Lawrence      Architect            lawrence@agranat.com
> Virata       Embedded Web Technology    http://www.emweb.com/
> 
> 

------=_NextPart_000_0022_01C05961.EC3EEAE0
Content-Type: application/x-pkcs7-signature;
	name="smime.p7s"
Content-Disposition: attachment;
	filename="smime.p7s"
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIII8DCCAo4w
ggH3oAMCAQICAwN9vzANBgkqhkiG9w0BAQQFADCBkjELMAkGA1UEBhMCWkExFTATBgNVBAgTDFdl
c3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMQ8wDQYDVQQKEwZUaGF3dGUxHTAbBgNVBAsT
FENlcnRpZmljYXRlIFNlcnZpY2VzMSgwJgYDVQQDEx9QZXJzb25hbCBGcmVlbWFpbCBSU0EgMjAw
MC44LjMwMB4XDTAwMTAyNjEyMjEwNVoXDTAxMTAyNjEyMjEwNVowTDEfMB0GA1UEAxMWVGhhd3Rl
IEZyZWVtYWlsIE1lbWJlcjEpMCcGCSqGSIb3DQEJARYaam9yaXMuZG9iYmVsc3RlZW5AbWFpbC5j
b20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMZAYuacHTm+k4rimibWE055OY6EUiJeWsny
TfqfhYszNEtORJuGD3ZOxR4M/nGvuftXzx0lhCnLB9O3SCEedTOqZIOIbN388N2t1yul3HgfAgY/
HZtfJKKJsGOL6qJqufOxeCflkdTG9yKZUhMYmh+2ZGCJ1/fPMhwwkc05wqKLAgMBAAGjNzA1MCUG
A1UdEQQeMByBGmpvcmlzLmRvYmJlbHN0ZWVuQG1haWwuY29tMAwGA1UdEwEB/wQCMAAwDQYJKoZI
hvcNAQEEBQADgYEAys9KrmhwWCsNVwPxZyN179OeiiPeJMrtcGZ9MaEQt53Km59eeKVSrjXbimFK
k07q9FkUi1pH2NmsrskqdY7e42wDL/hbbJ15mGIGm49fsQjK6hnrEuiiGGmiEf6ebzsjy2q0qtth
1fqEuBnvZA9z/exutdiA8e4keAEkosq0HmIwggMpMIICkqADAgECAgEMMA0GCSqGSIb3DQEBBAUA
MIHR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b.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id MAA06018
	for <http-archive@odin.ietf.org>; Tue, 28 Nov 2000 12:17:58 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id RAA26463;
	Tue, 28 Nov 2000 17:17:12 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id RAA27510;
	Tue, 28 Nov 2000 17:17:10 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id RAA10993; Tue, 28 Nov 2000 17:17:06 GMT
Resent-Date: Tue, 28 Nov 2000 17:17:06 GMT
From: "Larry Masinter" <LMM@acm.org>
To: "HTTP Working Group" <http-wg@hplb.hpl.hp.com>
Subject: RE: IPv6 and HTTP (1.2?)
Date: Tue, 28 Nov 2000 09:15:15 -0800
Message-ID: <NDBBKEBDLFENBJCGFOIJKEMMDOAA.LMM@acm.org>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
In-Reply-To: <006001c05959$8bbe7490$01ff1fac@Thuis.local>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Resent-Message-ID: <"JYH5u1.0.ih2.HY-8w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/974
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com
Content-Transfer-Encoding: 7bit

In Proposed Standard RFC 2732, IPv6 URLs must always have the
address enclosed in square brackets, whether or not a port
is supplied.

Joris Dobbelsteen wrote:

> That is quite simple and already discussed in the WG.
> 
> the standard IPv6 address specifies an IPv6 address. Because there are
> always more than one ":", you know it's IPv6.
> e.g. "fe80::01" or "fe80::3a3c:2bc:96f5:1060"
> 
> If you specify a port, you must send the IPv6 address as:
> "[" IPv6-address "]:" port
> 
> e.g. "[fe80::01]:8080" or "[fe80::3a3c:2bc:96f5:1060]:81"
> 
> So the URL is:
> 
> e.g. "http://fe80::01/" or "http://[fe80::3a3c:2bc:96f5:1060]:81/"
> 
> for the rest nothing changes. The server (or gateway) just has to
> reqognise these addresses...
> 
> Please correct me if I'm wrong.....
> Send to the WG directly (no CC please), can take a while...
> 
> 
> - Joris
> 
> > -----Original Message-----
> > From: Scott Lawrence [mailto:lawrence@agranat.com]
> > Sent: Tuesday 28 November, 2000 14:56
> > To: Thomas McLaren
> > Cc: http-wg@cuckoo.hpl.hp.com
> > Subject: Re: IPv6 and HTTP (1.2?)
> > 
> > 
> > Thomas McLaren wrote:
> > 
> > > Can anyone specify the requirements that IPv6 will have for 
> > changes to 
> > > HTTP 1.1, apart from URL structure?
> > 
> > There aren't any - there is already a spec (sorry, don't have the 
> > reference handy) on how to write an IPv6 address in a URL.
> > 
> > 
> > -- 
> > Scott Lawrence      Architect            lawrence@agranat.com
> > Virata       Embedded Web Technology    http://www.emweb.com/
> > 
> > 
> 



From http-wg-request@cuckoo.hpl.hp.com  Tue Nov 28 12:50:30 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id MAA15395
	for <http-archive@odin.ietf.org>; Tue, 28 Nov 2000 12:50:30 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id RAA27588;
	Tue, 28 Nov 2000 17:49:47 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id RAA29926;
	Tue, 28 Nov 2000 17:49:45 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id RAA11172; Tue, 28 Nov 2000 17:49:28 GMT
Resent-Date: Tue, 28 Nov 2000 17:49:28 GMT
From: "Tom McLaren" <Tom@mclaren.tc>
To: "HTTP Working Group" <http-wg@hplb.hpl.hp.com>
Subject: RE: IPv6 and HTTP (1.2?)
Date: Tue, 28 Nov 2000 17:36:56 -0000
Message-ID: <MABBIDCNLOOOBDDCFGBLCEEPCAAA.Tom@Mclaren.tc>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
Importance: Normal
In-Reply-To: <NDBBKEBDLFENBJCGFOIJKEMMDOAA.LMM@acm.org>
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Resent-Message-ID: <"se1ys.0.Xk2.e0_8w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/975
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com
Content-Transfer-Encoding: 7bit

How about priority information though? Am I correct in assuming that it will
be specified by the individual application, and is therefore outside of the
scope of HTTP?

- Tom

<previous message follows>

In Proposed Standard RFC 2732, IPv6 URLs must always have the
address enclosed in square brackets, whether or not a port
is supplied.

Joris Dobbelsteen wrote:

> That is quite simple and already discussed in the WG.
>
> the standard IPv6 address specifies an IPv6 address. Because there are
> always more than one ":", you know it's IPv6.
> e.g. "fe80::01" or "fe80::3a3c:2bc:96f5:1060"
>
> If you specify a port, you must send the IPv6 address as:
> "[" IPv6-address "]:" port
>
> e.g. "[fe80::01]:8080" or "[fe80::3a3c:2bc:96f5:1060]:81"
>
> So the URL is:
>
> e.g. "http://fe80::01/" or "http://[fe80::3a3c:2bc:96f5:1060]:81/"
>
> for the rest nothing changes. The server (or gateway) just has to
> reqognise these addresses...
>
> Please correct me if I'm wrong.....
> Send to the WG directly (no CC please), can take a while...
>
>
> - Joris
>
> > -----Original Message-----
> > From: Scott Lawrence [mailto:lawrence@agranat.com]
> > Sent: Tuesday 28 November, 2000 14:56
> > To: Thomas McLaren
> > Cc: http-wg@cuckoo.hpl.hp.com
> > Subject: Re: IPv6 and HTTP (1.2?)
> >
> >
> > Thomas McLaren wrote:
> >
> > > Can anyone specify the requirements that IPv6 will have for
> > changes to
> > > HTTP 1.1, apart from URL structure?
> >
> > There aren't any - there is already a spec (sorry, don't have the
> > reference handy) on how to write an IPv6 address in a URL.
> >
> >
> > --
> > Scott Lawrence      Architect            lawrence@agranat.com
> > Virata       Embedded Web Technology    http://www.emweb.com/
> >
> >
>





From http-wg-request@cuckoo.hpl.hp.com  Wed Nov 29 07:50:00 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id HAA07567
	for <http-archive@odin.ietf.org>; Wed, 29 Nov 2000 07:49:59 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id MAA23447;
	Wed, 29 Nov 2000 12:48:48 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id MAA03903;
	Wed, 29 Nov 2000 12:48:45 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id MAA23137; Wed, 29 Nov 2000 12:48:09 GMT
Resent-Date: Wed, 29 Nov 2000 12:48:09 GMT
From: "Joris Dobbelsteen" <joris.dobbelsteen@mail.com>
To: "WWW WG (E-mail)" <http-wg@cuckoo.hpl.hp.com>
Subject: RE: IPv6 and HTTP (1.2?)
Date: Wed, 29 Nov 2000 13:46:10 +0100
MIME-Version: 1.0
Message-ID: <001e01c05a02$5a59e890$01ff1fac@Thuis.local>
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0)
Content-Type: multipart/signed;
	micalg=SHA1;
	protocol="application/x-pkcs7-signature";
	boundary="----=_NextPart_000_0004_01C05A0A.BAAC7110"
Importance: Normal
In-Reply-To: <MABBIDCNLOOOBDDCFGBLCEEPCAAA.Tom@Mclaren.tc>
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Resent-Message-ID: <"oJiWk1.0.Uf5.8iF9w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/976
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com

This is a multi-part message in MIME format.

------=_NextPart_000_0004_01C05A0A.BAAC7110
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

As far as I know is there no specification that handles this for HTTP.

- Joris

> -----Original Message-----
> From: Tom McLaren [mailto:Tom@Mclaren.tc]
> Sent: Tuesday 28 November, 2000 18:37
> To: HTTP Working Group
> Subject: RE: IPv6 and HTTP (1.2?)
> 
> 
> How about priority information though? Am I correct in 
> assuming that it will
> be specified by the individual application, and is therefore 
> outside of the
> scope of HTTP?
> 
> - Tom
> 
> <previous message follows>
> 
> In Proposed Standard RFC 2732, IPv6 URLs must always have the
> address enclosed in square brackets, whether or not a port
> is supplied.
> 
> Joris Dobbelsteen wrote:
> 
> > That is quite simple and already discussed in the WG.
> >
> > the standard IPv6 address specifies an IPv6 address. 
> Because there are
> > always more than one ":", you know it's IPv6.
> > e.g. "fe80::01" or "fe80::3a3c:2bc:96f5:1060"
> >
> > If you specify a port, you must send the IPv6 address as:
> > "[" IPv6-address "]:" port
> >
> > e.g. "[fe80::01]:8080" or "[fe80::3a3c:2bc:96f5:1060]:81"
> >
> > So the URL is:
> >
> > e.g. "http://fe80::01/" or "http://[fe80::3a3c:2bc:96f5:1060]:81/"
> >
> > for the rest nothing changes. The server (or gateway) just has to
> > reqognise these addresses...
> >
> > Please correct me if I'm wrong.....
> > Send to the WG directly (no CC please), can take a while...
> >
> >
> > - Joris
> >
> > > -----Original Message-----
> > > From: Scott Lawrence [mailto:lawrence@agranat.com]
> > > Sent: Tuesday 28 November, 2000 14:56
> > > To: Thomas McLaren
> > > Cc: http-wg@cuckoo.hpl.hp.com
> > > Subject: Re: IPv6 and HTTP (1.2?)
> > >
> > >
> > > Thomas McLaren wrote:
> > >
> > > > Can anyone specify the requirements that IPv6 will have for
> > > changes to
> > > > HTTP 1.1, apart from URL structure?
> > >
> > > There aren't any - there is already a spec (sorry, don't have the
> > > reference handy) on how to write an IPv6 address in a URL.
> > >
> > >
> > > --
> > > Scott Lawrence      Architect            lawrence@agranat.com
> > > Virata       Embedded Web Technology    http://www.emweb.com/
> > >
> > >
> >
> 
> 
> 
> 

------=_NextPart_000_0004_01C05A0A.BAAC7110
Content-Type: application/x-pkcs7-signature;
	name="smime.p7s"
Content-Disposition: attachment;
	filename="smime.p7s"
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIII8DCCAo4w
ggH3oAMCAQICAwN9vzANBgkqhkiG9w0BAQQFADCBkjELMAkGA1UEBhMCWkExFTATBgNVBAgTDFdl
c3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMQ8wDQYDVQQKEwZUaGF3dGUxHTAbBgNVBAsT
FENlcnRpZmljYXRlIFNlcnZpY2VzMSgwJgYDVQ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
DTAwMTEyOTEyNDYwOVowIwYJKoZIhvcNAQkEMRYEFI5+OhpalH3/aJTgqNmJAb6acK9GMFgGCSqG
SIb3DQEJDzFLMEkwCgYIKoZIhvcNAwcwDgYIKoZIhvcNAwICAgCAMAcGBSsOAwIHMA0GCCqGSIb3
DQMCAgEoMAcGBSsOAwIaMAoGCCqGSIb3DQIFMIGrBgkrBgEEAYI3EAQxgZ0wgZowgZIxCzAJBgNV
BAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEPMA0GA1UE
ChMGVGhhd3RlMR0wGwYDVQQLExRDZXJ0aWZpY2F0ZSBTZXJ2aWNlczEoMCYGA1UEAxMfUGVyc29u
YWwgRnJlZW1haWwgUlNBIDIwMDAuOC4zMAIDA32/MA0GCSqGSIb3DQEBAQUABIGAJxit88Q4dwtc
4N2QNJ7hpqMWqReJIgss1A3GiZc6pfSNTpUu3GI1zjB49MLGm0nfn7ri+VmGWF/U39CYsxWLPMUi
iflQ4ZBwbxHSq+SvW4oEvhs3BaZsikAdSVIyPYUkulo6EmBqEkITVhOVE6x0u67yfgwcQ4Ictvpb
Oq4KeIQAAAAAAAA=

------=_NextPart_000_0004_01C05A0A.BAAC7110--



From http-wg-request@cuckoo.hpl.hp.com  Thu Nov 30 04:32:48 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id EAA29148
	for <http-archive@odin.ietf.org>; Thu, 30 Nov 2000 04:32:48 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id JAA23454;
	Thu, 30 Nov 2000 09:31:31 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id JAA12891;
	Thu, 30 Nov 2000 09:31:29 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id JAA05403; Thu, 30 Nov 2000 09:31:15 GMT
Resent-Date: Thu, 30 Nov 2000 09:31:15 GMT
Date: Thu, 30 Nov 2000 10:31:01 +0100
From: Patrik Carlsson <patrik.x.carlsson@era.ericsson.se>
Subject: Http overhead
Sender: qrappca@mbb1.ericsson.se
To: http-wg@cuckoo.hpl.hp.com
Message-id: <3A261E55.ED1E6626@era.ericsson.se>
MIME-version: 1.0
X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.6 sun4u)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit
X-Accept-Language: en
Resent-Message-ID: <"FUHmf.0.OK1.ZvX9w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/977
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com
Content-Transfer-Encoding: 7bit

Hi!

I am currently working with a traffic model for an IP network. I have a
question about the amount of overhead involved when transfering binary
files over http. As fas as I understood, http handles binary files so no
encoding has to be performed (as for example files over SMTP uses MIME).
So, how many header-bytes does http add in each packet when sending a
binary file from a server to a client?

I hope someone can help me with this.

Thanks,
Patrik






From http-wg-request@cuckoo.hpl.hp.com  Thu Nov 30 05:43:34 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id FAA22592
	for <http-archive@odin.ietf.org>; Thu, 30 Nov 2000 05:43:34 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id KAA26063;
	Thu, 30 Nov 2000 10:43:13 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id KAA17460;
	Thu, 30 Nov 2000 10:43:07 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id KAA05650; Thu, 30 Nov 2000 10:42:58 GMT
Resent-Date: Thu, 30 Nov 2000 10:42:58 GMT
Date: Thu, 30 Nov 2000 11:32:19 +0100 (CET)
From: Patrik Winroth <pwinroth@alteon.com>
Sender: patrik@duva.bluetail.com
To: Patrik Carlsson <patrik.x.carlsson@era.ericsson.se>
cc: http-wg@cuckoo.hpl.hp.com
Subject: Re: Http overhead
In-Reply-To: <3A261E55.ED1E6626@era.ericsson.se>
Message-ID: <Pine.LNX.4.10.10011301119280.18434-100000@duva.bluetail.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Resent-Message-ID: <"QOXQ32.0.CO1.oyY9w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/978
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com

On Thu, 30 Nov 2000, Patrik Carlsson wrote:

> Hi!
> 
> I am currently working with a traffic model for an IP network. I have a
> question about the amount of overhead involved when transfering binary
> files over http. As fas as I understood, http handles binary files so no
> encoding has to be performed (as for example files over SMTP uses MIME).
> So, how many header-bytes does http add in each packet when sending a
> binary file from a server to a client?

Depends on the server, but typically around 256 bytes.
E.g. this instance of Apache response uses 279 bytes:

ab -v 4 http://www.foo.com:81/poweredby.png

HTTP/1.1 200 OK
Date: Thu, 30 Nov 2000 10:21:44 GMT
Server: Apache/1.3.12 (Unix)  (Red Hat/Linux) PHP/3.0.15 mod_perl/1.21
Last-Modified: Wed, 01 Mar 2000 18:37:44 GMT
ETag: "33303-482-38bd6378"
Accept-Ranges: bytes
Content-Length: 1154
Connection: close
Content-Type: image/png

<1154 bytes of binary data>

Cheers,

/Patrik.

--
Patrik Winroth                          <pwinroth@alteon.com>




From http-wg-request@cuckoo.hpl.hp.com  Thu Nov 30 08:54:43 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id IAA11691
	for <http-archive@odin.ietf.org>; Thu, 30 Nov 2000 08:54:41 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id NAA02763;
	Thu, 30 Nov 2000 13:53:59 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id NAA00884;
	Thu, 30 Nov 2000 13:53:49 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id NAA06136; Thu, 30 Nov 2000 13:52:58 GMT
Resent-Date: Thu, 30 Nov 2000 13:52:58 GMT
From: dillon@hns.com
X-Lotus-FromDomain: HNS
Sender: dillon@hns.com
To: Patrik Carlsson <patrik.x.carlsson@era.ericsson.se>
cc: http-wg@cuckoo.hpl.hp.com
Message-ID: <852569A7.004BE238.00@ngw2.hns.com>
Date: Thu, 30 Nov 2000 08:47:08 -0500
Subject: Re: Http overhead
Mime-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline
Resent-Message-ID: <"2rXVY.0.rV1.wkb9w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/979
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com




     You have an HTTP response header (around 250 bytes) which goes
in its own segment and then all succeeding data is sent in TCP segments as a
stream of bytes.
No overhead other than the TCP/IP overhead.

     The latest standard (HTTP 1.1) has provisions for compression and "chunked"
transfers
which change this, but I haven't seen these used in any real-world situations
yet.

     Doug...................




From http-wg-request@cuckoo.hpl.hp.com  Thu Nov 30 09:21:48 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id JAA23097
	for <http-archive@odin.ietf.org>; Thu, 30 Nov 2000 09:21:48 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id OAA04291;
	Thu, 30 Nov 2000 14:20:52 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id OAA02967;
	Thu, 30 Nov 2000 14:20:47 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id OAA06359; Thu, 30 Nov 2000 14:20:43 GMT
Resent-Date: Thu, 30 Nov 2000 14:20:43 GMT
Message-ID: <3A26614F.6050406@agranat.com>
Date: Thu, 30 Nov 2000 09:16:47 -0500
From: Scott Lawrence <lawrence@agranat.com>
Organization: Virata 
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.14 i686; en-US; m18) Gecko/20001107 Netscape6/6.0
X-Accept-Language: en
MIME-Version: 1.0
To: http-wg@cuckoo.hpl.hp.com
CC: dillon@hns.com, Patrik Carlsson <patrik.x.carlsson@era.ericsson.se>
Subject: Re: Http overhead
References: <852569A7.004BE238.00@ngw2.hns.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Resent-Message-ID: <"ElhSf.0.KZ1.x8c9w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/980
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com
Content-Transfer-Encoding: 7bit

dillon@hns.com wrote:

> 
> 
>      You have an HTTP response header (around 250 bytes) which goes
> in its own segment and then all succeeding data is sent in TCP segments as a
> stream of bytes.
> No overhead other than the TCP/IP overhead.
> 
>      The latest standard (HTTP 1.1) has provisions for compression and "chunked"
> transfers
> which change this, but I haven't seen these used in any real-world situations
> yet.

Chunked encoding is frequently used in situations where the server 
might not know the size of the response body at the time it is 
generating headers.  This is often the case for CGI and other 
dynamic interfaces.

If chunked encoding is used, there is a short chunk header that 
preceeds each chunk - no more than 10 bytes; the chunk size is up to 
the server, but is typically either the record size of the buffer it 
is using to read the dynamic content, or the buffer size of its 
network buffers (depending on which memory it is optimizing for).


-- 
Scott Lawrence      Architect            lawrence@agranat.com
Virata       Embedded Web Technology    http://www.emweb.com/



From http-wg-request@cuckoo.hpl.hp.com  Thu Nov 30 10:43:08 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id KAA27854
	for <http-archive@odin.ietf.org>; Thu, 30 Nov 2000 10:43:08 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id PAA07871;
	Thu, 30 Nov 2000 15:42:40 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id PAA08861;
	Thu, 30 Nov 2000 15:42:27 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id PAA06683; Thu, 30 Nov 2000 15:42:13 GMT
Resent-Date: Thu, 30 Nov 2000 15:42:13 GMT
Sender: francis@localhost.localdomain
Message-ID: <3A267604.40F4BA13@ecal.com>
Date: Thu, 30 Nov 2000 10:45:08 -0500
From: John Stracke <francis@ecal.com>
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i586)
X-Accept-Language: en, de, es
MIME-Version: 1.0
To: http-wg@cuckoo.hpl.hp.com
Subject: Re: Http overhead
References: <852569A7.004BE238.00@ngw2.hns.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Resent-Message-ID: <"1GXdD.0.Oe1.LLd9w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/981
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com
Content-Transfer-Encoding: 7bit

dillon@hns.com wrote:

>      The latest standard (HTTP 1.1) has provisions for compression and "chunked"
> transfers which change this, but I haven't seen these used in any real-world
> situations
> yet.

Apache will recognize a file with a ".gz" extension as gzipped, and send the
Content-Encoding: x-gzip line.  Netscape will recognize Content-Encoding: x-gzip,
and uncompress the file.  Unfortunately, at least in my installation (Apache
1.3.14, Red Hat 7), Apache doesn't look at the extension before the ".gz" to get
the content-type; "foo.txt.gz" gets marked as Content-Type: application/x-gzip.

--
/=================================================================\
|John Stracke    | http://www.ecal.com |My opinions are my own.   |
|Chief Scientist |================================================|
|eCal Corp.      |But how do we know destroying the Van Allen belt|
|francis@ecal.com|will kill all life on Earth if we don't try it? |
\=================================================================/





From http-wg-request@cuckoo.hpl.hp.com  Thu Nov 30 11:19:02 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id LAA15233
	for <http-archive@odin.ietf.org>; Thu, 30 Nov 2000 11:19:01 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id QAA10375;
	Thu, 30 Nov 2000 16:18:35 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id QAA13131;
	Thu, 30 Nov 2000 16:18:32 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id QAA06912; Thu, 30 Nov 2000 16:18:27 GMT
Resent-Date: Thu, 30 Nov 2000 16:18:27 GMT
From: "Joris Dobbelsteen" <joris.dobbelsteen@mail.com>
To: "WWW WG (E-mail)" <http-wg@cuckoo.hpl.hp.com>
Subject: RE: Http overhead
Date: Thu, 30 Nov 2000 17:16:20 +0100
MIME-Version: 1.0
Message-ID: <002f01c05ae8$e0e4fdf0$01ff1fac@Thuis.local>
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0)
Content-Type: multipart/signed;
	protocol="application/x-pkcs7-signature";
	micalg=SHA1;
	boundary="----=_NextPart_000_001B_01C05AF1.41794A60"
Importance: Normal
In-Reply-To: <852569A7.004BE238.00@ngw2.hns.com>
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Resent-Message-ID: <"KEevk1.0.wh1.Jtd9w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/982
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com

This is a multi-part message in MIME format.

------=_NextPart_000_001B_01C05AF1.41794A60
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit

Many apache servers send data chunked. Takes a couple bytes (average of
4) for every block transfered. Maybe a total overhead of an additional
20-40 bytes per transfer (maybe less). This is just a guess...


- Joris

> -----Original Message-----
> From: dillon@hns.com [mailto:dillon@hns.com]
> Sent: Thursday 30 November, 2000 14:47
> To: Patrik Carlsson
> Cc: http-wg@cuckoo.hpl.hp.com
> Subject: Re: Http overhead
> 
> 
> 
> 
> 
>      You have an HTTP response header (around 250 bytes) which goes
> in its own segment and then all succeeding data is sent in 
> TCP segments as a
> stream of bytes.
> No overhead other than the TCP/IP overhead.
> 
>      The latest standard (HTTP 1.1) has provisions for 
> compression and "chunked"
> transfers
> which change this, but I haven't seen these used in any 
> real-world situations
> yet.
> 
>      Doug...................
> 
> 
> 

------=_NextPart_000_001B_01C05AF1.41794A60
Content-Type: application/x-pkcs7-signature;
	name="smime.p7s"
Content-Disposition: attachment;
	filename="smime.p7s"
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIII8DCCAo4w
ggH3oAMCAQICAwN9vzANBgkqhkiG9w0BAQQFADCBkjELMAkGA1UEBhMCWkExFTATBgNVBAgTDFdl
c3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMQ8wDQYDVQQKEwZUaGF3dGUxHTAbBgNVBAsT
FENlcnRpZmljYXRlIFNlcnZpY2VzMSgwJgYDVQQDEx9QZXJzb25hbCBGcmVlbWFpbCBSU0EgMjAw
MC44LjMwMB4XDTAwMTAyNjEyMjEwNVoXDTAxMTAyNjEyMjEwNVowTDEfMB0GA1UEAxMWVGhhd3Rl
IEZyZWVtYWlsIE1lbWJlcjEpMCcGCSqGSIb3DQEJARYaam9yaXMuZG9iYmVsc3RlZW5AbWFpbC5j
b20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMZAYuacHTm+k4rimibWE055OY6EUiJeWsny
TfqfhYszNEtORJuGD3ZOxR4M/nGvuftXzx0lhCnLB9O3SCEedTOqZIOIbN388N2t1yul3HgfAgY/
HZtfJKKJsGOL6qJqufOxeCflkdTG9yKZUhMYmh+2ZGCJ1/fPMhwwkc05wqKLAgMBAAGjNzA1MCUG
A1UdEQQeMByBGmpvcmlzLmRvYmJlbHN0ZWVuQG1haWwuY29tMAwGA1UdEwEB/wQCMAAwDQYJ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SCgX3gekwXyfoSkT+ZLSaq3fVyIbOLL1Mn2x/qRJOY7SeMbNx3z0l84
Hl6BD4GF5SAXskEsTg16KNnwBQO3+ce+GM85qzunsDYASqOmvlk3AQAOVwtSS31NlR+FcaIuARhQ
OYYegvMAAAAAAAA=

------=_NextPart_000_001B_01C05AF1.41794A60--



From http-wg-request@cuckoo.hpl.hp.com  Thu Nov 30 13:25:12 2000
Received: from hplb.hpl.hp.com (hplb-temp.hpl.hp.com [192.6.10.50])
	by ietf.org (8.9.1a/8.9.1a) with SMTP id NAA11052
	for <http-archive@odin.ietf.org>; Thu, 30 Nov 2000 13:25:08 -0500 (EST)
Received: from otter.hpl.hp.com (otter.hpl.hp.com [15.144.59.2])
	by hplb.hpl.hp.com (8.9.3/8.8.6 HPLabs Bristol Relay) with ESMTP id SAA14766;
	Thu, 30 Nov 2000 18:23:22 GMT
Received: from cuckoo.hpl.hp.com (cuckoo.hpl.hp.com [15.144.30.127])
	by otter.hpl.hp.com (8.9.3/HP-Labs Bristol Internal Mail Hub) with ESMTP id SAA22301;
	Thu, 30 Nov 2000 18:23:20 GMT
Received: (from procmail@localhost) by cuckoo.hpl.hp.com (8.7.6/8.7.3 TIS 5.0) id SAA07427; Thu, 30 Nov 2000 18:23:03 GMT
Resent-Date: Thu, 30 Nov 2000 18:23:03 GMT
Date: Thu, 30 Nov 2000 10:11:39 -0800
From: Mark Nottingham <mnot@mnot.net>
To: dillon@hns.com
Cc: Patrik Carlsson <patrik.x.carlsson@era.ericsson.se>,
        http-wg@cuckoo.hpl.hp.com
Subject: Re: Http overhead
Message-ID: <20001130101138.A21990@mnot.net>
References: <852569A7.004BE238.00@ngw2.hns.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <852569A7.004BE238.00@ngw2.hns.com>; from dillon@hns.com on Thu, Nov 30, 2000 at 08:47:08AM -0500
Resent-Message-ID: <"I3Y2u2.0.0q1.7if9w"@cuckoo>
Resent-From: http-wg@cuckoo.hpl.hp.com
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/983
X-Loop: http-wg@cuckoo.hpl.hp.com
Precedence: list
Resent-Sender: http-wg-request@cuckoo.hpl.hp.com



Almost all modern browsers support content-encoding (gzip, for example), and
most servers can be pummelled into serving compressed content; actually,
I've seen a lot of activity around this recently, with vendors releasing
products to faclilitate compression on the server, or to move it to an
intermediary. 

While not many Web sites are using compression, the number is growing, and
I've heard rumors of some Big sites playing with it on home pages, etc.
(haven't checked recently).

I've also heard rumors that browsers are starting to support
transfer-encoding.


<plug>see http://www.mnot.net/cgi_buffer/</plug>



On Thu, Nov 30, 2000 at 08:47:08AM -0500, dillon@hns.com wrote:
> 
> 
> 
>      You have an HTTP response header (around 250 bytes) which goes in its
> own segment and then all succeeding data is sent in TCP segments as a
> stream of bytes. No overhead other than the TCP/IP overhead.
> 
>      The latest standard (HTTP 1.1) has provisions for compression and
> "chunked" transfers which change this, but I haven't seen these used in
> any real-world situations yet.
> 
>      Doug...................
> 
> 

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



