MCPcopy Index your code
hub / github.com/catchpoint/WebPageTest.tsproxy / HandleConnected

Method HandleConnected

tsproxy.py:580–593  ·  view source on GitHub ↗
(self, message)

Source from the content-addressed store, hash-verified

578 self.handle_write()
579
580 def HandleConnected(self, message):
581 if 'success' in message and self.state == self.STATE_CONNECTING:
582 response = chr(0x05)
583 if message['success']:
584 response += chr(0x00)
585 logging.debug('[{0:d}] Connected to {1}'.format(self.client_id, self.hostname))
586 self.state = self.STATE_CONNECTED
587 else:
588 response += chr(0x04)
589 self.state = self.STATE_ERROR
590 response += chr(0x00)
591 response += self.requested_address
592 self.buffer += response
593 self.handle_write()
594
595
596########################################################################################################################

Callers 1

handle_messageMethod · 0.95

Calls 1

handle_writeMethod · 0.95

Tested by

no test coverage detected