projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8240e9c
)
Make vconn-tcp log an error when the connection drops mid-packet.
author
Ben Pfaff
<blp@nicira.com>
Thu, 3 Apr 2008 16:28:13 +0000
(09:28 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Fri, 4 Apr 2008 23:20:55 +0000
(16:20 -0700)
lib/vconn-tcp.c
patch
|
blob
|
history
diff --git
a/lib/vconn-tcp.c
b/lib/vconn-tcp.c
index 5f468ae40efd47086415e47736f77b039ddcce3b..ea702605da955f44f49ec339c4e2d23d2dcaf419 100644
(file)
--- 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;
}