Changeset 5330e3d


Ignore:
Timestamp:
2006-05-14T09:05:41Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
85cf37f, b8b8c6c
Parents:
919c27c
Message:

Oops, closesocket() didn't handle sockets with both a read- and a
write-handler very well yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/events_libevent.c

    r919c27c r5330e3d  
    229229           properly before closing a socket. */
    230230       
    231         if( ( b_ev = g_hash_table_lookup( read_hash, &fd ) ) || ( b_ev = g_hash_table_lookup( write_hash, &fd ) ) )
    232         {
    233                 event_debug( "Warning: Had to clean up some event handlers before closing fd %d.\n", fd );
     231        if( b_ev = g_hash_table_lookup( read_hash, &fd ) )
     232        {
     233                event_debug( "Warning: fd %d still had a read event handler when shutting down.\n", fd );
    234234                b_event_remove( b_ev->id );
    235235        }
     236        if( b_ev = g_hash_table_lookup( write_hash, &fd ) )
     237        {
     238                event_debug( "Warning: fd %d still had a write event handler when shutting down.\n", fd );
     239                b_event_remove( b_ev->id );
     240        }
    236241       
    237242        close( fd );
Note: See TracChangeset for help on using the changeset viewer.