mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-11-17 19:30:54 +00:00
* take the request lock in open_stream_ before reusing the socket * Hold the request lock only while open_stream_ takes the socket The handle owns the connection once the socket is transferred to it, so holding request_mutex_ while the stream wrote its request and read the response head only made requests on other threads wait for the stream. Also shorten the comments. --------- Co-authored-by: yhirose <yuji.hirose.bug@gmail.com>