Signed-off-by: YAMAMOTO Takashi <yamam...@valinux.co.jp>
---
 ryu/call_via_pipe.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ryu/call_via_pipe.py b/ryu/call_via_pipe.py
index 4e96d9a..06600a6 100644
--- a/ryu/call_via_pipe.py
+++ b/ryu/call_via_pipe.py
@@ -35,8 +35,12 @@ def send_msg(fd, msg):
 
 def recv_msg(fd):
     hdr = os.read(fd, HEADER_SIZE)
+    if len(hdr) == 0:
+        raise EOFError
     blen, = struct.unpack(HEADER_FORMAT, hdr)
     msg_str = os.read(fd, blen)
+    if len(msg_str) == 0:
+        raise EOFError
     return pickle.loads(msg_str)
 
 
-- 
1.8.0.1


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to