Problem with TCP KEEP_ALIVE feature

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,



I am using KEEP_ALIVE mechanism to detect connection break. 

But the Connection is getting RESET in middle of data transfers because i am only receiving data and not sending any data.



But the KEEP_ALIVE code is taking care of only received ack time stamp.If I am not sending  any data I will always be a victim of this code.



I am referring to tcp_timer.c code.



        elapsed = keepalive_time_when(tp);



       if (tp->packets_out || tcp_send_head(sk))

                goto resched;



        elapsed = tcp_time_stamp - tp->rcv_tstamp;



        if (elapsed >= keepalive_time_when(tp)) {



Can anyone please help me on this.





Regards

Mohan









      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux