Re: [twsocket] TWsocket disconnect in 60 seconds

2009-05-01 Thread Wilfried Mestdagh
Hello Ronaldo, At first sight I see nothing wrong with your code. However it is not normal that some of the sockets close without reason. Wich of the sockets do the close? Maybe the close is with a winsock error, then it will tell you more about the reason. You have at least log all the winsock

Re: [twsocket] TWsocket disconnect in 60 seconds

2009-05-01 Thread Ronaldo DeVinche
i log all errors and only error i have is on SocketSessionClosed: *Error 5 on SocketSessionClosed* -- 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] TWsocket disconnect in 60 seconds

2009-05-01 Thread Wilfried Mestdagh
Hello Ronaldo, As Arno already sayed this is not a winsock error. But to be sure (because I don't see it in your code example), we are talking about the ErrCode argument in the TWSocket events, right? --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html

Re: [twsocket] TWsocket disconnect in 60 seconds

2009-05-01 Thread Ronaldo DeVinche
yes, error is on TWsocket! -- 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] TWsocket disconnect in 60 seconds

2009-05-01 Thread Ronaldo DeVinche
here is code ## type TForm3 = class(TForm) Socket: TWSocket; Server: TWSocketServer; Button1: TButton; CheckBox1: TCheckBox; Memo1: TMemo; Edit1: TEdit; Edit2: TEdit; Edit3: TEdit; Edit4: TEdit; Label1: TLabel; Label2: TLabel; Memo2: TMemo; Memo3: TMemo; Button2: TButton;

Re: [twsocket] TWsocket disconnect in 60 seconds

2009-05-01 Thread Wilfried Mestdagh
Hello Ronaldo, yes, error is on TWsocket! here is code I don't see anywere in your code logging of the ErrCode argument in the TWSocket events! So it is not sure where you get the error 5 I also see you use OnError event of TWSocketServer and use GetLastError there. Don't use OnError, instead

Re: [twsocket] TWsocket disconnect in 60 seconds

2009-05-01 Thread Ronaldo DeVinche
*I don't see anywere in your code logging of the ErrCode argument in the TWSocket events! So it is not sure where you get the error 5* procedure TForm3.SocketSessionClosed(Sender: TObject; ErrCode: Word); begin {this is Socket = TWSocket} memo1.lines.add('Proxy

Re: [twsocket] TWsocket disconnect in 60 seconds

2009-05-01 Thread Wilfried Mestdagh
Hello Ronaldo, oke we are getting somewhere :) procedure TForm3.SocketSessionClosed(Sender: TObject; ErrCode: Word); begin {this is Socket = TWSocket} memo1.lines.add('Proxy Disconnected from Server!'); memo1.lines.add( Format('Error %d on SocketSessionClosed',

Re: [twsocket] TWsocket disconnect in 60 seconds

2009-05-01 Thread Ronaldo DeVinche
exceptions are without errors well i checked all events on TWserverSocket and TWsocket and errors ocurs only here: *procedure TForm3.SocketSessionClosed(Sender: TObject; ErrCode: Word); ** begin {this is Socket = TWSocket} memo1.lines.add( Format('Error %d on

Re: [twsocket] TWsocket disconnect in 60 seconds

2009-05-01 Thread Wilfried Mestdagh
Hello Ronaldo, 10053 is when OS decide to stop the connection. Normally this is because of some network problem, a malfunctioning router or switch. But many virus scanners and firewalls are doing wierd things with TCP, so stop any service of it (not disable it) and test again. --- Rgds, Wilfried