That's my code:
WebClient.create().post()
.uri(URI.create(url))
.header("Authorization",
"Basic " + Base64Utils.encodeToString(("username:password").getBytes(UTF_8)))
.body(Mono.just(requestBody), Object.class)
.retrieve()
.bodyToMono(responseType)
I call this function from multiple threads at the same time. When I only call it around 20~30 times in a single run it works perfectly fine. But when I call it 500~600 times in around 2 minutes (to the same URL) it throws
javax.net.ssl.SSLException: SSLEngine closed already
at io.netty.handler.ssl.SslHandler.wrap(...)(Unknown Source)
EDIT
I've tried creating only one instance of WebClient
but it still throws the same exception