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

Fix sockpool wait_for_fd for old releases #554

Conversation

Coldwings
Copy link
Collaborator

Same as #553 but for dev/0.6

@Coldwings Coldwings force-pushed the fix/sockpool_waitforfd_old_releases branch 3 times, most recently from d7894fc to 856056d Compare September 11, 2024 02:42
@Coldwings Coldwings force-pushed the fix/sockpool_waitforfd_old_releases branch from 856056d to f30b83c Compare September 11, 2024 02:43
@Coldwings Coldwings force-pushed the fix/sockpool_waitforfd_old_releases branch from b1734db to 596440a Compare September 12, 2024 06:09
io/epoll.cpp Outdated
}
rm_interest({fd, interests, 0}); // no ONE_SHOT, to reconfig epoll
Copy link
Collaborator

Choose a reason for hiding this comment

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

it's might be safer to rm_interest(event) as before.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

io/kqueue.cpp Outdated
if (ret < 0) return errno == ETIMEDOUT ? 0 : -1;
if (count > LEN(_events))
count = LEN(_events);
static const struct timespec _tm = {0, 0};
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why static here, while not in enqueue()?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Use on-stack temporary timespec is fine. Changed in latest commit.

@Coldwings
Copy link
Collaborator Author

Discussed that old version may not need such fix. This fix will be dropped.

@Coldwings Coldwings closed this Sep 18, 2024
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