Ignore:
Timestamp:
2008-03-23T14:29:19Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
dd14ecc
Parents:
851a8c2
Message:

Fixed stalling issue with OpenSSL and Jabber (#368).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/io.c

    r851a8c2 r8a2221a7  
    241241        }
    242242       
    243         /* EAGAIN/etc or a successful read. */
    244         return TRUE;
     243        if( ssl_pending( jd->ssl ) )
     244                /* OpenSSL empties the TCP buffers completely but may keep some
     245                   data in its internap buffers. select() won't see that, but
     246                   ssl_pending() does. */
     247                return jabber_read_callback( data, fd, cond );
     248        else
     249                return TRUE;
    245250}
    246251
Note: See TracChangeset for help on using the changeset viewer.