Ignore:
Timestamp:
Dec 20, 2008, 8:51:32 AM (12 years ago)
Author:
jhujhiti
Message:

(trunk libT) Don't log two "errors" we expect to see from time-to-time.

EAFNOSUPPORT: On OS X, socket() incorrectly throws EAFNOSUPPORT for certain
IP/Port combinations. There is nothing we can do about this.

ENETUNREACH: #1606 is evidence that some trackers return IPv6 peers when
contacted over IPv4. This code will silently ignore "network unreachable"
errors for IPv6 connections.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fdlimit.c

    r7397 r7439  
    460460        if( ( s = socket( domain, type, 0 ) ) < 0 )
    461461        {
     462#ifdef SYS_DARWIN
     463            if( sockerrno != EAFNOSUPPORT )
     464#endif
    462465            tr_err( _( "Couldn't create socket: %s" ),
    463466                   tr_strerror( sockerrno ) );
Note: See TracChangeset for help on using the changeset viewer.