Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Close connection after follower is done proxying import.

Kishore Nallan1e1e4c8e07d8
diff --git a/src/http_client.cpp b/src/http_client.cpp
index 3bf1312b..10a3d061 100644
--- a/src/http_client.cpp
+++ b/src/http_client.cpp
@@ -247,6 +247,9 @@ size_t HttpClient::curl_write_async_done(void *context, curl_socket_t item) {
// wait until final response is flushed or response object will be destroyed by caller
req_res->res->wait();
+ // Close the socket as we've overridden the close socket handler!
+ close(item);
+
return 0;
}