From: Thomas J. <tho...@in...> - 2011-04-28 17:06:12
|
On Thursday, 28. April 2011 14:42:21 Matthias Andree wrote: > $ sudo socat -dddD - tcp4-listen:110,reuseaddr > 1. paste +OK\n as greeting > 2. paste +OK\nSTLS\n.\n as response to STLS, then wait Ok, I found the difference. If I wait at the same point as you do, the timeout is triggered. Please at step 3.: 3. paste "+OK do it\n" and then wait Some SSL garbage will appear in socat but that's fine. The strace output looks like this: write(3, "STLS\r\n", 6) = 6 <0.000078> setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={90, 0}}, NULL) = 0 <0.000014> recv(3, "+OK do it\n", 512, MSG_PEEK) = 10 <3.055521> read(3, "+OK do it\n", 10) = 10 <0.000015> setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0 <0.000012> ... -> The timeout get's disabled again. Any idea why? Cheers, Thomas |