-- Alain Spineux <aspineux@xxxxxxxxx> is rumored to have mumbled on 17. November 2007 00:46:43 +0100 regarding Re: Bingo!:
I tested the timeout using a SSL connection and a normal connection and get two different result ! The SSL was working as expected but the normal one "timeout" in a different way, it get a SIGTERM ! I will repeat the test Here is the normal one : # telnet localhost 110 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. +OK eg01.emailgency.loc Cyrus POP3 v2.3.9-openpkg server ready user alain.spineux@xxxxxxxxxxxx +OK Name is a valid mailbox pass ******** +OK Mailbox locked and ready list +OK scan listing follows 1 1779 . # I dont send anymore command for 10min and wait for the timeout ! Connection closed by foreign host.
That's OK. Just to make sure: the problem I had noticed on my server and which we were trying to nail down did *not* occur for sessions where a login had been done. It only happens for sessions where the client does nothing or goes away *before* a login (or actually a successful SSL negotiation) has happened.
Here is the strace from the list command read(0, "list\r\n", 4096) = 6 time(NULL) = 1195253508 write(13, "<1195253508<", 12) = 12 write(13, "list\r\n", 6) = 6 open("/kolab/var/imapd/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or directory) select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout) time(NULL) = 1195253508 write(13, ">1195253508>", 12) = 12 write(13, "+OK scan listing follows\r\n1 1779"..., 37) = 37 write(1, "+OK scan listing follows\r\n1 1779"..., 37) = 37 time(NULL) = 1195253508 select(1, [0], NULL, NULL, {600, 0} ) = ? ERESTARTNOHAND (To be restarted) # # HERE IT IS WAITING FOR 10min AS EXPECTED --- SIGTERM (Terminated) @ 0 (0) --- Process 5720 detached I dont understand why it got a SIGTERM !
Neither do I. I tested the same thing and I got this trace: Process 18811 attached - interrupt to quit select(1, [0], NULL, NULL, {565, 380000}) = 0 (Timeout) time(NULL) = 1195297357 close(9) = 0 munmap(0xb47a7000, 4096) = 0 unlink("/var/lib/imap/proc/18811") = 0 ... So everything looks fine here. -- Sebastian Hagedorn - RZKR-R1 (Flachbau), Zi. 18, Robert-Koch-Str. 10 Zentrum für angewandte Informatik - Universitätsweiter Service RRZK Universität zu Köln / Cologne University - Tel. +49-221-478-5587
Attachment:
pgpPAfalL95iX.pgp
Description: PGP signature
---- Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html