From 0de43f7b6038a0045c3f5f46fa74a6b2a394c112 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Wed, 29 Jul 2015 14:57:30 +0900 Subject: OF: send fin/ack in response to fin packet Calls socket's close(). Reported-by: Guru Chaitanya Perakam Signed-off-by: FUJITA Tomonori Tested-by: Guru Chaitanya Perakam --- ryu/controller/controller.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ryu/controller/controller.py b/ryu/controller/controller.py index 225c21f4..577c6dac 100644 --- a/ryu/controller/controller.py +++ b/ryu/controller/controller.py @@ -165,6 +165,7 @@ class Datapath(ofproto_protocol.ProtocolDesc): ret = self.socket.recv(required_len) if len(ret) == 0: self.is_active = False + self.socket.close() break buf += ret while len(buf) >= required_len: -- cgit v1.2.3