facebook / proxygen

A collection of C++ HTTP libraries including an easy to use HTTP server.
Other
8.03k stars 1.47k forks source link

Detaching Socket #461

Closed SteveSelva closed 7 months ago

SteveSelva commented 8 months ago

How to safely close a proxygen::HTTPSession and detach the folly::NetworkSocket without closing the socket communication?

afrind commented 8 months ago

Can you share a bit about your use case? This is not common. There's an accessor for the underlying transport (getTransport) from which you can probably call detachNetworkSocket, but I'm not sure about doing so safely and with clean closure.