in tcp_send(), KeepAlive and retransmit timers should be
rescheduled. Otherwise, if data packet is lost,
no transmission occurs. init_timer statements
should be added at the end of tcp_send():
...tcp_send(.....)
{
.......
// adjust KeepAlive timer
init_timer(s->persist_timerh, s->tout);
// adjust Retransmit timer
init_timer(s->retransmit_timerh,
TCP_DEF_RETRY_TOUT);
.....
}