What is the correct way to set a (connection) timeout for the (default) WebClient?
Is it enough to just use Mono#timeout(Duration)
method on the resulting Mono (or Flux)? Or does this lead to a possible memory / connection leak?
Thanks in advance!
(The answers from Spring 5 webflux how to set a timeout on Webclient do not work!)