Changeset 9629


Ignore:
Timestamp:
Nov 29, 2009, 8:53:14 AM (12 years ago)
Author:
charles
Message:

(trunk libT) add SO_SNDBUF, SO_RCVBUF logging messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fdlimit.c

    r9505 r9629  
    653653
    654654    assert( gFd->socketCount >= 0 );
     655
     656    if( s >= 0 )
     657    {
     658        static tr_bool buf_logged = FALSE;
     659        if( !buf_logged )
     660        {
     661            int i;
     662            socklen_t size = sizeof( int );
     663            buf_logged = TRUE;
     664            getsockopt( s, SOL_SOCKET, SO_SNDBUF, &i, &size );
     665            tr_inf( "SO_SNDBUF size is %d", i );
     666            getsockopt( s, SOL_SOCKET, SO_RCVBUF, &i, &size );
     667            tr_inf( "SO_RCVBUF size is %d", i );
     668        }
     669    }
     670
    655671    return s;
    656672}
Note: See TracChangeset for help on using the changeset viewer.