mirror of
https://github.com/typesense/typesense.git
synced 2025-05-21 14:12:27 +08:00
Close async curl socket on premature error.
This commit is contained in:
parent
23dbfd20d5
commit
b44a374229
@ -279,6 +279,8 @@ size_t HttpClient::curl_write_async_done(void *context, curl_socket_t item) {
|
||||
|
||||
if(!req_res->res->is_alive) {
|
||||
// underlying client request is dead, don't try to send anymore data
|
||||
// also, close the socket as we've overridden the close socket handler!
|
||||
close(item);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user