|
|
|
date: 27 Feb 2006 12:07:11 -0800,
group: microsoft.public.platformsdk.internet.server.isapi-dev
back
Re: IIS 6.0 and Connection Keep Alive
Can you give the IIS configuration as well as exact request that triggers
this? In particular, the applicable ScriptMap setting for the specific URL,
any ISAPI Filters installed globally/per-site, as well as the requested URL
+ request headers.
It is possible for middleware running on IIS to make it generate such
responses.
For static files, IIS static file handler knows and sends the content-length
header. So, I suspect that you have something configured on IIS which is
altering this behavior - I suspect your pages are not being handled by the
IIS static file handler but some other ISAPI.
--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Chandar" wrote in message
news:1141070831.914852.110440@j33g2000cwa.googlegroups.com...
> Hello All,
>
> My client has a IIS 6.0 with some static pages configured in it. My
> application is a middleware that sits in between the browser client and
> the IIS 6.0 Web server.
>
> Now, my problem is that IIS 6.0 is always sending Responses without
> Content-Length , but with Connection: Keep-Alive header set. And to top
> it all, there is no chunked encoding either. Because of this, my
> middleware is not able to decide on whether the response is completely
> sent or not.
>
> Why is this happening in IIS 6.0 ? Can this be patched ? If yes, how ?
>
> Is not that a deviation from standard ? How is this generally handled
> by other middlewares ?
>
> Any help and clues on this would be appreciated.
>
> Regards
> Chandar
>
date: Mon, 27 Feb 2006 12:57:29 -0800
author: David Wang [Msft]
Re: IIS 6.0 and Connection Keep Alive
Hi Wang,
I am told that the responses, though static,are served by a Servlet
engine.
Here is a sample request and its response header.
Would this mean that the ISAPI filter configuration has a problem ?
I am a novice on IIS and i am not sure how it works. Can you give me a
sample Script
map setting that may do this ?
Since i dont have access to the webserver settings i am not able to get
the IIS settings.
I am doubly sure that the middleware (it runs outside the IIS) does not
do anything with this since the same response is sent even when we
access it directly without the middleware.
GET /servlet/nbTest HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, application/vnd.ms-powerpoint,
application/vnd.ms-excel, application/msword, */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; DigExt)
Host: 192.168.2.69
Connection: Keep-Alive
HTTP/1.1 200 OK
Date: Tue, 28 Feb 2006 01:05:55 GMT
Server: Microsoft-IIS/6.0
Content-Type: text/html
Thanks
Chandar
David Wang [Msft] wrote:
> Can you give the IIS configuration as well as exact request that triggers
> this? In particular, the applicable ScriptMap setting for the specific URL,
> any ISAPI Filters installed globally/per-site, as well as the requested URL
> + request headers.
>
> It is possible for middleware running on IIS to make it generate such
> responses.
>
> For static files, IIS static file handler knows and sends the content-length
> header. So, I suspect that you have something configured on IIS which is
> altering this behavior - I suspect your pages are not being handled by the
> IIS static file handler but some other ISAPI.
>
> --
> //David
> IIS
> http://blogs.msdn.com/David.Wang
> This posting is provided "AS IS" with no warranties, and confers no rights.
> //
>
> "Chandar" wrote in message
> news:1141070831.914852.110440@j33g2000cwa.googlegroups.com...
> > Hello All,
> >
> > My client has a IIS 6.0 with some static pages configured in it. My
> > application is a middleware that sits in between the browser client and
> > the IIS 6.0 Web server.
> >
> > Now, my problem is that IIS 6.0 is always sending Responses without
> > Content-Length , but with Connection: Keep-Alive header set. And to top
> > it all, there is no chunked encoding either. Because of this, my
> > middleware is not able to decide on whether the response is completely
> > sent or not.
> >
> > Why is this happening in IIS 6.0 ? Can this be patched ? If yes, how ?
> >
> > Is not that a deviation from standard ? How is this generally handled
> > by other middlewares ?
> >
> > Any help and clues on this would be appreciated.
> >
> > Regards
> > Chandar
> >
date: 27 Feb 2006 17:08:04 -0800
author: Chandar
Re: IIS 6.0 and Connection Keep Alive
http://blogs.msdn.com/david.wang/archive/2006/02/28/Why_IIS6_can_send_invalid_HTTP_Responses.aspx
--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Chandar" wrote in message
news:1141088884.725300.311730@p10g2000cwp.googlegroups.com...
> Hi Wang,
>
> I am told that the responses, though static,are served by a Servlet
> engine.
>
> Here is a sample request and its response header.
>
> Would this mean that the ISAPI filter configuration has a problem ?
>
> I am a novice on IIS and i am not sure how it works. Can you give me a
> sample Script
> map setting that may do this ?
>
> Since i dont have access to the webserver settings i am not able to get
> the IIS settings.
>
> I am doubly sure that the middleware (it runs outside the IIS) does not
> do anything with this since the same response is sent even when we
> access it directly without the middleware.
>
> GET /servlet/nbTest HTTP/1.1
> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> application/x-shockwave-flash, application/vnd.ms-powerpoint,
> application/vnd.ms-excel, application/msword, */*
> Accept-Language: en-us
> Accept-Encoding: gzip, deflate
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; DigExt)
> Host: 192.168.2.69
> Connection: Keep-Alive
>
> HTTP/1.1 200 OK
> Date: Tue, 28 Feb 2006 01:05:55 GMT
> Server: Microsoft-IIS/6.0
> Content-Type: text/html
>
> Thanks
> Chandar
>
> David Wang [Msft] wrote:
>
>> Can you give the IIS configuration as well as exact request that triggers
>> this? In particular, the applicable ScriptMap setting for the specific
>> URL,
>> any ISAPI Filters installed globally/per-site, as well as the requested
>> URL
>> + request headers.
>>
>> It is possible for middleware running on IIS to make it generate such
>> responses.
>>
>> For static files, IIS static file handler knows and sends the
>> content-length
>> header. So, I suspect that you have something configured on IIS which is
>> altering this behavior - I suspect your pages are not being handled by
>> the
>> IIS static file handler but some other ISAPI.
>>
>> --
>> //David
>> IIS
>> http://blogs.msdn.com/David.Wang
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>> //
>>
>> "Chandar" wrote in message
>> news:1141070831.914852.110440@j33g2000cwa.googlegroups.com...
>> > Hello All,
>> >
>> > My client has a IIS 6.0 with some static pages configured in it. My
>> > application is a middleware that sits in between the browser client and
>> > the IIS 6.0 Web server.
>> >
>> > Now, my problem is that IIS 6.0 is always sending Responses without
>> > Content-Length , but with Connection: Keep-Alive header set. And to top
>> > it all, there is no chunked encoding either. Because of this, my
>> > middleware is not able to decide on whether the response is completely
>> > sent or not.
>> >
>> > Why is this happening in IIS 6.0 ? Can this be patched ? If yes, how ?
>> >
>> > Is not that a deviation from standard ? How is this generally handled
>> > by other middlewares ?
>> >
>> > Any help and clues on this would be appreciated.
>> >
>> > Regards
>> > Chandar
>> >
>
date: Mon, 27 Feb 2006 19:57:21 -0800
author: David Wang [Msft]
Re: IIS 6.0 and Connection Keep Alive
Hi Wang,
The link is not working !
Are you on the way to posting a note on this !
Thanks in advance.
Regards
Chandar
David Wang [Msft] wrote:
> http://blogs.msdn.com/david.wang/archive/2006/02/28/Why_IIS6_can_send_invalid_HTTP_Responses.aspx
>
> --
> //David
> IIS
> http://blogs.msdn.com/David.Wang
> This posting is provided "AS IS" with no warranties, and confers no rights.
> //
>
> "Chandar" wrote in message
> news:1141088884.725300.311730@p10g2000cwp.googlegroups.com...
> > Hi Wang,
> >
> > I am told that the responses, though static,are served by a Servlet
> > engine.
> >
> > Here is a sample request and its response header.
> >
> > Would this mean that the ISAPI filter configuration has a problem ?
> >
> > I am a novice on IIS and i am not sure how it works. Can you give me a
> > sample Script
> > map setting that may do this ?
> >
> > Since i dont have access to the webserver settings i am not able to get
> > the IIS settings.
> >
> > I am doubly sure that the middleware (it runs outside the IIS) does not
> > do anything with this since the same response is sent even when we
> > access it directly without the middleware.
> >
> > GET /servlet/nbTest HTTP/1.1
> > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> > application/x-shockwave-flash, application/vnd.ms-powerpoint,
> > application/vnd.ms-excel, application/msword, */*
> > Accept-Language: en-us
> > Accept-Encoding: gzip, deflate
> > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; DigExt)
> > Host: 192.168.2.69
> > Connection: Keep-Alive
> >
> > HTTP/1.1 200 OK
> > Date: Tue, 28 Feb 2006 01:05:55 GMT
> > Server: Microsoft-IIS/6.0
> > Content-Type: text/html
> >
> > Thanks
> > Chandar
> >
> > David Wang [Msft] wrote:
> >
> >> Can you give the IIS configuration as well as exact request that triggers
> >> this? In particular, the applicable ScriptMap setting for the specific
> >> URL,
> >> any ISAPI Filters installed globally/per-site, as well as the requested
> >> URL
> >> + request headers.
> >>
> >> It is possible for middleware running on IIS to make it generate such
> >> responses.
> >>
> >> For static files, IIS static file handler knows and sends the
> >> content-length
> >> header. So, I suspect that you have something configured on IIS which is
> >> altering this behavior - I suspect your pages are not being handled by
> >> the
> >> IIS static file handler but some other ISAPI.
> >>
> >> --
> >> //David
> >> IIS
> >> http://blogs.msdn.com/David.Wang
> >> This posting is provided "AS IS" with no warranties, and confers no
> >> rights.
> >> //
> >>
> >> "Chandar" wrote in message
> >> news:1141070831.914852.110440@j33g2000cwa.googlegroups.com...
> >> > Hello All,
> >> >
> >> > My client has a IIS 6.0 with some static pages configured in it. My
> >> > application is a middleware that sits in between the browser client and
> >> > the IIS 6.0 Web server.
> >> >
> >> > Now, my problem is that IIS 6.0 is always sending Responses without
> >> > Content-Length , but with Connection: Keep-Alive header set. And to top
> >> > it all, there is no chunked encoding either. Because of this, my
> >> > middleware is not able to decide on whether the response is completely
> >> > sent or not.
> >> >
> >> > Why is this happening in IIS 6.0 ? Can this be patched ? If yes, how ?
> >> >
> >> > Is not that a deviation from standard ? How is this generally handled
> >> > by other middlewares ?
> >> >
> >> > Any help and clues on this would be appreciated.
> >> >
> >> > Regards
> >> > Chandar
> >> >
> >
date: 27 Feb 2006 22:28:11 -0800
author: Chandar
Re: IIS 6.0 and Connection Keep Alive
It is published now (2/28), as shown in its URL.
--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Chandar" wrote in message
news:1141108091.477001.31550@t39g2000cwt.googlegroups.com...
> Hi Wang,
>
> The link is not working !
>
> Are you on the way to posting a note on this !
>
> Thanks in advance.
>
> Regards
> Chandar
> David Wang [Msft] wrote:
>
>> http://blogs.msdn.com/david.wang/archive/2006/02/28/Why_IIS6_can_send_invalid_HTTP_Responses.aspx
>>
>> --
>> //David
>> IIS
>> http://blogs.msdn.com/David.Wang
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>> //
>>
>> "Chandar" wrote in message
>> news:1141088884.725300.311730@p10g2000cwp.googlegroups.com...
>> > Hi Wang,
>> >
>> > I am told that the responses, though static,are served by a Servlet
>> > engine.
>> >
>> > Here is a sample request and its response header.
>> >
>> > Would this mean that the ISAPI filter configuration has a problem ?
>> >
>> > I am a novice on IIS and i am not sure how it works. Can you give me a
>> > sample Script
>> > map setting that may do this ?
>> >
>> > Since i dont have access to the webserver settings i am not able to get
>> > the IIS settings.
>> >
>> > I am doubly sure that the middleware (it runs outside the IIS) does not
>> > do anything with this since the same response is sent even when we
>> > access it directly without the middleware.
>> >
>> > GET /servlet/nbTest HTTP/1.1
>> > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
>> > application/x-shockwave-flash, application/vnd.ms-powerpoint,
>> > application/vnd.ms-excel, application/msword, */*
>> > Accept-Language: en-us
>> > Accept-Encoding: gzip, deflate
>> > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; DigExt)
>> > Host: 192.168.2.69
>> > Connection: Keep-Alive
>> >
>> > HTTP/1.1 200 OK
>> > Date: Tue, 28 Feb 2006 01:05:55 GMT
>> > Server: Microsoft-IIS/6.0
>> > Content-Type: text/html
>> >
>> > Thanks
>> > Chandar
>> >
>> > David Wang [Msft] wrote:
>> >
>> >> Can you give the IIS configuration as well as exact request that
>> >> triggers
>> >> this? In particular, the applicable ScriptMap setting for the specific
>> >> URL,
>> >> any ISAPI Filters installed globally/per-site, as well as the
>> >> requested
>> >> URL
>> >> + request headers.
>> >>
>> >> It is possible for middleware running on IIS to make it generate such
>> >> responses.
>> >>
>> >> For static files, IIS static file handler knows and sends the
>> >> content-length
>> >> header. So, I suspect that you have something configured on IIS which
>> >> is
>> >> altering this behavior - I suspect your pages are not being handled by
>> >> the
>> >> IIS static file handler but some other ISAPI.
>> >>
>> >> --
>> >> //David
>> >> IIS
>> >> http://blogs.msdn.com/David.Wang
>> >> This posting is provided "AS IS" with no warranties, and confers no
>> >> rights.
>> >> //
>> >>
>> >> "Chandar" wrote in message
>> >> news:1141070831.914852.110440@j33g2000cwa.googlegroups.com...
>> >> > Hello All,
>> >> >
>> >> > My client has a IIS 6.0 with some static pages configured in it. My
>> >> > application is a middleware that sits in between the browser client
>> >> > and
>> >> > the IIS 6.0 Web server.
>> >> >
>> >> > Now, my problem is that IIS 6.0 is always sending Responses without
>> >> > Content-Length , but with Connection: Keep-Alive header set. And to
>> >> > top
>> >> > it all, there is no chunked encoding either. Because of this, my
>> >> > middleware is not able to decide on whether the response is
>> >> > completely
>> >> > sent or not.
>> >> >
>> >> > Why is this happening in IIS 6.0 ? Can this be patched ? If yes, how
>> >> > ?
>> >> >
>> >> > Is not that a deviation from standard ? How is this generally
>> >> > handled
>> >> > by other middlewares ?
>> >> >
>> >> > Any help and clues on this would be appreciated.
>> >> >
>> >> > Regards
>> >> > Chandar
>> >> >
>> >
>
date: Tue, 28 Feb 2006 00:58:39 -0800
author: David Wang [Msft]
Re: IIS 6.0 and Connection Keep Alive
Hi Wang,
Thank you very much for the detailed note. I am sure it will help us
resolve the conflict.
Regards
Chandar
David Wang [Msft] wrote:
> It is published now (2/28), as shown in its URL.
>
> --
> //David
> IIS
> http://blogs.msdn.com/David.Wang
> This posting is provided "AS IS" with no warranties, and confers no rights.
> //
>
> "Chandar" wrote in message
> news:1141108091.477001.31550@t39g2000cwt.googlegroups.com...
> > Hi Wang,
> >
> > The link is not working !
> >
> > Are you on the way to posting a note on this !
> >
> > Thanks in advance.
> >
> > Regards
> > Chandar
> > David Wang [Msft] wrote:
> >
> >> http://blogs.msdn.com/david.wang/archive/2006/02/28/Why_IIS6_can_send_invalid_HTTP_Responses.aspx
> >>
> >> --
> >> //David
> >> IIS
> >> http://blogs.msdn.com/David.Wang
> >> This posting is provided "AS IS" with no warranties, and confers no
> >> rights.
> >> //
> >>
> >> "Chandar" wrote in message
> >> news:1141088884.725300.311730@p10g2000cwp.googlegroups.com...
> >> > Hi Wang,
> >> >
> >> > I am told that the responses, though static,are served by a Servlet
> >> > engine.
> >> >
> >> > Here is a sample request and its response header.
> >> >
> >> > Would this mean that the ISAPI filter configuration has a problem ?
> >> >
> >> > I am a novice on IIS and i am not sure how it works. Can you give me a
> >> > sample Script
> >> > map setting that may do this ?
> >> >
> >> > Since i dont have access to the webserver settings i am not able to get
> >> > the IIS settings.
> >> >
> >> > I am doubly sure that the middleware (it runs outside the IIS) does not
> >> > do anything with this since the same response is sent even when we
> >> > access it directly without the middleware.
> >> >
> >> > GET /servlet/nbTest HTTP/1.1
> >> > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> >> > application/x-shockwave-flash, application/vnd.ms-powerpoint,
> >> > application/vnd.ms-excel, application/msword, */*
> >> > Accept-Language: en-us
> >> > Accept-Encoding: gzip, deflate
> >> > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; DigExt)
> >> > Host: 192.168.2.69
> >> > Connection: Keep-Alive
> >> >
> >> > HTTP/1.1 200 OK
> >> > Date: Tue, 28 Feb 2006 01:05:55 GMT
> >> > Server: Microsoft-IIS/6.0
> >> > Content-Type: text/html
> >> >
> >> > Thanks
> >> > Chandar
> >> >
> >> > David Wang [Msft] wrote:
> >> >
> >> >> Can you give the IIS configuration as well as exact request that
> >> >> triggers
> >> >> this? In particular, the applicable ScriptMap setting for the specific
> >> >> URL,
> >> >> any ISAPI Filters installed globally/per-site, as well as the
> >> >> requested
> >> >> URL
> >> >> + request headers.
> >> >>
> >> >> It is possible for middleware running on IIS to make it generate such
> >> >> responses.
> >> >>
> >> >> For static files, IIS static file handler knows and sends the
> >> >> content-length
> >> >> header. So, I suspect that you have something configured on IIS which
> >> >> is
> >> >> altering this behavior - I suspect your pages are not being handled by
> >> >> the
> >> >> IIS static file handler but some other ISAPI.
> >> >>
> >> >> --
> >> >> //David
> >> >> IIS
> >> >> http://blogs.msdn.com/David.Wang
> >> >> This posting is provided "AS IS" with no warranties, and confers no
> >> >> rights.
> >> >> //
> >> >>
> >> >> "Chandar" wrote in message
> >> >> news:1141070831.914852.110440@j33g2000cwa.googlegroups.com...
> >> >> > Hello All,
> >> >> >
> >> >> > My client has a IIS 6.0 with some static pages configured in it. My
> >> >> > application is a middleware that sits in between the browser client
> >> >> > and
> >> >> > the IIS 6.0 Web server.
> >> >> >
> >> >> > Now, my problem is that IIS 6.0 is always sending Responses without
> >> >> > Content-Length , but with Connection: Keep-Alive header set. And to
> >> >> > top
> >> >> > it all, there is no chunked encoding either. Because of this, my
> >> >> > middleware is not able to decide on whether the response is
> >> >> > completely
> >> >> > sent or not.
> >> >> >
> >> >> > Why is this happening in IIS 6.0 ? Can this be patched ? If yes, how
> >> >> > ?
> >> >> >
> >> >> > Is not that a deviation from standard ? How is this generally
> >> >> > handled
> >> >> > by other middlewares ?
> >> >> >
> >> >> > Any help and clues on this would be appreciated.
> >> >> >
> >> >> > Regards
> >> >> > Chandar
> >> >> >
> >> >
> >
date: 28 Feb 2006 02:03:06 -0800
author: Chandar
|
|