@@ -50,8 +50,8 @@ func (c *Client) Start() {
5050 tcpConfig := & transport.TcpConfig {
5151 RemoteAddr : c .config .RemoteAddr ,
5252 Nodelay : c .config .Nodelay ,
53- KeepAlive : time .Duration (c .config .Keepalive ),
54- RetryInterval : time .Duration (c .config .RetryInterval ),
53+ KeepAlive : time .Duration (c .config .Keepalive ) * time . Second ,
54+ RetryInterval : time .Duration (c .config .RetryInterval ) * time . Second ,
5555 Token : c .config .Token ,
5656 Forwarder : c .forwarderReader (c .config .Forwarder ),
5757 }
@@ -62,8 +62,8 @@ func (c *Client) Start() {
6262 tcpMuxConfig := & transport.TcpMuxConfig {
6363 RemoteAddr : c .config .RemoteAddr ,
6464 Nodelay : c .config .Nodelay ,
65- KeepAlive : time .Duration (c .config .Keepalive ),
66- RetryInterval : time .Duration (c .config .RetryInterval ),
65+ KeepAlive : time .Duration (c .config .Keepalive ) * time . Second ,
66+ RetryInterval : time .Duration (c .config .RetryInterval ) * time . Second ,
6767 Token : c .config .Token ,
6868 MuxSession : c .config .MuxSession ,
6969
@@ -76,8 +76,8 @@ func (c *Client) Start() {
7676 WsConfig := & transport.WsConfig {
7777 RemoteAddr : c .config .RemoteAddr ,
7878 Nodelay : c .config .Nodelay ,
79- KeepAlive : time .Duration (c .config .Keepalive ),
80- RetryInterval : time .Duration (c .config .RetryInterval ),
79+ KeepAlive : time .Duration (c .config .Keepalive ) * time . Second ,
80+ RetryInterval : time .Duration (c .config .RetryInterval ) * time . Second ,
8181 Token : c .config .Token ,
8282 Forwarder : c .forwarderReader (c .config .Forwarder ),
8383 }
0 commit comments