From: Max Vozeler Date: Wed, 12 Jan 2011 13:02:04 +0000 (+0200) Subject: staging: usbip: vhci: handle EAGAIN from SO_RCVTIMEO X-Git-Tag: v2.6.38-rc3~8^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd65f6233f6bc3233e7910752689fe3a45dc2e0c;p=pandora-kernel.git 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 Tested-by: Mark Wehby Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed