Re: Re[2]: [twsocket] Connection not closed in WebServer with IE

2005-05-23 Thread Francois Piette
This doesn't compile, FKeepAlive isn't defined. You defenitely lack the latest release. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Bruno Sonnino [EMAIL PROTECTED] To: twsocket@elists.org Sent: Sunday, May 22, 2005 10:30 PM Subject: Re: Re[2]: [twsocket]

Re[6]: [twsocket] Connection not closed in WebServer with IE

2005-05-23 Thread Wilfried Mestdagh
Hello Bruno, But there is also one other thing, and this I could not track, maybe it's some setting in the server: the connection remains open after you do the if ((FVersion = 'HTTP/1.0') and (CompareText(FRequestConnection, 'keep-alive') 0)) or { Jack }

Re: Re[2]: [twsocket] Connection not closed in WebServer with IE

2005-05-23 Thread Francois Piette
I think this is what you meant, no? Yes, but this code has been updated and there is now a variable FKeepAlive that keep track of this connection problem. You should download latest release. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author

Re: Re[2]: [twsocket] Connection not closed in WebServer with IE

2005-05-23 Thread Bruno Sonnino
François: Friday, I went to your site and selected Latest ICS version. Isn't that the latest? Bruno On 23/5/2005 03:56:20, Francois Piette ([EMAIL PROTECTED]) wrote: I think this is what you meant, no? Yes, but this code has been updated and there is now a variable FKeepAlive that keep

Re: Re[2]: [twsocket] Connection not closed in WebServer with IE

2005-05-23 Thread Francois Piette
Friday, I went to your site and selected Latest ICS version. Isn't that the latest? Yes, it is. But you have not FKeepAlive variable, so you don't use the latest version (or there is a problem on my website, or there is a caching proxy somewhere). FKeepAlive exists since Apr 16 as the history

Re: Re[6]: [twsocket] Connection not closed in WebServer with IE

2005-05-23 Thread Bruno Sonnino
I didn't see how I can close the connection. I always get keep-alive in the request, so the response is also keep alive. Bruno On 23/5/2005 03:55:01, Wilfried Mestdagh ([EMAIL PROTECTED]) wrote: Hello Bruno, Try this - go to Internet Options, Advanced, and uncheck Use HTTP 1.1. With your

Re: Re[2]: [twsocket] Connection not closed in WebServer with IE

2005-05-23 Thread Francois PIETTE
Ok, I will wait and download it again when it's available. Now available. It contains the fix I mentionned earlier. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Bruno Sonnino [EMAIL PROTECTED] To: twsocket@elists.org Sent: Monday, May 23, 2005 1:55 PM

Re[2]: [twsocket] Connection not closed in WebServer with IE

2005-05-22 Thread Wilfried Mestdagh
Hello Bruno, I just downloaded the demo from Francois, and tryed the server on 3 different machines (NT, W2K, XP), and every time connected with the 3 machines with IE (different versions) to the server/bruno.html. Works every time here. Also I have a several project with the HttpSrv without

Re: [twsocket] Connection not closed in WebServer with IE

2005-05-22 Thread Francois PIETTE
Yes, I know, but the behavior is very consistent to be just coincidence. Does it depends on the size of the page ? You send 5000 lines in your test but what is the minimal size to experience the problem ? -- [EMAIL PROTECTED] http://www.overbyte.be -- To unsubscribe or change your settings

Re[4]: [twsocket] Connection not closed in WebServer with IE

2005-05-22 Thread Wilfried Mestdagh
Hello Bruno, I'm just bsy in a rather large project using THttpSrv, and this is exact copy of what I send in all my virtual pages: Header := Cli.Version + ' 200 OK'#13#10 + 'Content-Type: text/html'#13#10 + 'Content-Length: ' + IntToStr(DocLen) + #13#10 +

Re: Re[2]: [twsocket] Connection not closed in WebServer with IE

2005-05-22 Thread Bruno Sonnino
Taking a look at SendDocument, I saw this: { *DAVID* Revised this if/then/else } if FVersion = 'HTTP/1.0' then begin if CompareText(FRequestConnection, 'keep-alive') 0 then Header := Header + 'Connection: Close' + #13#10 else Header := Header +

Re: [twsocket] Connection not closed in WebServer with IE

2005-05-21 Thread Francois PIETTE
ClientCnx.OnRequestDone := RequestDone; You can't heve this line. It doesn't even compile with it. I have remived it from your source, put your source into WebServ demo and it works perfectly using IE 6 as client. Are you really using latest ICS version ? -- [EMAIL PROTECTED]

Re: Re[2]: [twsocket] Connection not closed in WebServer with IE

2005-05-21 Thread Bruno Sonnino
No, I don't have any exceptions - the program runs in the debugger with no errors. The strangest thing is that in Firefox, the connection closes fine all times, but in IE, it doesn't - that happens only for virtual docs. When you request a page, the connection closes ok on both browsers. Bruno

Re: Re[2]: [twsocket] Connection not closed in WebServer with IE

2005-05-21 Thread Francois PIETTE
No, I don't have any exceptions - the program runs in the debugger with no errors. The strangest thing is that in Firefox, the connection closes fine all times, but in IE, it doesn't - that happens only for virtual docs. When you request a page, the connection closes ok on both browsers. As I

Re: [twsocket] Connection not closed in WebServer with IE

2005-05-19 Thread Bruno Sonnino
Francois: Yes, I am. The full code (it has been cut from my last message) is: var Flags: THttpGetFlag; i : Integer; Body : String; Header : String; begin Flags := hgWillSendMySelf; Body := 'HTML' + 'HEAD' + 'TITLEPagina de teste /TITLE' + '/HEAD' +

Re: [twsocket] Connection not closed in WebServer with IE

2005-05-19 Thread Francois PIETTE
I don't know the context of this code. I find strange to have a local variable Flags. Have you looked at the WebServ delo provided with ICS ? See TWebServForm.CreateVirtualDocument_Time as an example of AnswerString use. Put your code into that sample program. -- [EMAIL PROTECTED]