wmbiff: handle EAGAIN or GNUTLS_E_AGAIN
commit01cdccc24109aeac61fd26ac049c116a2c5cadfb
authorTorrance, Douglas <dtorrance@piedmont.edu>
Wed, 13 Feb 2019 02:18:43 +0000 (13 02:18 +0000)
committerCarlos R. Mafra <crmafra@gmail.com>
Wed, 13 Feb 2019 02:32:15 +0000 (13 02:32 +0000)
treec85156e298476722842e812184884f2b52859032
parentc78465cae2c55351adf607fca4f322f16a0bacff
wmbiff: handle EAGAIN or GNUTLS_E_AGAIN

From Debian bug #917467, reported by Nye Liu <nyet@nyet.org> [1]:

If gnutls_read() or read() report EAGAIN, tlscomm_expect() fails:

wmbiff/nyet  comm: wrote a000 CAPABILITY
wmbiff/nyet  comm: imap.***.***:993: expecting: * CAPABILITY
wmbiff/nyet  comm: imap.***.***:993: gnutls error reading: Resource temporarily unavailable, try again.
wmbiff/nyet  imap4: unable to query capability stringwmbiff/nyet  comm: wrote a002 LOGOUT
wmbiff/nyet  comm: imap.***.***:993: closing.

[1] https://bugs.debian.org/917467
wmbiff/wmbiff/Imap4Client.c
wmbiff/wmbiff/tlsComm.c