Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

temp fix: keep retrying writing until succeed on EAGAIN #12

Merged
merged 2 commits into from
Jun 26, 2024

Conversation

gaukas
Copy link
Contributor

@gaukas gaukas commented Jun 21, 2024

As a temporary solution, in good faith we keep on trying writing the same message to the fd and hope that it does not take too many retries to succeed.

In the long run, we might want to implement a pending-write-msg queue instead.

Fix #11.

temp fix: keep retrying writing until succeed on EAGAIN

Signed-off-by: Gaukas Wang <i@gaukas.wang>
@gaukas gaukas self-assigned this Jun 21, 2024
@gaukas
Copy link
Contributor Author

gaukas commented Jun 21, 2024

As usual, this change should be backported into v0 as well.

@gaukas gaukas marked this pull request as draft June 21, 2024 16:40
backporting the change from v1 to v0:

* fix: naively handle errno 6 EAGAIN on write

Signed-off-by: Gaukas Wang <i@gaukas.wang>
@gaukas gaukas marked this pull request as ready for review June 24, 2024 17:24
@gaukas
Copy link
Contributor Author

gaukas commented Jun 24, 2024

Ready for review! @erikziyunchi

@gaukas gaukas added the bug Something isn't working label Jun 25, 2024
Copy link
Member

@erikziyunchi erikziyunchi left a comment

Choose a reason for hiding this comment

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

Thanks for the temp fix!

@gaukas gaukas merged commit b069a22 into master Jun 26, 2024
14 checks passed
@gaukas gaukas deleted the fix-write-errno6 branch July 15, 2024 05:55
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.

bug: unfairWorker: remoteConn.Write: errno 6 under high writing pressure
2 participants