Timeouts and inetd mode

28 Sep
2012
28 Sep
'12
10:56 a.m.
Hi. As far as I can tell, if stunnel is running in "inetd mode", at least TIMEOUTbusy does not work. In particularl, stunnel will never timeout waiting for the SSL handshake to complete. If I'm reading the sources right, this is because the code to set up the SSL session calls SSL_accept before checking for data on stdin, and stdin is never set to non-blocking mode (only newly created sockets and/or pipes are). Would it make sense to set stdin (and stdout) to non-blocking mode when timeouts are enabled? Something in init_local maybe? -- Bruce Guenter <bruce@untroubled.org> http://untroubled.org/
4721
Age (days ago)
4721
Last active (days ago)
0 comments
1 participants
participants (1)
-
Bruce Guenter