Close handler
()
| 60 | |
| 61 | // Close handler |
| 62 | func (t *TcpReplyHandler) Close() error { |
| 63 | fmt.Println("tcp server close") |
| 64 | t.isClosed.SetBoolAtomic(true) |
| 65 | t.activeConn.Range(func(key, value interface{}) bool { |
| 66 | client := key.(*ReplyClient) |
| 67 | _ = client.Close() |
| 68 | return true |
| 69 | }) |
| 70 | return nil |
| 71 | } |
nothing calls this directly
no test coverage detected