Hi,
one way to achieve that would be to use HTTP/2 which has exactly the
tools for this.
Here is how it could work:
1/ the HTTP server team tells the proxy to route to the new HTTP server
2/ the original HTTP server performs a shutdown of the connections
with a timeout (e.g in Vert.x you can use
HttpConnection#shutdown(timeout)) and it will send an HTTP/2 GO_AWAY
frame
3/ the WebClient will then receive the GO_AWAY frame for each
connection and will shut them down, i.e they will not be used anymore
(i.e removed from the pool)
Otherwise it will be somehow complicated because the HTTP client will
not be aware of this and will continue to use the connection from the
pool. In this situation each connection to the proxies server could be
shutdown with HttpConnection#shutdown that takes the connection out of
the pool for HTTP/1.
You can maintain a Map<Host, List<HttpConnection>> with
HttpClient#connectionHandler and HttpConnection#closeHandler and then
use this data structure to shutdown the connection you need for a
given host.
HTH
Julien
> --
> You received this message because you are subscribed to the Google Groups "vert.x" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
vertx+un...@googlegroups.com.
> To view this discussion on the web, visit
https://groups.google.com/d/msgid/vertx/9f59ac72-be7e-4bbd-8f19-81f459611a3en%40googlegroups.com.