- Timestamp:
- 06/14/12 17:49:14 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Connection.cc
r13259 r14179 297 297 set_option(socket_base::keep_alive(true)); 298 298 299 const int optval = 10;300 // First keep alive after 10s299 const int optval = 30; 300 // First keep alive after 30s 301 301 setsockopt(native(), SOL_TCP, TCP_KEEPIDLE, &optval, sizeof(optval)); 302 // New keep alive after 10s302 // New keep alive after 30s 303 303 setsockopt(native(), SOL_TCP, TCP_KEEPINTVL, &optval, sizeof(optval)); 304 304
Note:
See TracChangeset
for help on using the changeset viewer.