[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Be more proactive in filling TLS records



Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv15962/lib/mixminion

Modified Files:
	MMTPClient.py 
Log Message:
Be more proactive in filling TLS records

Index: MMTPClient.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/MMTPClient.py,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- MMTPClient.py	13 Jul 2003 03:45:33 -0000	1.36
+++ MMTPClient.py	4 Sep 2003 16:08:13 -0000	1.37
@@ -189,9 +189,8 @@
         try:
             ##
             # We write: "SEND\r\n", 28KB of data, and sha1(packet|"SEND").
-            self.tls.write(control)
-            self.tls.write(packet)
-            self.tls.write(sha1(packet+hashExtra))
+            written = control+packet+sha1(packet+hashExtra)
+            self.tls.write(written)
             LOG.debug("Packet sent; waiting for ACK")
 
             # And we expect, "RECEIVED\r\n", and sha1(packet|"RECEIVED")