summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-07-29 14:57:30 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-07-29 14:57:30 +0900
commit0de43f7b6038a0045c3f5f46fa74a6b2a394c112 (patch)
treeeb5009e0f95cf8f6d425548f2840e5b0220db839
parent7025a0fd6db1151140666a5c148afc856bc38ecb (diff)
OF: send fin/ack in response to fin packet
Calls socket's close(). Reported-by: Guru Chaitanya Perakam <gperakam@Brocade.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Tested-by: Guru Chaitanya Perakam <gperakam@Brocade.com>
-rw-r--r--ryu/controller/controller.py1
1 files changed, 1 insertions, 0 deletions
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: