diff --git a/src/platform/posix/socket.c b/src/platform/posix/socket.c

index 047ce16..2a0f9d2 100644

--- a/src/platform/posix/socket.c

+++ b/src/platform/posix/socket.c

@@ -365,6 +365,7 @@ static iThreadResult connectAsync_Socket_(iThread *thd) {

             /* Ran out of addresses. */

             break;

         }

+ lock_Mutex(&d->mutex);

         iDebug("[Socket] connecting async to %s (addrSize:%u index:%d)\n",

                cstrCollect_String(toString_SockAddr(addr)),

                addrSize, indexInFamily);

@@ -375,6 +376,7 @@ static iThreadResult connectAsync_Socket_(iThread *thd) {

         }

         iDebug("[Socket] family:%d type:%d protocol:%d\n", sp.family, sp.type, sp.protocol);

         d->fd = socket(sp.family, sp.type, sp.protocol);

+ unlock_Mutex(&d->mutex);

         if (!setNonBlocking_Socket_(d, iTrue)) {

             /* Wait indefinitely. */

             rc = connect(d->fd, addr, addrSize);

Proxy Information
Original URL
gemini://git.skyjake.fi/the_Foundation/main/pcdiff/4072d834bab61e0e28765db63206291399f3bb4e
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
25.125504 milliseconds
Gemini-to-HTML Time
0.499324 milliseconds

This content has been proxied by September (ba2dc).