Fix Python3 tests
This commit is contained in:
parent
59aff68e7a
commit
4c292b0197
|
@ -45,7 +45,7 @@ class HangHandler(tcp.BaseHandler):
|
|||
self.connection.setblocking(0)
|
||||
ret = self.connection.recv(1)
|
||||
# Client connection is dead...
|
||||
if ret == "":
|
||||
if ret == "" or ret == b"":
|
||||
return
|
||||
except socket.error:
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue