On Tue, Dec 22, 2009 at 04:41:53PM +0100, Dominique Marant wrote:
Hi,
With POP3 TLS, the time to retrieve mail is too long.
In debugging and connection logging, I see that perdition is waiting
3 seconds to send the response to AUTH request :
Dec 22 15:54:06 logua2 perdition[23793]: SELF:
"UIDL\r\nUSER\r\nSTLS\r\n.\r\n"
Dec 22 15:54:06 logua2 perdition[23793]: CLIENT: "STLS\r\n"
Dec 22 15:54:06 logua2 perdition[23793]: SELF: "+OK Begin TLS
negotiation, mate\r\n"
Dec 22 15:54:07 logua2 perdition[23793]: SSL connection using AES256-SHA
Dec 22 *15:54:07* logua2 perdition[23793]: CLIENT: "AUTH\r\n"
Dec 22 *15:54:10* logua2 perdition[23793]: SELF: "-ERR Mate, the
command must be one of CAPA, USER, PASS or QUIT\r\n"
Dec 22 15:54:10 logua2 perdition[23793]: CLIENT: "CAPA\r\n"
Dec 22 15:54:10 logua2 perdition[23793]: SELF: "+OK Capability
list follows, mate\r\n"
Dec 22 15:54:10 logua2 perdition[23793]: SELF: "UIDL\r\nUSER\r\n.\r\n"
3 secondes between CLIENT AUTH and the -ERR response of perdition...
It's too long for the users (for example, Thunderbird with TLS).
What happens?
I'm tracing the process (strace) and I see a
nanosleep 3 for a child
process.
In the source and include perdition, I see :
#define PERDITION_AUTH_FAIL_SLEEP 3
sleep(PERDITION_AUTH_FAIL_SLEEP);
Is there a bad effect to put 0 value to this define ?
Setting it to 0 should work fine.