gaohuag opened a new issue #1362:
URL: https://github.com/apache/dubbo-go/issues/1362


   <!-- Please use this template while reporting a bug and provide as much info 
as possible. Not doing so may result in your bug not being addressed in a 
timely manner. Thanks!
   
   -->
   
   
   **What happened**:
   使用dubbo-go的程序会异常退出
   
   **What you expected to happen**:
   如果发生异常,能通过recover捕获异常。
   **How to reproduce it (as minimally and precisely as possible)**:
   偶现的,我也不知道怎么重现问题
   **Anything else we need to know?**:
   一些错误提示:
   `2021-08-03T07:25:46.724+0100  DEBUG  getty/pool.go:195  add session{session 
{client:TCP_CLIENT:24:10.0.2.15:34697<->172.31.229.155:20889}, Read Bytes: 0, 
Write Bytes: 0, Read Pkgs: 0, Write Pkgs: 0}
   2021-08-03T07:25:46.724+0100  ERROR  getty/pool.go:157  
tcpConn.SetKeepAlivePeriod() = error:%vset tcp 
10.0.2.15:43983->172.31.40.48:28089: setsockopt: invalid argument
   github.com/apache/dubbo-go/remoting/getty.(*gettyRPCClient).newSession
     
/golang/monitor-agent/vendor/github.com/apache/dubbo-go/remoting/getty/pool.go:157
   github.com/apache/dubbo-getty.(*client).connect
     /golang/monitor-agent/vendor/github.com/apache/dubbo-getty/client.go:391
   github.com/apache/dubbo-getty.(*client).reConnect
     /golang/monitor-agent/vendor/github.com/apache/dubbo-getty/client.go:443
   github.com/apache/dubbo-getty.(*client).RunEventLoop
     /golang/monitor-agent/vendor/github.com/apache/dubbo-getty/client.go:421
   panic: @rTimeout < 1
   
   goroutine 6331 [running]:
   github.com/apache/dubbo-getty.(*gettyConn).SetReadTimeout(0xc000b5e410, 0x0)
     
/golang/monitor-agent/vendor/github.com/apache/dubbo-getty/connection.go:118 
+0x65
   
github.com/apache/dubbo-go/remoting/getty.(*gettyRPCClient).newSession(0xc00017e000,
 0x12436d0, 0xc0004569c0, 0x12436d0, 0xc0004569c0)
     
/golang/monitor-agent/vendor/github.com/apache/dubbo-go/remoting/getty/pool.go:171
 +0x892
   github.com/apache/dubbo-getty.(*client).connect(0xc000a61040)
     /golang/monitor-agent/vendor/github.com/apache/dubbo-getty/client.go:391 
+0xa4
   github.com/apache/dubbo-getty.(*client).reConnect(0xc000a61040)
     /golang/monitor-agent/vendor/github.com/apache/dubbo-getty/client.go:443 
+0x56
   github.com/apache/dubbo-getty.(*client).RunEventLoop(0xc000a61040, 
0xc000254410)
     /golang/monitor-agent/vendor/github.com/apache/dubbo-getty/client.go:421 
+0x6d
   created by github.com/apache/dubbo-go/remoting/getty.newGettyRPCClientConn
     
/golang/monitor-agent/vendor/github.com/apache/dubbo-go/remoting/getty/pool.go:82
 +0x22b`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to