Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Oct 31, 2024

When connect fails on a NON_BLOCKING socket the socket is supposed to become writable and the status made available via SO_ERROR.

Without this change test_sockets_echo_client.c will loop forever polling for read/write status on the socket fd.

@sbc100 sbc100 requested review from dschuff, juj and kripken October 31, 2024 18:01
@sbc100 sbc100 force-pushed the socket_error_reporting branch from 2670f8e to a965ee2 Compare October 31, 2024 19:02
When connect fails on a NON_BLOCKING socket the socket is supposed
to become writable and the status made available via SO_ERROR.

Without this change `test_sockets_echo_client.c` will loop forever
polling for read/write status on the socket fd.
@sbc100 sbc100 force-pushed the socket_error_reporting branch from a965ee2 to 37819ae Compare October 31, 2024 21:01
@sbc100 sbc100 merged commit 5c637a6 into emscripten-core:main Oct 31, 2024
13 of 28 checks passed
@sbc100 sbc100 deleted the socket_error_reporting branch October 31, 2024 21:37
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.

2 participants