From: Michael Vrable <mvrable@cs.ucsd.edu>
Date: Tue, 4 May 2010 04:46:50 +0000 (-0700)
Subject: A few more Azure/analysis updates.
X-Git-Url: http://git.vrable.net/?a=commitdiff_plain;h=c7533a0ca2daba2b3ac3df9b016fde8fafd0bd44;p=bluesky.git

A few more Azure/analysis updates.
---

diff --git a/azure/azure.py b/azure/azure.py
index 584b22b..0d19ed4 100755
--- a/azure/azure.py
+++ b/azure/azure.py
@@ -90,15 +90,16 @@ class Connection:
         response = self.conn.getresponse()
         print "Response:", response.status
         print "Headers:", response.getheaders()
-        print "Body:", response.read()
+        body = response.read()
 
 if __name__ == '__main__':
     # generate_request("/?comp=list")
-    buf = 'A' * 8192
+    buf = 'A' * 1048576
     conn = Connection()
     for i in range(16):
-        conn.make_request('/benchmark/file-' + str(i), 'PUT', buf,
+        conn.make_request('/benchmark/file-1M-' + str(i), 'PUT', buf,
                           {'x-ms-blob-type': 'BlockBlob'})
 
+    conn = Connection()
     for i in range(16):
-        conn.make_request('/benchmark/file-' + str(i), 'GET')
+        conn.make_request('/benchmark/file-1M-' + str(i), 'GET')
diff --git a/parsetrace/analyze-tcp.py b/parsetrace/analyze-tcp.py
index 54b32dc..47a3d7b 100755
--- a/parsetrace/analyze-tcp.py
+++ b/parsetrace/analyze-tcp.py
@@ -127,7 +127,7 @@ def analyze_get(packets):
             print "Short gap of", p.ts - last_ts
         if gap:
             print "    [occurred after", p.seq[0] - start_seq, "bytes, time", p.ts, "sec]"
-        if p.datalen < 1460:
+        if p.datalen not in (1448, 1460):
             print "Short packet of", p.datalen, "bytes, brings total to", p.seq[1] - start_seq
         last_ts = p.ts
         id_in = p.id