Re: [twsocket] HttpSrv closing HTTP/1.1 connections without Connection header

2007-05-16 Thread Primož Gabrijelčič
closing HTTP/1.1 connections without Connection header Yes I changed that part in our descendent class as well. I did not notice it contained a RFC-break--I just thought it would be better this way, so did not report it. Best Regards, SZ On 5/15/07, Primož Gabrijelčič <[EMAIL PROTECTED]>

Re: [twsocket] HttpSrv closing HTTP/1.1 connections without Connection header

2007-05-15 Thread Fastream Technologies
Yes I changed that part in our descendent class as well. I did not notice it contained a RFC-break--I just thought it would be better this way, so did not report it. Best Regards, SZ On 5/15/07, Primož Gabrijelčič <[EMAIL PROTECTED]> wrote: > > > What would happen with your code if the version

Re: [twsocket] HttpSrv closing HTTP/1.1 connections without Connection header

2007-05-15 Thread Primož Gabrijelčič
> What would happen with your code if the version is HTTP/0.9? > These are clients written before the HTTP1.0 RFC! I think you > need to parse the exact version number and also consider the > future versions as well: Exactly because of future versions I was testing against '1.0' and not '1.1'.

Re: [twsocket] HttpSrv closing HTTP/1.1 connections without Connection header

2007-05-15 Thread Fastream Technologies
What would happen with your code if the version is HTTP/0.9? These are clients written before the HTTP1.0 RFC! I think you need to parse the exact version number and also consider the future versions as well: pseudo code: if FVersion > 'HTTP/1.0' then FKeepAlive := true; Regards, SZ On

[twsocket] HttpSrv closing HTTP/1.1 connections without Connection header

2007-05-15 Thread Primož Gabrijelčič
Hello, everybody. Does anybody know why does HttpSrv (1.41, ICS v5) default to closing connection when client sends HTTP/1.1 request without a Connection: header? IOW, when THttpServer receives GET / HTTP/1.1 it will close the connection after sending the response. If one adds 'Connection: keep-