How to set TCP Keepalive in Reactor Netty HTTP client?

Viewed 951

I saw that

HttpClient.from(TcpClient.create().option(ChannelOption.SO_KEEPALIVE, true)) 

from method was deprecated.

How currently am I supposed to set SO_KEEPALIVE using HttpClient.create()?

1 Answers

It was easier that I thought:

HttpClient.create().option(ChannelOption.SO_KEEPALIVE, true)
Related