benjamin-bader / amanuensis

ah - MAN - you - EN - sis: Web Traffic Inspector
GNU General Public License v3.0
2 stars 0 forks source link

Race condition still exists in TLS tunnels #47

Closed benjamin-bader closed 2 years ago

benjamin-bader commented 2 years ago

I don't know what I was thinking with #46. Obviously if both sides of a TLS tunnel race on the close, they'll race with close/read, close/write, and vice versa.

I guess we need a mutex guarding both client and remote connections, or possibly a separate TlsTunnel type to manage the two pipes together.