(self, client_sock, backend_sock, proxy)
| 156 | |
| 157 | class Connection: |
| 158 | def __init__(self, client_sock, backend_sock, proxy): |
| 159 | self.client_sock = client_sock |
| 160 | self.backend_sock = backend_sock |
| 161 | self.proxy = proxy |
| 162 | self.loop = proxy.loop |
| 163 | self.connectivity = proxy.connectivity |
| 164 | self.connectivity_loss = proxy.connectivity_loss |
| 165 | self.proxy_to_backend_task = None |
| 166 | self.proxy_from_backend_task = None |
| 167 | self.is_closed = False |
| 168 | self.client_reader = None |
| 169 | self.client_writer = None |
| 170 | |
| 171 | async def prepare(self): |
| 172 | """Optionally negotiate or inject faults before forwarding bytes.""" |
nothing calls this directly
no outgoing calls
no test coverage detected