diff --git a/packages/net/_test.pony b/packages/net/_test.pony index ea362ce46a..499f966d23 100644 --- a/packages/net/_test.pony +++ b/packages/net/_test.pony @@ -458,6 +458,9 @@ class \nodoc\ _TestTCPMuteReceiveNotify is TCPConnectionNotify _h.complete(false) true + fun ref closed(conn: TCPConnection ref) => + printf("_TestTCPMuteReceiveNotify closed\n".cstring()) + fun ref connect_failed(conn: TCPConnection ref) => _h.fail_action("receiver connect failed") @@ -491,6 +494,9 @@ class \nodoc\ _TestTCPMuteSendNotify is TCPConnectionNotify _h.complete_action("sender sent data") true + fun ref closed(conn: TCPConnection ref) => + printf("_TestTCPMuteSendNotify closed\n".cstring()) + class \nodoc\ iso _TestTCPUnmute is UnitTest """ Test that the `unmute` behavior will allow a connection to start reading diff --git a/src/libponyrt/lang/socket.c b/src/libponyrt/lang/socket.c index edffd4bd95..7be4a53824 100644 --- a/src/libponyrt/lang/socket.c +++ b/src/libponyrt/lang/socket.c @@ -385,6 +385,7 @@ static bool iocp_recv(asio_event_t* ev, char* data, size_t len) { if(GetLastError() != WSA_IO_PENDING) { + printf("iocp_recv error: %ld\n".cstring(), GetLastError()); iocp_destroy(iocp); return false; }