我看到
HttpClient.from(TcpClient.create().option(ChannelOption.SO_KEEPALIVE, true))
from
方法已弃用。
当前我应该如何使用HttpClient.create()
设置SO_KEEPALIVE
?
我认为这更容易:
HttpClient.create().option(ChannelOption.SO_KEEPALIVE, true)