Do not always close all connections when close Server (graceful shutdown)
In the API Gateway scene, API Gateway needs to dispose the connections by its own after close Server (just want to stop the acceptConnection()).
@@ -53,14 +53,6 @@ class Server extends Socket
return $connection;
}
- public function close(): bool
- {
- $ret = parent::close();
- $this->closeConnections();
-
- return $ret;
- }
-
protected const BROADCAST_FLAG_NONE = 0;
protected const BROADCAST_FLAG_RECORD_EXCEPTIONS = 1 << 0;
