Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
libflux/msg_handler: improve lookup of message handlers for RPCs #1807
As discussed in #1804, this PR simplifies the mechanism used to look up message handlers (by integer matchtag) for received request messages. The current mechanism is hand-coded table lookup. The replacement is
There is some additional cleanup of errno handling and handling of invalid arguments.
A trivial test was added to ensure invalid arguments cause functions to fail with EINVAL.
@@ Coverage Diff @@ ## master #1807 +/- ## ========================================== + Coverage 79.65% 79.68% +0.02% ========================================== Files 187 187 Lines 34599 34575 -24 ========================================== - Hits 27561 27552 -9 + Misses 7038 7023 -15