Re: Re[2]: [twsocket] Connection not closed in WebServer with IE
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] Connection not closed in WebServer with IE In THttpConnection.AnswerStream, add the following block just after the lines with Content-Length: if FKeepAlive then PutStringInSendBuffer('Connection: Keep-Alive' + #13#10) else PutStringInSendBuffer('Connection: Close' + #13#10); Tell me if it works without adding the header line in your code. This doesn't compile, FKeepAlive isn't defined. Bruno On 22/5/2005 16:50:11, Francois PIETTE ([EMAIL PROTECTED]) wrote: Finally, I could find what was causing the problem here - I still don't know why, but at least I could fix it. I analyzed the header files sent by a virtual page and an identical real page. The difference was the virtual page was not sending three lines: Accept-Ranges: bytes Last-Modified: Sun, 22 May 2005 14:56:22 GMT Connection: Keep-Alive Then I added these to my header in the virtual page and everything worked fine. I've tracked that the only one needed is Connection: Keep-Alive, the others don't make any difference. If anybody knows why this line is needed, I'll be pleased to know. You can try this mod into the HTTP server component: In THttpConnection.AnswerStream, add the following block just after the lines with Content-Length: if FKeepAlive then PutStringInSendBuffer('Connection: Keep-Alive' + #13#10) else PutStringInSendBuffer('Connection: Close' + #13#10); Tell me if it works without adding the header line in your code. -- [EMAIL PROTECTED] http://www.overbyte.be -- -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re[6]: [twsocket] Connection not closed in WebServer with IE
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 } (CompareText(FRequestConnection, 'close') = 0) then Shutdown(1); I checked FVersion, it is always 1.1, so it's a bug in IE :) --- Rgds, Wilfried http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: Re[2]: [twsocket] Connection not closed in WebServer with IE
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 of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be - Original Message - From: Bruno Sonnino [EMAIL PROTECTED] To: twsocket@elists.org Sent: Sunday, May 22, 2005 10:39 PM Subject: Re: Re[2]: [twsocket] Connection not closed in WebServer with IE 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 + 'Connection: Keep-Alive' + #13#10; end else if FVersion = 'HTTP/1.1' then begin if CompareText(FRequestConnection, 'close') = 0 then Header := Header + 'Connection: Close' + #13#10 else Header := Header + 'Connection: Keep-Alive' + #13#10; end; I think this is what you meant, no? Adding these lines, the progress bar disappeared, but the connection remained open: if FVersion = 'HTTP/1.0' then begin if CompareText(FRequestConnection, 'keep-alive') 0 then PutStringInSendBuffer('Connection: Close' + #13#10) else PutStringInSendBuffer('Connection: Keep-Alive' + #13#10); end else if FVersion = 'HTTP/1.1' then begin if CompareText(FRequestConnection, 'close') = 0 then PutStringInSendBuffer('Connection: Close' + #13#10) else PutStringInSendBuffer('Connection: Keep-Alive' + #13#10); end; Bruno On 22/5/2005 16:50:11, Francois PIETTE ([EMAIL PROTECTED]) wrote: Finally, I could find what was causing the problem here - I still don't know why, but at least I could fix it. I analyzed the header files sent by a virtual page and an identical real page. The difference was the virtual page was not sending three lines: Accept-Ranges: bytes Last-Modified: Sun, 22 May 2005 14:56:22 GMT Connection: Keep-Alive Then I added these to my header in the virtual page and everything worked fine. I've tracked that the only one needed is Connection: Keep-Alive, the others don't make any difference. If anybody knows why this line is needed, I'll be pleased to know. You can try this mod into the HTTP server component: In THttpConnection.AnswerStream, add the following block just after the lines with Content-Length: if FKeepAlive then PutStringInSendBuffer('Connection: Keep-Alive' + #13#10) else PutStringInSendBuffer('Connection: Close' + #13#10); Tell me if it works without adding the header line in your code. -- [EMAIL PROTECTED] http://www.overbyte.be -- -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: Re[2]: [twsocket] Connection not closed in WebServer with IE
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 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 of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be - Original Message - From: Bruno Sonnino [EMAIL PROTECTED] To: twsocket@elists.org Sent: Sunday, May 22, 2005 10:39 PM Subject: Re: Re[2]: [twsocket] Connection not closed in WebServer with IE 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 + 'Connection: Keep-Alive' + #13#10; end else if -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: Re[2]: [twsocket] Connection not closed in WebServer with IE
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 tells (mod by Bjornar Nielsen). -- [EMAIL PROTECTED] http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: Re[6]: [twsocket] Connection not closed in WebServer with IE
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 header, the server you are developing should show the same behavior Yes you right. Then I see same problem. 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 request (the progress bar disappears). This doesn't happen with FireFox. I test it, and see same problem. Also with FireFox. I think this is the real reason of the progressbar, because the server has to close the connection once all data is sent and I assume IE keep progressbar running until end of connection OR 'Connection: Keep-alive'. --- Rgds, Wilfried http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] [OT] Delphi-Jedi election
I support the Delphi-Jedi initiative (http://www.delphi-jedi.org/). I have given some API ports. Currently the is a vote to elect the director. Alan C. Moore is the current director and candidate for one more year. If you have not yet voted, please go to http://groups.yahoo.com/group/Delphi-JEDI/polls and vote today (voting is anonymous). Please, do not comment on this in ICS mailing list. Use [EMAIL PROTECTED] to express your opinion. -- [EMAIL PROTECTED] http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: Re[2]: [twsocket] Connection not closed in WebServer with IE
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 Subject: Re: Re[2]: [twsocket] Connection not closed in WebServer with IE Ok, I will wait and download it again when it's available. Thanks Bruno On 23/5/2005 06:19:51, Francois Piette ([EMAIL PROTECTED]) wrote: Can you point me to the right direction? I went to your site today, went to ICS, and redownloaded latest version. HTTPServ is dated 3/13/2005, and it doesn't have FKeepAlive. The problem is probably the hosting server which crashed yesterday. They probably restored an old backup :-( I have no access right now to my files, so I can't update the website. Will do later today as soon as I can. -- [EMAIL PROTECTED] http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] TCP-based DNS resolution component?
Hello all, I didn't see the option of choosing TCP in ICS's DNS client component. I suppose it's UDP only. I wonder if there is a component that resolves DNS with TCP? I didn't see one on the user made page. -- Best regards, Jack -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] New release published
- The WebServ1.pas contain some test code (for Bruno?) Will stay there. Just another example. - The FtpCli version is not changed - The WSocket version is not changed - The WSocketS version is not changes I think they have all 3 changed very slightly. HttpSrv also has changed. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Maurizio Lotauro [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, May 23, 2005 7:22 PM Subject: Re: [twsocket] New release published Scrive Francois PIETTE [EMAIL PROTECTED]: Because of the website crash this week-end, I have just uploaded a new ICS release. Nothing fancy new. Just a few minor bugs fixed. They all have been discussed in the mailing list. - The WebServ1.pas contain some test code (for Bruno?) - The FtpCli version is not changed - The WSocket version is not changed - The WSocketS version is not changes This is the result comparing the relase of 14 April. Bye, Maurizio. This mail has been sent using Alpikom webmail system http://www.alpikom.it -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be