MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / tls_interact

Method tls_interact

mitmproxy/proxy/layers/tls.py:285–292  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

283 self.tls = tls_start.ssl_conn
284
285 def tls_interact(self) -> layer.CommandGenerator[None]:
286 while True:
287 try:
288 data = self.tls.bio_read(65535)
289 except SSL.WantReadError:
290 return # Okay, nothing more waiting to be sent.
291 else:
292 yield commands.SendData(self.conn, data)
293
294 def receive_handshake_data(
295 self, data: bytes

Callers 3

receive_dataMethod · 0.95
send_dataMethod · 0.95

Calls 1

bio_readMethod · 0.80

Tested by

no test coverage detected