-
Notifications
You must be signed in to change notification settings - Fork 118
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
Fix sockpool wait_for_fd for old releases #554
Conversation
d7894fc
to
856056d
Compare
856056d
to
f30b83c
Compare
b1734db
to
596440a
Compare
io/epoll.cpp
Outdated
} | ||
rm_interest({fd, interests, 0}); // no ONE_SHOT, to reconfig epoll |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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}; |
There was a problem hiding this comment.
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()?
There was a problem hiding this comment.
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.
Discussed that old version may not need such fix. This fix will be dropped. |
Same as #553 but for dev/0.6