Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

IIS6 not sending "Connection" header

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  Doubts on IIS 5  
Author Message
Pierre Bru

External


Since: Aug 28, 2006
Posts: 9



(Msg. 1) Posted: Fri Sep 08, 2006 3:48 pm
Post subject: IIS6 not sending "Connection" header
Archived from groups: microsoft>public>inetserver>iis (more info?)

hi,

I have ASP scripts on a Win2K3/II6 server with persistent connections
activated.

when a browser (IE6, FF1.5) sends a HTTP/1.1 request containing a
"Connection: Keep-Alive", the server answers with a 200 answer but with
neither "Connection: Keep-Alive" nor "Connection: Close" header (should
be a "Connection: Close" as the answer is complete)

is it to the ASP script to add the Connection header ? or is there some
setting in IIS ?

TIA,
Pierre.

 >> Stay informed about: IIS6 not sending "Connection" header 
Back to top
Login to vote
Anthony Jones

External


Since: Jan 28, 2006
Posts: 170



(Msg. 2) Posted: Fri Sep 08, 2006 3:48 pm
Post subject: Re: IIS6 not sending "Connection" header [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Pierre Bru" <Pierre.Bru.TakeThisOut@spotimage.fr> wrote in message
news:%23UUHJ200GHA.4016@TK2MSFTNGP02.phx.gbl...
> hi,
>
> I have ASP scripts on a Win2K3/II6 server with persistent connections
> activated.
>
> when a browser (IE6, FF1.5) sends a HTTP/1.1 request containing a
> "Connection: Keep-Alive", the server answers with a 200 answer but with
> neither "Connection: Keep-Alive" nor "Connection: Close" header (should
> be a "Connection: Close" as the answer is complete)
>

Why do you believe that the response should include a Connection: Close
header. What would be the point in client requesting a Keep-Alive (which is
actually the default in http/1.1 anyway) if the server sent a Connection:
Close after the response?

> is it to the ASP script to add the Connection header ? or is there some
> setting in IIS ?
>
> TIA,
> Pierre.

 >> Stay informed about: IIS6 not sending "Connection" header 
Back to top
Login to vote
wadeh

External


Since: Sep 03, 2003
Posts: 115



(Msg. 3) Posted: Fri Sep 08, 2006 3:48 pm
Post subject: Re: IIS6 not sending "Connection" header [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Pierre,

IIS is doing the right thing here. Per RFC2616 (the HTTP/1.1 spec), the
absence of a Connection header means that the connection will be kept alive.
If the IIS server were going to close the connection, then it would send a
"Connection: close" header in the response.

Note that HTTP/1.0 (RFC1945 if I remember right) is exactly the opposite.
The absence of a Connection header indicates that the server will close the
connection. In this case, IIS would be setting a "Connection: keep-alive"
header if it is going to keep the connection open.

Also note that the connection response headers are completely managed by
IIS. You should never add a connection header to your response, or you
introduce the possibility of breaking the response.

Thank you,
-Wade A. Hilmo,
-Microsoft

"Pierre Bru" <Pierre.Bru.TakeThisOut@spotimage.fr> wrote in message
news:#UUHJ200GHA.4016@TK2MSFTNGP02.phx.gbl...
> hi,
>
> I have ASP scripts on a Win2K3/II6 server with persistent connections
> activated.
>
> when a browser (IE6, FF1.5) sends a HTTP/1.1 request containing a
> "Connection: Keep-Alive", the server answers with a 200 answer but with
> neither "Connection: Keep-Alive" nor "Connection: Close" header (should
> be a "Connection: Close" as the answer is complete)
>
> is it to the ASP script to add the Connection header ? or is there some
> setting in IIS ?
>
> TIA,
> Pierre.
 >> Stay informed about: IIS6 not sending "Connection" header 
Back to top
Login to vote
Pierre Bru

External


Since: Aug 28, 2006
Posts: 9



(Msg. 4) Posted: Fri Sep 08, 2006 4:49 pm
Post subject: Re: IIS6 not sending "Connection" header [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Anthony Jones wrote:
> "Pierre Bru" <Pierre.Bru.DeleteThis@spotimage.fr> wrote in message
> news:%23UUHJ200GHA.4016@TK2MSFTNGP02.phx.gbl...
>> hi,
>>
>> I have ASP scripts on a Win2K3/II6 server with persistent connections
>> activated.
>>
>> when a browser (IE6, FF1.5) sends a HTTP/1.1 request containing a
>> "Connection: Keep-Alive", the server answers with a 200 answer but with
>> neither "Connection: Keep-Alive" nor "Connection: Close" header (should
>> be a "Connection: Close" as the answer is complete)
>>
>
> Why do you believe that the response should include a Connection: Close
> header. What would be the point in client requesting a Keep-Alive (which is
> actually the default in http/1.1 anyway) if the server sent a Connection:
> Close after the response?

when one connect directly to the server, the browsers behave as
expected, but when one connect thru some proxy, the proxy add a
Connection: Keep-Alive into the headers and the browsers wait up to the
value of Keep-Alive header (FF1.5) or infinitely (IE6) before displaying
what the server answered

>> is it to the ASP script to add the Connection header ? or is there some
>> setting in IIS ?
>>
>> TIA,
>> Pierre.
>
>
 >> Stay informed about: IIS6 not sending "Connection" header 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]