如何使 TCP 连接打开直到服务器关闭

问题描述 投票:0回答:0

我正在使用套接字连接连接服务器以获得一些响应,在putty中我可以读取直到连接从服务器关闭,但在camel spring boot中它在读取第一条消息后关闭。在 Putty 中,我收到同一输入的 2 条消息。

.to("netty:tcp://ip:port?disconnect=false&keepAlive=true&clientMode=true&decoderMaxLineLength=50000")

sockets tcp apache-camel tcpclient telnet
© www.soinside.com 2019 - 2024. All rights reserved.