>From 88384aefdbfefbdd7f899a499211b8b260ad0ed0 Mon Sep 17 00:00:00 2001
From: Nils Goroll <nils.goroll@uplex.de>
Date: Thu, 13 Oct 2011 14:53:28 +0200
Subject: [PATCH] With SO_(RCV|SND)TIMEDOUT, we also see ETIMEO for ioctl()

---
 include/vtcp.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/include/vtcp.h b/include/vtcp.h
index 022f101..fb04ccb 100644
--- a/include/vtcp.h
+++ b/include/vtcp.h
@@ -37,9 +37,11 @@
 /*
  * Solaris returns EINVAL if the other end unexepectedly reset the
  * connection.  This is a bug in Solaris and documented behaviour on NetBSD.
+ *
+ * With SO_(RCV|SND)TIMEDOUT, we also see ETIMEDOUT for ioctl()
  */
 #define VTCP_Check(a) ((a) == 0 || errno == ECONNRESET || errno == ENOTCONN \
-    || errno == EINVAL)
+    || errno == ETIMEDOUT || errno == EINVAL)
 #else
 #define VTCP_Check(a) ((a) == 0 || errno == ECONNRESET || errno == ENOTCONN)
 #endif
-- 
1.5.6.5

