smart-socket icon indicating copy to clipboard operation
smart-socket copied to clipboard

客户端连接超时时间和超时回调接口在哪设置?

Open wangran99 opened this issue 1 year ago • 1 comments

如何设置连接超时时间和连接超时回调代码。 在client设置。 AioQuickClient client = new AioQuickClient(config.getStorageIp(), config.getStorageTcpPort(), new ImgByteProtocol(list), processor); client.connectTimeout(3 * 1000);//连接超时时间 但是有没有设置连接超时的回调接口?

wangran99 avatar Dec 28 '23 07:12 wangran99

看下 IdleStatePlugin 是不是你想要的

smthing avatar Dec 28 '23 07:12 smthing