After the maximum wait time expires, the on_error handler is executed correctly, but agents still receive the reply and will process it as usual, which is not the expected behavior.
The request should be removed from _pending_requests after the timeout has expired so agents ignore the replies if they come in too late.
After the maximum wait time expires, the
on_error
handler is executed correctly, but agents still receive the reply and will process it as usual, which is not the expected behavior.The request should be removed from
_pending_requests
after the timeout has expired so agents ignore the replies if they come in too late.