Re: [twsocket] Violation Error on FTP Server V5
> In this procedure, when the timeout expired, I launch a postmessage > to kill the inactive client so that: > > PostMessage(ftpserveur.Handle, WM_FTPSRV_CLOSE_REQUEST, > WPARAM(ftpserveur.Client[I].ID),LPARAM(ftpserveur.Client[I])); If you don't want to update to a tested and supported version, you can look at the way client timeout is handled in the current version of add that code to your old version. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] Violation Error on FTP Server V5
Hi, I use the V5 ICS package 1.52. I've a timer which checks all 15 seconds that there are not a time out on client to kill it. And In this procedure , I had a violation error aleatory. I used V1.47 ICS. So I've compiled with 1.52 but I don't know yet if the problem is solved or not. In this procedure, when the timeout expired, I launch a postmessage to kill the inactive client so that: PostMessage(ftpserveur.Handle, WM_FTPSRV_CLOSE_REQUEST, WPARAM(ftpserveur.Client[I].ID),LPARAM(ftpserveur.Client[I])); But after this postmessage, my code doesn't pass in OnclientDisconnect event. It's hard to test because it's aleatory. I've the same case when I receive a QUIT command. I do nothing but my code doesn't pass in OnclientDisconnect event. It's also aleatory. Have you got an idea , please ? Maybe in the first case, I can replace postmessage by client.closedelayed ? I'm sorry but for the time being, I can't compile whit V7. Thanks. Arnold -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Violation Error on FTP Server V5
Angus Robertson - Magenta Systems Ltd wrote: >> For the server, I use the V5 ICS package with Delphi 7 >> (ftpsrv.pas is on version V1.47) > > This is five years old, the last server was V1.52 in Nov 2008, and all > development now takes place with V7, not V5. > > You need to get a much more recent version. Most likely, yes. If he uses Delphi 7 or later ICS v7 is the way to go. And the v7-FTP-server already implements a timeout feature. -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Violation Error on FTP Server V5
> For the server, I use the V5 ICS package with Delphi 7 > (ftpsrv.pas is on version V1.47) This is five years old, the last server was V1.52 in Nov 2008, and all development now takes place with V7, not V5. You need to get a much more recent version. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] Violation Error on FTP Server V5
Hi, I use the V5 ICS package (the date in the readme.txt file is May 01 2006) For the server, I use the V5 ICS package with Delphi 7 (ftpsrv.pas is on version V1.47) For the client, I use also V5 but with Delphi 2005 in .NET. (overbyte.ics.ftpclient.pas is on version V2.97) Sometimes, I've this error, I receive a QUIT Command but my code doesn't run in client disconnect event. And after, I've an violation error. 836 - 13/01/2010 16:46:41 - 88.3.163.235 - STOR 20091221_1606.LOG 836 - 13/01/2010 16:46:41 - 88.3.163.235 - 150 Opening data connection for 20091221_1606.LOG. 836 - 13/01/2010 16:47:05 - 88.3.163.235 - 226 File sent ok 836 - 13/01/2010 16:47:09 - 88.3.163.235 - QUIT 836 - 13/01/2010 16:47:09 - 88.3.163.235 - 221 Goodbye. I've a trace in Client disconnect procedure but no trace. When it's ok I've in my logs: 520 - 09/02/2010 22:20:01 - 192.168.5.105 - STOR 52003811.SAI 520 - 09/02/2010 22:20:01 - 192.168.5.105 - 150 Opening data connection for 52003811.SAI. 520 - 09/02/2010 22:20:03 - 192.168.5.105 - 226 File received ok 520 - 09/02/2010 22:20:07 - 192.168.5.105 - QUIT 520 - 09/02/2010 22:20:07 - 192.168.5.105 - 221 Goodbye. 520 - 09/02/2010 22:20:07 - 192.168.5.105 - ClientDisconnect - Connection stopped After that, I've a timer which checks all 15 seconds that there are not a time out on client to kill it. And In this procedure , I obtain a violation error. It's always after this case. In fact, I've a violation, on all actions: start server, stop server , ... I've had to kill my program. Have you got an idea , please ? Thanks. Arnold -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be