UDP socket closing fix
- invalid data or an incomplete read on UDP socket caused it to close
This commit is contained in:
parent
9cffd50de8
commit
7e0932815d
|
@ -114,6 +114,9 @@ class BMProto(AdvancedDispatcher, ObjectTracker):
|
|||
logger.debug("%s:%i already got object, skipping", self.destination.host, self.destination.port)
|
||||
except struct.error:
|
||||
logger.debug("decoding error, skipping")
|
||||
elif self.socket.type == socket.SOCK_DGRAM:
|
||||
# broken read, ignore
|
||||
pass
|
||||
else:
|
||||
#print "Skipping command %s due to invalid data" % (self.command)
|
||||
logger.debug("Closing due to invalid command %s", self.command)
|
||||
|
|
Loading…
Reference in New Issue
Block a user