Cancel blocking DNS lookup if GaiFuture dropped #2686
Labels
A-client
Area: client.
C-performance
Category: performance. This is making existing behavior go faster.
E-easy
Effort: easy. A task that would be a great starting point for a new contributor.
The
GaiFuture
owns a TokioJoinHandle
, spawning a call togetaddrinfo
in a blocking thread. If a request times out before the blocking thread started the call, we should have it removed from the queue. That can be done withimpl Drop for GaiFuture
that callsJoinHandle::abort()
.The text was updated successfully, but these errors were encountered: