Bug #92

IMAP SSL connection interrupted in SSL_peek.

Added by Andrey Gursky almost 2 years ago.

Status:NewStart date:09/17/2012
Priority:NormalDue date:
Assignee:Hiroyuki Yamamoto% Done:

0%

Category:LibSylphSpent time:-
Target version:3.3

Description

Using a mailbox on e-mail.ua based gmail.com through IMAP and SSL having >1500 messages, it's not possible to get all mails.

There are many about 10 secs (7..11 sec) stucks on SSL_peek() in ssl_peek() (libsyplh/socket.c):

[02:34:33] IMAP4< * 1409 FETCH (UID 1409 RFC822.SIZE 7073 RFC822.HEADER {4095}
IMAP4< [contents of RFC822.HEADER]
IMAP4<  FLAGS ())
[02:34:43] IMAP4< * 1410 FETCH (UID 1410 RFC822.SIZE 8468 RFC822.HEADER {4895}
IMAP4< [contents of RFC822.HEADER]
IMAP4<  FLAGS ())

Receiving the message in range 800..1600 breaks with:
[02:35:52] IMAP4< * 1540 FETCH (UID 1540 RFC822.SIZE 5869 RFC822.HEADER {4451}
IMAP4< [contents of RFC822.HEADER]
IMAP4<  FLAGS ())
[02:35:53] IMAP4< * 1541 FETCH (UID 1541 RFC822.SIZE 10661 RFC822.HEADER {4961}

(sylpheed:24866): LibSylph-WARNING **: SSL_peek() returned error 5, ret = 0

(sylpheed:24866): LibSylph-CRITICAL **: str_open_as_stream: assertion `str != NULL' failed

(sylpheed:24866): LibSylph-WARNING **: invalid FETCH response: Delivered-To: andrey (dot) gursky (at) e-mail.ua
Received: by 10.227.174.2 with SMTP id r2cs248053wbz; Tue, 7 Dec 2010 06:45:58
 -0800 (PST)
........
X-Original-To: lists-debian-embedded (at) liszt.debian.org
Delivered-To: lists-debian-embedded (at) liszt.debian.org

(sylpheed:24866): LibSylph-WARNING **: [02:35:53] can't parse envelope: Delivered-To: andrey (dot) gursky (at) e-mail.ua
Received: by 10.227.174.2 with SMTP id r2cs248053wbz; Tue, 7 Dec 2010 06:45:58
 -0800 (PST)
.........
X-Original-To: lists-debian-embedded (at) liszt.debian.org
Delivered-To: lists-debian-embedded (at) liszt.debian.org

(sylpheed:24866): LibSylph-WARNING **: SSL_peek() returned error 5, ret = 0

(sylpheed:24866): LibSylph-WARNING **: [02:35:53] error occurred while getting envelope.

imap_thread_run_proxy (0x96bb500): thread_func done
cache_dirty: 0, mark_dirty: 0
    Setting summary from message data...done.

I've tried also without non-blocking SSL.

On the other hand, there were no problem with communication to mail.ru but at the same time claws-mail received successfully all mails also from gmail.com.

Is SSL_peek() a state-of-the-art way to talk to SSL-server? It seems gmail.com doesn't like this way and returns EOF after sometime?

Thanks,
Andrey

Also available in: Atom PDF