mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-20 19:25:56 +00:00
Keep the RA test peer open until clients finish under parallel load
This commit is contained in:
1 parent
b101c79e96
commit
3405c89fe8
1 file changed
+1
-1
@@ -278,7 +278,7 @@ mod tests {
|
||||
}
|
||||
// Close gracefully: dropping a socket with unread data would send RST and could discard the reply.
|
||||
let _ = s.shutdown(std::net::Shutdown::Write);
|
||||
let _ = s.set_read_timeout(Some(Duration::from_secs(2)));
|
||||
let _ = s.set_read_timeout(Some(Duration::from_secs(15)));
|
||||
let mut sink = [0u8; 64];
|
||||
while matches!(s.read(&mut sink), Ok(n) if n > 0) {}
|
||||
got
|
||||
|
||||
Reference in new issue
Block a user