The patch 0034 mentioned in comment #10 is applied in the xenial package 2.1.26.dfsg1-14build1, so what Roberto hit could be a different issue requiring a different fix.
Might have been this:
cyrus-sasl2 (2.1.26.dfsg1-15) unstable; urgency=medium
* Add fix for auth_rimap infinite loop (hang) when IMAP server closes
connection (Closes: #815208)
The patch 0034 mentioned in comment #10 is applied in the xenial package 2.1.26. dfsg1-14build1, so what Roberto hit could be a different issue requiring a different fix.
Might have been this:
cyrus-sasl2 (2.1.26.dfsg1-15) unstable; urgency=medium
* Add fix for auth_rimap infinite loop (hang) when IMAP server closes
connection (Closes: #815208)
Patch is https:/ /bugs.debian. org/cgi- bin/bugreport. cgi?att= 1;bug=815208; filename= auth_rimap_ socket_ closed. patch;msg= 5: auth_rimap. c auth_rimap. c
rc = ret;
break;
rc = ret;
break;
--- a/saslauthd/
+++ b/saslauthd/
@@ -494,7 +494,7 @@
while( select (fds, &perm, NULL, NULL, &timeout ) >0 ) {
if ( FD_ISSET(s, &perm) ) {
ret = read(s, rbuf+rc, sizeof(rbuf)-rc);
- if ( ret<0 ) {
+ if ( ret<=0 ) {
} else {
@@ -607,7 +607,7 @@
while( select (fds, &perm, NULL, NULL, &timeout ) >0 ) {
if ( FD_ISSET(s, &perm) ) {
ret = read(s, rbuf+rc, sizeof(rbuf)-rc);
- if ( ret<0 ) {
+ if ( ret<=0 ) {
} else {