Changeset 14179 for trunk


Ignore:
Timestamp:
06/14/12 17:49:14 (12 years ago)
Author:
tbretz
Message:
Changed keep alive time from 10s to 30s. This increases the latency time in case of real disconnects, but ensures that the FADs are ot disconnected only because of a short blocking
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Connection.cc

    r13259 r14179  
    297297        set_option(socket_base::keep_alive(true));
    298298
    299         const int optval = 10;
    300         // First keep alive after 10s
     299        const int optval = 30;
     300        // First keep alive after 30s
    301301        setsockopt(native(), SOL_TCP, TCP_KEEPIDLE, &optval, sizeof(optval));
    302         // New keep alive after 10s
     302        // New keep alive after 30s
    303303        setsockopt(native(), SOL_TCP, TCP_KEEPINTVL, &optval, sizeof(optval));
    304304
Note: See TracChangeset for help on using the changeset viewer.