Skip to content

Commit 47b9efa

Browse files
author
Clarkok Zhang
committed
Fix android getaddrinfo issue
1 parent 2214859 commit 47b9efa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

httplib.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3847,6 +3847,8 @@ inline int getaddrinfo_with_timeout(const char *node, const char *service,
38473847

38483848
// Allocate on the heap, so the resolver thread can keep using the data.
38493849
auto state = std::make_shared<GetAddrInfoState>();
3850+
state->node = node;
3851+
state->service = service;
38503852

38513853
std::thread resolve_thread([=]() {
38523854
auto thread_result = getaddrinfo(

0 commit comments

Comments
 (0)