1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-26 18:43:33 -05:00
linux/net/rxrpc
David Howells 415f44e432 rxrpc: Add keepalive for a call
We need to transmit a packet every so often to act as a keepalive for the
peer (which has a timeout from the last time it received a packet) and also
to prevent any intervening firewalls from closing the route.

Do this by resetting a timer every time we transmit a packet.  If the timer
ever expires, we transmit a PING ACK packet and thereby also elicit a PING
RESPONSE ACK from the other side - which prevents our last-rx timeout from
expiring.

The timer is set to 1/6 of the last-rx timeout so that we can detect the
other side going away if it misses 6 replies in a row.

This is particularly necessary for servers where the processing of the
service function may take a significant amount of time.

Signed-off-by: David Howells <dhowells@redhat.com>
2017-11-24 10:18:42 +00:00
..
af_rxrpc.c rxrpc: Split the call params from the operation params 2017-11-24 10:18:41 +00:00
ar-internal.h rxrpc: Add keepalive for a call 2017-11-24 10:18:42 +00:00
call_accept.c rxrpc: Provide a different lockdep key for call->user_mutex for kernel calls 2017-11-24 10:18:40 +00:00
call_event.c rxrpc: Add keepalive for a call 2017-11-24 10:18:42 +00:00
call_object.c rxrpc: Add a timeout for detecting lost ACKs/lost DATA 2017-11-24 10:18:42 +00:00
conn_client.c rxrpc: Fix call timeouts 2017-11-24 10:18:41 +00:00
conn_event.c rxrpc: Delay terminal ACK transmission on a client call 2017-11-24 10:18:41 +00:00
conn_object.c rxrpc: Delay terminal ACK transmission on a client call 2017-11-24 10:18:41 +00:00
conn_service.c
input.c rxrpc: Add a timeout for detecting lost ACKs/lost DATA 2017-11-24 10:18:42 +00:00
insecure.c
Kconfig
key.c
local_event.c
local_object.c
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
misc.c rxrpc: Fix call timeouts 2017-11-24 10:18:41 +00:00
net_ns.c
output.c rxrpc: Add keepalive for a call 2017-11-24 10:18:42 +00:00
peer_event.c
peer_object.c
proc.c
protocol.h
recvmsg.c rxrpc: Add a timeout for detecting lost ACKs/lost DATA 2017-11-24 10:18:42 +00:00
rxkad.c
security.c
sendmsg.c rxrpc: Add a timeout for detecting lost ACKs/lost DATA 2017-11-24 10:18:42 +00:00
skbuff.c
sysctl.c rxrpc: Fix call timeouts 2017-11-24 10:18:41 +00:00
utils.c