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

2005-05-21 Thread Bruno Sonnino
François: Maybe it's the firewall, I'm using Windows firewall. I'd like to try your version, if you could send it to me, I'd be glad, thanks About the latest version, I'm using it - I've downloaded it yesterday from your website, do the display from the server I've sent in last message show som

Re: [twsocket] Error message when "File not found"

2005-05-21 Thread Francois PIETTE
> I am using HTTPCli to load a file from a webserver, works properly. > However, when I try to load a file which cannot be found on the server, > HTTPCli treats the servers error message as if it were the file and does > not report any error. > The resulting file saved on disk is just the html code

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

2005-05-21 Thread Francois PIETTE
> Sorry, it was my fault - the event was OnHttpRequestDone, not OnRequestDone. > If I don't add the line, the code runs fine (it shows the entire page, there > is no problem in this), but the connection remains open - the progress bar > in IE 6 remains there and you see a connection open in the ser

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. A

[twsocket] Error message when "File not found"

2005-05-21 Thread Florian Hector
I am using HTTPCli to load a file from a webserver, works properly. However, when I try to load a file which cannot be found on the server, HTTPCli treats the servers error message as if it were the file and does not report any error. The resulting file saved on disk is just the html code of the

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 On

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

2005-05-21 Thread Wilfried Mestdagh
Hello Bruno, > If I don't add the line, the code runs fine (it shows the entire page, there > is no problem in this), but the connection remains open - the progress bar > in IE 6 remains there and you see a connection open in the server. If you Possible you have siltent exception error somewhere.

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

2005-05-21 Thread Bruno Sonnino
François: Sorry, it was my fault - the event was OnHttpRequestDone, not OnRequestDone. If I don't add the line, the code runs fine (it shows the entire page, there is no problem in this), but the connection remains open - the progress bar in IE 6 remains there and you see a connection open in the

Re: [twsocket] [HELP] FTP Server possible bug ?

2005-05-21 Thread Guillaume MAISON
> May be, but try again to make a small demo application that shows the problem > and I'm sure someone will/can help you. i've tried to redo a sample even using the SQL stuff... everything runs fine... the only thing i haven't tested yet is re writing a sample as a service... i'll do it on monda

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] http://www.over

Re: [twsocket] [HELP] FTP Server possible bug ?

2005-05-21 Thread Arno Garrels
Guillaume MAISON wrote: >>> in my application, i still have that damn RetrDataSent triggered before >>> RetrSessionConnected... >> >> Have you tried to assign the DataStream in FtpServer1GetProcessing? >> DelayedSend := TRUE; >> MyClient.FWorkerThread.Client.DataStream := TMemoryStream.Create; >>

Re: [twsocket] [HELP] FTP Server possible bug ?

2005-05-21 Thread Guillaume MAISON
> > in my application, i still have that damn RetrDataSent triggered before > > RetrSessionConnected... > > Have you tried to assign the DataStream in FtpServer1GetProcessing? > DelayedSend := TRUE; > MyClient.FWorkerThread.Client.DataStream := TMemoryStream.Create; > MyClient.FWorkerThread.Resume;

Re: [twsocket] [HELP] FTP Server possible bug ?

2005-05-21 Thread Arno Garrels
Guillaume MAISON wrote: >> The DataStream is nil at that time, try this: >> >> procedure TGetProcessingThread.Execute; >> var >> aBuf : String; >> i : integer; >> begin >> abuf := 'One ring to rule them all !'#13#10; >> Client.DataStream := TMemoryStream.Create; >> for i := 0

Re: [twsocket] [HELP] FTP Server possible bug ?

2005-05-21 Thread Guillaume MAISON
> The DataStream is nil at that time, try this: > > procedure TGetProcessingThread.Execute; > var > aBuf : String; > i : integer; > begin > abuf := 'One ring to rule them all !'#13#10; > Client.DataStream := TMemoryStream.Create; > for i := 0 to 1000 do > Client.DataSt

Re: [twsocket] [HELP] FTP Server possible bug ?

2005-05-21 Thread Arno Garrels
Guillaume MAISON wrote: The DataStream is nil at that time, try this: procedure TGetProcessingThread.Execute; var aBuf : String; i : integer; begin abuf := 'One ring to rule them all !'#13#10; Client.DataStream := TMemoryStream.Create; for i := 0 to 1000 do Client.Da

Re: [twsocket] [HELP] FTP Server possible bug ?

2005-05-21 Thread Guillaume MAISON
> i would suggest you to download the sample i've provided here > http://nauteus.com/FTPSample.zip. > The code in this sample is precisely what doesn't seem to work... forget about that sample... it'll work... but the main thing is that in my main server app, when in RETR mode : 10 [2005/05

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

2005-05-21 Thread Bruno Sonnino
François: I tried to close the connection using the event OnRequestDone, this closed the connection ok, but in some clients, the page wasn't even shown, any hint on what could be happening? procedure TWebServForm.CreateVirtualDocument_Time( Sender: TObject;{ HTTP server compon

Re: [twsocket] [HELP] FTP Server possible bug ?

2005-05-21 Thread Guillaume MAISON
> It's just a guess, sounds like your multithreading isn't designed well. > Can you explain your thread design in your own words? > Arno Garrels well, in that case, the demo for the ftp server has a bad multithreading design. i'm just using the very same design, and the very same classname ;) fo

Re: Re[2]: [twsocket] Receive result of the first ReceiveStr() call twice -not resolved

2005-05-21 Thread Francois PIETTE
Jack, The logic in your WSocketDataAvailable is broken. That's the problem. You used LineMode which is fine, and you selected double CRLF as end of line. So you received the complete header into the first OnDataAvailable event. Then you receive subsequent OnDataAvailable depending on what the ser

Re: [twsocket] Telnet

2005-05-21 Thread Francois PIETTE
> I'm not reinventing the wheel. I saw your samples programs about > TWSocketServer too. My problem not is work with various instances of > clients. My problem is when the client connect the server, the server > redirect the connection to another application. I have the Socket.Accept, I > run anoth

Re: [twsocket] Telnet

2005-05-21 Thread Francois PIETTE
This problem is not related to ICS. Please use a general purpose mailing list or newsgroup. For example http://www.elists.org/mailman/listinfo/delphi btw: You must serialize your requests that must pass thru those "single user" components. Contribute to the SSL Effort. Visit http://www.overbyte.b