AlexStocks commented on code in PR #108:
URL: https://github.com/apache/dubbo-getty/pull/108#discussion_r1525692278


##########
session.go:
##########
@@ -562,6 +562,11 @@ func (s *session) run() {
 
 func (s *session) addTask(pkg interface{}) {
        f := func() {
+               // If the session is closed, there is no need to perform 
CPU-intensive operations.
+               if s.IsClosed() {
+                       log.Errorf("LocalAddr:%s, RemoteAddr:%s Session is 
closed", s.LocalAddr(), s.RemoteAddr())

Review Comment:
   如果 session 已经 closed,那么你是拿不到 local addr 和 remote addr 的



-- 
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