Changeset 16691 for trunk/FACT++/src


Ignore:
Timestamp:
06/04/13 16:48:09 (11 years ago)
Author:
tbretz
Message:
Nagle switched off... no idea if this makes any sense, but it could theoretically improve the speed with which the fad boards know that we have correctly received the data.
File:
1 edited

Legend:

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

    r16619 r16691  
    313313
    314314    int optval = 1;
     315    if (setsockopt(socket, IPPROTO_TCP, TCP_NODELAY, &optval, sizeof(int)) < 0)
     316        factPrintf(MessageImp::kInfo, "Setting TCP_NODELAY for socket %d failed: %m (setsockopt,rc=%d)", sockId, errno);
     317
     318    optval = 1;
    315319    if (setsockopt (socket, SOL_SOCKET, SO_KEEPALIVE, &optval, sizeof(int)) < 0)
    316320        factPrintf(MessageImp::kInfo, "Setting SO_KEEPALIVE for socket %d failed: %m (setsockopt,rc=%d)", sockId, errno);
Note: See TracChangeset for help on using the changeset viewer.