Re: [twsocket] Serious bug in SmtpCli/TWSocket: infinite loop

2015-09-30 Thread Angus Robertson - Magenta Systems Ltd
> Just found serious problem of TWSocket/TSmtpCli: > infinite loop around DoRecv/DataAvailable in TWSocket ! > It's happens only with some misconfigured/buggy MX servers. > Yes, nmact1.nmact.org is misconfigured (i check it using sniffer - > they return 4096 bytes of > zeroes (\0) as reply) but

Re: [twsocket] Serious bug in SmtpCli/TWSocket: infinite loop

2015-09-30 Thread Max Terentiev
Hi, > And I said illegal characters should be ignored, just in a different > way to your check for illegal characters. Yes, ofcource. But it's should be done in ICS. Because of infinite loop OnRequestDone never triggered so, it's not possible to handle illegal character in my code. --- With

Re: [twsocket] Serious bug in SmtpCli/TWSocket: infinite loop

2015-09-30 Thread Max Terentiev
Hi, This server responding but incorrectly ! After connect they return just array of zeroes #0 without any data. This cause infinite loop in TCustomWSocket.AsyncReceive ! Timeout will not works - events not comes because of 100% cpu usage in infinite loop. Exactly this server nmact1.nmact.org

Re: [twsocket] Serious bug in SmtpCli/TWSocket: infinite loop

2015-09-30 Thread Angus Robertson - Magenta Systems Ltd
> This server responding but incorrectly ! There was no valid banner response, so a timeout is a valid concept. > After connect they return just array of zeroes #0 without any data. Which should be ignored, but might have been followed by valid commands. Angus -- To unsubscribe or change

Re: [twsocket] Serious bug in SmtpCli/TWSocket: infinite loop

2015-09-30 Thread Max Terentiev
Hi, As I say before - timeout will not works because ICS go to infinite loop in TCustomWSocket.AsyncReceive. No way to interrupt it because infinite loop eat 100% cpu, program stop responding and timer events not works. Only way is killing process ! Just start