From: Ben Pfaff Date: Thu, 3 Apr 2008 16:28:13 +0000 (-0700) Subject: Make vconn-tcp log an error when the connection drops mid-packet. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3140992bb722519cbd5d9f1babb1de41e4f8d353;p=openvswitch Make vconn-tcp log an error when the connection drops mid-packet. --- diff --git a/lib/vconn-tcp.c b/lib/vconn-tcp.c index 5f468ae4..ea702605 100644 --- a/lib/vconn-tcp.c +++ b/lib/vconn-tcp.c @@ -213,7 +213,12 @@ again: } return EAGAIN; } else if (retval == 0) { - return rx->size ? EPROTO : EOF; + if (rx->size) { + VLOG_ERR("connection dropped mid-packet"); + return EPROTO; + } else { + return EOF; + } } else { return retval ? errno : EAGAIN; }