test: don't block to wait for previous session's exit (#35885)

This reduces the time taken by clear() by over 20% with ASAN.
This commit is contained in:
zeertzjq
2025-09-24 07:25:29 +08:00
committed by GitHub
parent 3d5ef97a98
commit d2257402e3
4 changed files with 66 additions and 31 deletions

View File

@@ -105,8 +105,8 @@ function RpcStream:read_stop()
self._stream:read_stop()
end
function RpcStream:close(signal)
self._stream:close(signal)
function RpcStream:close(signal, noblock)
self._stream:close(signal, noblock)
end
return RpcStream