Navigation


Changeset 779:867156be8353 in freeDiameter


Ignore:
Timestamp:
Jan 27, 2012, 3:41:22 PM (12 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Always use REUSEADDR, not only in DEBUG

Location:
libfdcore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/sctp.c

    r740 r779  
    6767        CHECK_PARAMS( sk > 0 );
    6868       
    69 #ifdef DEBUG
    7069        {
    7170                int reuse = 1;
    7271                CHECK_SYS(  setsockopt(sk, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof(reuse))  );
    7372        }
    74 #endif /* DEBUG */
    7573       
    7674#ifdef ADJUST_RTX_PARAMS
  • libfdcore/tcp.c

    r740 r779  
    8181        #endif /* IPV6_V6ONLY */
    8282       
    83 #ifdef DEBUG
    8483        {
    8584                opt = 1;
    8685                CHECK_SYS(  setsockopt(sk, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt))  );
    8786        }
    88 #endif /* DEBUG */
    89        
    9087       
    9188        /* There are also others sockopt that can be set, but nothing useful for us AFAICT */
Note: See TracChangeset for help on using the changeset viewer.