#3957: IMAP IDLE hangs in gnutls after resume from ram ------------------------+--------------------- Reporter: thomasmey | Owner: brendan Type: defect | Status: new Priority: major | Milestone: Component: IMAP | Version: Resolution: | Keywords: ------------------------+---------------------
Comment (by thomasmey): {{{ 130│ static int tls_socket_read (CONNECTION* conn, char* buf, size_t len) 131│ { 132│ tlssockdata *data = conn->sockdata; 133│ int ret; 134│ 135│ if (!data) 136│ { 137│ mutt_error (_("Error: no TLS socket open")); 138│ mutt_sleep (2); 139│ return -1; 140│ } 141│ 142│ do { 143├> ret = gnutls_record_recv (data->state, buf, len); 144│ if (ret < 0 && gnutls_error_is_fatal(ret) == 1) 145│ { 146│ mutt_error ("tls_socket_read (%s)", gnutls_strerror (ret)); 147│ mutt_sleep (4); 148│ return -1; 149│ } 150│ } 151│ while (ret == GNUTLS_E_AGAIN || ret == GNUTLS_E_INTERRUPTED); 152│ 153│ return ret; 154│ } (gdb) f 2 #2 0x00007ff5c627457a in _gnutls_recv_in_buffers () from /lib64/libgnutls.so.30 (gdb) bt #0 0x00007ff5c566d93d in recv () from /lib64/libc.so.6 #1 0x00007ff5c627a3e8 in _gnutls_io_read_buffered () from /lib64/libgnutls.so.30 #2 0x00007ff5c627457a in _gnutls_recv_in_buffers () from /lib64/libgnutls.so.30 #3 0x00007ff5c6275f19 in _gnutls_recv_int () from /lib64/libgnutls.so.30 #4 0x000055f2a9c55f89 in tls_socket_read (conn=<optimized out>, buf=0x55f2ab35bf40 "+ entering idle mode\r\n.\r\nWhat isn't clear is if this approach will work for LDAP (JNDI)\r\nconnection s or kerberos setups, SSO setups, etc. It may also be\r\nversion specific to tomcat (running 7.0.76 at "..., len=1024) at mutt_ssl_gnutls.c:143 #5 0x000055f2a9c583b1 in mutt_sasl_conn_read (conn=0x55f2ab35bd30, buf=0x55f2ab35bf40 "+ entering idle mode\r\n.\r\nWhat isn't clear is if this approach will work for LDAP (JNDI)\r\nconnect ions or kerberos setups, SSO setups, etc. It may also be\r\nversion specific to tomcat (running 7.0.76 at "..., len=1024) at mutt_sasl.c:558 #6 0x000055f2a9c55369 in mutt_socket_readchar (conn=conn@entry=0x55f2ab35bd30, c=c@entry=0x7ffcc52a7287 "") at mutt_socket.c:172 #7 0x000055f2a9c554a8 in mutt_socket_readln_d (buf=0x55f2ab74cb50 "+ entering idle mode", buflen=512, conn=0x55f2ab35bd30, dbg=dbg@entry=2) at mutt_socket.c:202 #8 0x000055f2a9c5dba9 in imap_cmd_step (idata=0x55f2ab35d7d0) at command.c:114 #9 0x000055f2a9c5f3a8 in imap_cmd_idle (idata=idata@entry=0x55f2ab35d7d0) at command.c:317 #10 0x000055f2a9c61742 in imap_check_mailbox (ctx=ctx@entry=0x55f2b1e9e1d0, index_hint=index_hint@entry=0x7ffcc52a73ac, force=force@entry=0) at imap.c:1446 #11 0x000055f2a9c61ebe in imap_check_mailbox_reopen (ctx=0x55f2b1e9e1d0, index_hint=0x7ffcc52a73ac) at imap.c:1492 #12 0x000055f2a9bd81ee in mutt_index_menu () at curs_main.c:557 #13 0x000055f2a9bbed93 in main (argc=<optimized out>, argv=0x7ffcc52a87f8, environ=<optimized out>) at main.c:1246 }}} -- Ticket URL: <https://dev.mutt.org/trac/ticket/3957#comment:1> Mutt <http://www.mutt.org/> The Mutt mail user agent