Skip to content

Commit

Permalink
io tcp listener Windows #1428
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Soquet committed Oct 22, 2024
1 parent 37d1304 commit 006bf54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/io/socket/win/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void xs_tcp_constructor(xsMachine *the)
// #endif

u_long nonBlocking = 1;
ioctlsocket(the->connection, FIONBIO, &nonBlocking);
ioctlsocket(tcp->skt, FIONBIO, &nonBlocking);

tcp->task = modTimerAdd(kTaskInterval, kTaskInterval, tcpTask, &tcp, sizeof(tcp));

Expand Down

0 comments on commit 006bf54

Please sign in to comment.