You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a new public function of ares_process_fds() to work around the shortcomings of ares_process_fd() and ares_process().
This new function allows integrators to specify more than one file descriptor at a time in an array, with an event mask per file descriptor. It also adds a flags parameter which can be used to skip extra expensive processing if they may be calling the function multiple times before waiting on more events.
This new function is used by the event thread, and all the other functions internally call this new function simplifying the code structure.
@bradh352 , this commit caused a regression, where now if I use the event thread and do two consecutive lookups with a dead server, the second lookup hangs forever. Please see the attached simple test program for a quick reproducer. test-pr-875.zip
@bradh352 , this commit caused a regression, where now if I use the event thread and do two consecutive lookups with a dead server, the second lookup hangs forever. Please see the attached simple test program for a quick reproducer. test-pr-875.zip
Do you think this is the same as #1000 ? I really meant to have time to look into that.
@bradh352 , this commit caused a regression, where now if I use the event thread and do two consecutive lookups with a dead server, the second lookup hangs forever. Please see the attached simple test program for a quick reproducer. test-pr-875.zip
Do you think this is the same as #1000 ? I really meant to have time to look into that.
Oh, yes that's exactly the same issue.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a new public function of
ares_process_fds()to work around the shortcomings ofares_process_fd()andares_process().This new function allows integrators to specify more than one file descriptor at a time in an array, with an event mask per file descriptor. It also adds a flags parameter which can be used to skip extra expensive processing if they may be calling the function multiple times before waiting on more events.
This new function is used by the event thread, and all the other functions internally call this new function simplifying the code structure.
Authored-By: Brad House (@bradh352)