Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Unified Diff: telemetry/third_party/websocket-client/websocket.py

Issue 2236493003: [catapult android trybot] Make Telemetry tests run on Android (Closed) Base URL: git@github.com:catapult-project/catapult.git@master
Patch Set: Add stack traces and more logging Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « telemetry/telemetry/web_perf/timeline_based_page_test_unittest.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/third_party/websocket-client/websocket.py
diff --git a/telemetry/third_party/websocket-client/websocket.py b/telemetry/third_party/websocket-client/websocket.py
index 70f0260d30c661837765cc02cad5ffe7d7bebd75..8efc4a00caacdb4d7fc4a0a4705c449cc809d23d 100644
--- a/telemetry/third_party/websocket-client/websocket.py
+++ b/telemetry/third_party/websocket-client/websocket.py
@@ -452,6 +452,12 @@ class WebSocket(object):
else:
raise WebSocketException("SSL not available.")
+ print "STARTING HANDSHAKE: %s" % time.time()
+ print " hostname: %s" % hostname
+ print " port: %s" % port
+ print " START TRACEBACK"
+ import traceback; traceback.print_stack()
+ print "END TRACEBACK"
self._handshake(hostname, port, resource, **options)
def _handshake(self, host, port, resource, **options):
@@ -489,6 +495,7 @@ class WebSocket(object):
status, resp_headers = self._read_headers()
if status != 101:
+ print "FAILED HANDSHAKE: %s" % time.time()
self.close()
raise WebSocketException("Handshake Status %d" % status)
@@ -497,6 +504,7 @@ class WebSocket(object):
self.close()
raise WebSocketException("Invalid WebSocket Header")
+ print "HANDSHAKE SUCCEEDED"
self.connected = True
def _validate_header(self, headers, key):
« no previous file with comments | « telemetry/telemetry/web_perf/timeline_based_page_test_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698