Skip to content

Conversation

tesonep
Copy link
Collaborator

@tesonep tesonep commented Aug 25, 2025

  • Adding a flag to handle if the socket is blocked in a send.
  • Handling the async event for this case.

Fix #939

- Handling the async event for this case.
@@ -261,7 +262,7 @@ typedef struct privateSocketStruct
#define SOCKETERROR(S) (PSP(S)->sockError)
#define SOCKETPEER(S) (PSP(S)->peer)
#define SOCKETPEERSIZE(S) (PSP(S)->peerSize)

#define SOCKET_WATINGTOSEND(S) (PSP(S)->waitingToSend)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] SOCKET_WATINGTOSEND -> SOCKET_WAITINGTOSEND

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Socket>>sendData: hot-spins if the other side is unresponsive
2 participants