|
@@ -504,13 +504,14 @@ class ConnectionRepository(
|
|
|
pass
|
|
pass
|
|
|
|
|
|
|
|
def send(self, datagram):
|
|
def send(self, datagram):
|
|
|
- if ConnectionRepository.notify.getDebug():
|
|
|
|
|
- print "ConnectionRepository sending datagram:"
|
|
|
|
|
- datagram.dumpHex(ostream)
|
|
|
|
|
-
|
|
|
|
|
- self.sendDatagram(datagram)
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ # Zero-length datagrams might freak out the server. No point
|
|
|
|
|
+ # in sending them, anyway.
|
|
|
|
|
+ if datagram.getLength() > 0:
|
|
|
|
|
+ if ConnectionRepository.notify.getDebug():
|
|
|
|
|
+ print "ConnectionRepository sending datagram:"
|
|
|
|
|
+ datagram.dumpHex(ostream)
|
|
|
|
|
+
|
|
|
|
|
+ self.sendDatagram(datagram)
|
|
|
|
|
|
|
|
# debugging funcs for simulating a network-plug-pull
|
|
# debugging funcs for simulating a network-plug-pull
|
|
|
def pullNetworkPlug(self):
|
|
def pullNetworkPlug(self):
|