Add additional debugging output to keepalive handling
This commit is contained in:
parent
01a4aeaaeb
commit
f7c4dd79f5
|
@ -202,12 +202,16 @@ int tport_tcp_init_secondary(tport_t *self, int socket, int accepted,
|
||||||
__func__, (void *)self,
|
__func__, (void *)self,
|
||||||
self->tp_params->tpp_keepalive));
|
self->tp_params->tpp_keepalive));
|
||||||
#if defined(TCP_KEEPIDLE)
|
#if defined(TCP_KEEPIDLE)
|
||||||
if (val != 0 && val != UINT_MAX)
|
if (val != 0 && val != UINT_MAX) {
|
||||||
setsockopt(socket, SOL_TCP, TCP_KEEPIDLE, (void *)&val, sizeof val);
|
SU_DEBUG_3(("%s(%p): Setting TCP_KEEPIDLE to %d\n",
|
||||||
|
__func__, (void *)self, val));
|
||||||
|
setsockopt(socket, SOL_TCP, TCP_KEEPIDLE, (void *)&val, sizeof val);}
|
||||||
#endif
|
#endif
|
||||||
#if defined(TCP_KEEPINTVL)
|
#if defined(TCP_KEEPINTVL)
|
||||||
if (val != 0 && val != UINT_MAX)
|
if (val != 0 && val != UINT_MAX) {
|
||||||
setsockopt(socket, SOL_TCP, TCP_KEEPINTVL, (void *)&val, sizeof val);
|
SU_DEBUG_3(("%s(%p): Setting TCP_KEEPINTVL to %d\n",
|
||||||
|
__func__, (void *)self, val));
|
||||||
|
setsockopt(socket, SOL_TCP, TCP_KEEPINTVL, (void *)&val, sizeof val);}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!accepted)
|
if (!accepted)
|
||||||
|
|
Loading…
Reference in New Issue