diff options
author | 2011-01-12 15:02:04 +0200 | |
---|---|---|
committer | 2011-01-20 16:01:49 -0800 | |
commit | bd65f6233f6bc3233e7910752689fe3a45dc2e0c (patch) | |
tree | 40cf7fc453f735f006ab4d2a97549abfe1d9e9e0 /kernel | |
parent | staging: usbip: vhci: friendly log messages for connection errors (diff) | |
download | wireguard-linux-bd65f6233f6bc3233e7910752689fe3a45dc2e0c.tar.xz wireguard-linux-bd65f6233f6bc3233e7910752689fe3a45dc2e0c.zip |
staging: usbip: vhci: handle EAGAIN from SO_RCVTIMEO
If there is a receive timeout without any active
requests, we can tell the connection was idle and
ignore the timeout.
If there are active requests for which we expect
to receive a reply we close the connection.
This makes it possible to set an upper bound on
the time a usbip device may be unresponsive.
This is a workaround for the lack of heart-beat
messages in the USBIP protocol.
Extending the protocol would break compatibility
with all previous stub versions, so this seems like
the lesser evil.
Signed-off-by: Max Vozeler <max@vozeler.com>
Tested-by: Mark Wehby <MWehby@luxotticaRetail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions