diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-07-29 14:57:30 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-07-29 14:57:30 +0900 |
commit | 0de43f7b6038a0045c3f5f46fa74a6b2a394c112 (patch) | |
tree | eb5009e0f95cf8f6d425548f2840e5b0220db839 | |
parent | 7025a0fd6db1151140666a5c148afc856bc38ecb (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.py | 1 |
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: |