One more attempt: stuck processes
murch at andrew.cmu.edu
Mon Nov 19 13:37:30 EST 2007
Sebastian Hagedorn wrote:
> -- Ken Murchison <murch at andrew.cmu.edu> is rumored to have mumbled on
> 19. November 2007 13:17:07 -0500 regarding Re: One more attempt: stuck
>> The only other potential downside
>>> the patch has is that stracing or gdb'ing it causes the timeout to
>>> trigger prematurely. AFAIK that's a common issue for signals. I'm not
>>> sure if there's something that could be done about that, i.e. catching
>>> ERESTART or something like that?
>> Is this only a problem with pop3s, or does it also effect the STLS
> Yes, it does:
> telnet cyrus 110
> +OK Begin TLS negotiation now
> -ERR [SYS/PERM] Starttls failed
> That's when I straced the process ...
If you want to write and test a patch to resolve this, I'll certainly
take a look at it.
Another way to resolve the blocking SSL_accept() problem would be to
make the socket non-blocking and then check the SSL_accept() return code
to see if we need to call SSL_accept() again. I took the easy way out
by setting SO_RCVTIMEO.
Project Cyrus Developer/Maintainer
Carnegie Mellon University
More information about the Info-cyrus