Skip to content

Commit ebe3db0

Browse files
committed
Trace win behaviour
1 parent 9e5880e commit ebe3db0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/std/net/os/win32.c3

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,20 @@ int wsa_init @local;
3232

3333
macro void? start_wsa()
3434
{
35+
io::printn("Start WSA check");
3536
if (mem::compare_exchange(&wsa_init, 0, 2) == 2)
3637
{
3738
Win32_WORD version = 0x0202;
39+
io::printn("Start WSA");
3840
CInt wsa_error = win32::wsaStartup(version, &wsa_data);
3941
if (wsa_error > 0)
4042
{
43+
io::printn("Start WSA failed");
4144
mem::@atomic_store(wsa_init, 0);
4245
return os::socket_error()?;
4346
}
4447
mem::@atomic_store(wsa_init, 1);
48+
io::printn("Start WSA ok");
4549
}
4650
}
4751

test/unit/stdlib/net/tcp_socketpair.c3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import std::net;
33

44
fn void test_tcp_sock_pair()
55
{
6-
tcp::TcpSocketPair sockets;
6+
TcpSocketPair sockets;
77
sockets.init()!!;
88
defer sockets.destroy()!!;
99

0 commit comments

Comments
 (0)