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

Method handle_close

tsproxy.py:545–562  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

543 pass
544
545 def handle_close(self):
546 global last_client_disconnected
547 logging.info('[{0:d}] Browser Connection Closed by browser'.format(self.client_id))
548 self.state = self.STATE_ERROR
549 self.close()
550 try:
551 if self.client_id in connections:
552 if 'client' in connections[self.client_id]:
553 del connections[self.client_id]['client']
554 if 'server' in connections[self.client_id]:
555 self.SendMessage('closed', {})
556 else:
557 del connections[self.client_id]
558 if not connections:
559 last_client_disconnected = current_time()
560 logging.info('[{0:d}] Last Browser disconnected'.format(self.client_id))
561 except:
562 pass
563
564 def HandleResolved(self, message):
565 global dns_cache

Callers 2

handle_messageMethod · 0.95
handle_writeMethod · 0.95

Calls 1

SendMessageMethod · 0.95

Tested by

no test coverage detected