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')
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