mirror of
https://github.com/smallnest/rpcx.git
synced 2025-10-18 22:14:39 +08:00
close the connection if the connection has not passed in the plugin pipeline
This commit is contained in:
@@ -263,6 +263,7 @@ func (s *Server) serveListener(ln net.Listener) error {
|
||||
|
||||
conn, ok := s.Plugins.DoPostConnAccept(conn)
|
||||
if !ok {
|
||||
closeChannel(s, conn)
|
||||
continue
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user