Skip to content

Commit

Permalink
More debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanTAllen committed Sep 2, 2023
1 parent aca479d commit 46d5ac7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/net/_test.pony
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/libponyrt/lang/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 46d5ac7

Please sign in to comment.