Discussion:
IMAPS connection problem
Consus
2018-04-08 16:50:33 UTC
Permalink
Hi,

I have mutt connected to IMAPS server that hangs after waking up from
hibernation. It seems that mutt is stuck on read:

$ strace -fp $(pgrep mutt)
strace: Process 25074 attached
read(3,

$ ls -l /proc/25074/fd
total 0
lrwx------ 1 consus consus 64 Apr 4 09:50 0 -> /dev/pts/1
lrwx------ 1 consus consus 64 Apr 4 09:50 1 -> /dev/pts/1
lrwx------ 1 consus consus 64 Apr 4 09:50 2 -> /dev/pts/1
lrwx------ 1 consus consus 64 Apr 4 09:50 3 -> socket:[79931]

$ lsof | grep 79931
mutt 25074 consus 3u IPv4 79931 0t0 TCP XX.XX.XX.XX:YYYY->imap.fastmail.com:imaps (ESTABLISHED)

Is there a way to prevent this?
I'm running Mutt 1.9.4 (2018-02-28) on Linux 4.15.14-gentoo.
Fabian Groffen
2018-04-08 17:51:57 UTC
Permalink
If you're not running USE=vanilla, you can hit ctrl-c a couple of times.
It's not ideal, but should speed up the process of breaking the hang.

This is what I added for Gentoo:
https://sourceforge.net/p/gentoomuttpatches/code/ci/mutt-1.9/tree/gentoo/0012-reconnect-faster.patch

Fabian
Post by Consus
Hi,
I have mutt connected to IMAPS server that hangs after waking up from
$ strace -fp $(pgrep mutt)
strace: Process 25074 attached
read(3,
$ ls -l /proc/25074/fd
total 0
lrwx------ 1 consus consus 64 Apr 4 09:50 0 -> /dev/pts/1
lrwx------ 1 consus consus 64 Apr 4 09:50 1 -> /dev/pts/1
lrwx------ 1 consus consus 64 Apr 4 09:50 2 -> /dev/pts/1
lrwx------ 1 consus consus 64 Apr 4 09:50 3 -> socket:[79931]
$ lsof | grep 79931
mutt 25074 consus 3u IPv4 79931 0t0 TCP XX.XX.XX.XX:YYYY->imap.fastmail.com:imaps (ESTABLISHED)
Is there a way to prevent this?
I'm running Mutt 1.9.4 (2018-02-28) on Linux 4.15.14-gentoo.
--
Fabian Groffen
Gentoo on a different level
Yoshiki Vazquez-Baeza
2018-04-08 17:56:56 UTC
Permalink
Hello,

Not sure if this is 100% technically accurate, but for me switching from
openSSL to GNUTLS helped with this, GNUTLS seems to have a better way of
handling timeouts.

Yoshiki.
Post by Consus
Hi,
I have mutt connected to IMAPS server that hangs after waking up from
$ strace -fp $(pgrep mutt)
strace: Process 25074 attached
read(3,
$ ls -l /proc/25074/fd
total 0
lrwx------ 1 consus consus 64 Apr 4 09:50 0 -> /dev/pts/1
lrwx------ 1 consus consus 64 Apr 4 09:50 1 -> /dev/pts/1
lrwx------ 1 consus consus 64 Apr 4 09:50 2 -> /dev/pts/1
lrwx------ 1 consus consus 64 Apr 4 09:50 3 -> socket:[79931]
$ lsof | grep 79931
mutt 25074 consus 3u IPv4 79931 0t0 TCP XX.XX.XX.XX:YYYY->imap.fastmail.com:imaps (ESTABLISHED)
Is there a way to prevent this?
I'm running Mutt 1.9.4 (2018-02-28) on Linux 4.15.14-gentoo.
Loading...