4

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()?

pixel
  • 24,905
  • 36
  • 149
  • 251

1 Answers1

6

It was easier that I thought:

HttpClient.create().option(ChannelOption.SO_KEEPALIVE, true)
pixel
  • 24,905
  • 36
  • 149
  • 251