From c7533a0ca2daba2b3ac3df9b016fde8fafd0bd44 Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Mon, 3 May 2010 21:46:50 -0700 Subject: [PATCH] A few more Azure/analysis updates. --- azure/azure.py | 9 +++++---- parsetrace/analyze-tcp.py | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) 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 -- 2.20.1