mirror of
https://github.com/smallnest/rpcx.git
synced 2025-10-19 14:35:00 +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)
|
conn, ok := s.Plugins.DoPostConnAccept(conn)
|
||||||
if !ok {
|
if !ok {
|
||||||
|
closeChannel(s, conn)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user