Skip to content

Bugfix: Socket state can change between epoll and send#68

Merged
luke-jr merged 1 commit intoOCEAN-xyz:masterfrom
wizkid057:wkbugfix_sigpipe
Mar 7, 2025
Merged

Bugfix: Socket state can change between epoll and send#68
luke-jr merged 1 commit intoOCEAN-xyz:masterfrom
wizkid057:wkbugfix_sigpipe

Conversation

@wizkid057
Copy link
Copy Markdown
Member

Socket state can change and be improperly handled in the brief time between epoll and any send(...) from the application's client send buffer. Since this can lead to a SIGPIPE, despite the sockets being non-blocking, the gateway will exit without any descriptive error if this happens.

EPIPE is handled properly by existing datum_socket code.

@luke-jr luke-jr added the bug Something isn't working label Feb 9, 2025
@luke-jr luke-jr added this to the v0.2.3 milestone Feb 9, 2025
Copy link
Copy Markdown
Contributor

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

LGTM

@luke-jr luke-jr merged commit 44f0366 into OCEAN-xyz:master Mar 7, 2025
1 check passed
@wizkid057 wizkid057 deleted the wkbugfix_sigpipe branch March 8, 2025 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants