Subject: | Some missed connection cache cleanups when no connection could be established |
Hello again,
when a request is made against a non-existent host, the module fails
correctly with a resolver error. However, if the same request is tried
again later, the on_response/on_error handlers are never called, since
the failed connection is still in the cache, and no new one is going to
be established to throw another error.
This should be fixable by adding `delete $connections->{"$host:$port"}`
statements to the on_resolve_error (and possibly on_connect_error)
callbacks in lib/Net/Async/HTTP.pm line 190 ff.
I tried it locally and it did fix the issue outlined above.
thanks and regards,
rs