getlantern / browsersunbounded

Interoperable browser-based P2P proxies for censorship circumvention
GNU General Public License v3.0
11 stars 0 forks source link

Implement functionality to clean up QUICLayer resources #132

Closed noahlevenson closed 1 year ago

noahlevenson commented 1 year ago

QUICLayer is a meaty abstraction that does a bunch of hidden stuff behind the scenes to maintain a QUIC connection to the egress server. We need a QUICLayer.Close function that cleans up all the resources and tidies up any dangling goroutines.

This is necessary now that we're integrating Broflake as a transport in Flashlight, because Flashlight's balancer must be trusted to create and destroy Broflake instances and any associated end-to-end connections at its own discretion.

noahlevenson commented 1 year ago

Addressed in https://github.com/getlantern/broflake/commit/f285e6b807f657b2ecc3aadb5eabe2f1d8739f1b