Bingo!

Sebastian Hagedorn Hagedorn at uni-koeln.de
Sat Nov 17 06:30:10 EST 2007


I'm not sure of you're aware of it, so I'll point it out: you tried 
something different from what Ken and I tried. It doesn't explain 
everything, but at least some of what you see.

-- Alain Spineux <aspineux at gmail.com> 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 at mydomain.loc
> +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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20071117/717fd730/attachment.bin 


More information about the Info-cyrus mailing list