Skip to content

Commit

Permalink
Merge pull request #430 from dgaleano-ilm/update_waitpdu_len_on_timeout
Browse files Browse the repository at this point in the history
Update waitpdu_len when a pdu times out.
  • Loading branch information
sahlberg authored Aug 29, 2023
2 parents 0a6991c + 5958a27 commit 3f3f9be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,7 @@ rpc_timeout_scan(struct rpc_context *rpc)
if (!q->head) {
q->tail = NULL;
}
rpc->waitpdu_len--;
// qqq move to a temporary queue and process after
// we drop the mutex
rpc_set_error(rpc, "command timed out");
Expand Down

0 comments on commit 3f3f9be

Please sign in to comment.