Python3: Explicit string type encoding
Reviewed-by: IWAMOTO Toshihiro <iwamoto@valinux.co.jp> Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
55a88d6805
commit
f86499373a
@ -233,8 +233,6 @@ class Datapath(ofproto_protocol.ProtocolDesc):
|
||||
|
||||
count = 0
|
||||
while self.state != DEAD_DISPATCHER:
|
||||
ret = ""
|
||||
|
||||
try:
|
||||
ret = self.socket.recv(required_len)
|
||||
except SocketTimeout:
|
||||
|
@ -101,7 +101,7 @@ class BgpProtocol(Protocol, Activity):
|
||||
Activity.__init__(self, name=activity_name)
|
||||
# Intialize instance variables.
|
||||
self._peer = None
|
||||
self._recv_buff = ''
|
||||
self._recv_buff = b''
|
||||
self._socket = socket
|
||||
self._socket.setsockopt(IPPROTO_TCP, TCP_NODELAY, 1)
|
||||
self._sendlock = semaphore.Semaphore()
|
||||
|
Loading…
x
Reference in New Issue
Block a user