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>
This commit is contained in:
FUJITA Tomonori 2015-07-29 14:57:30 +09:00
parent 7025a0fd6d
commit 0de43f7b60

View File

@ -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: