We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c766a6f commit adb3933Copy full SHA for adb3933
tests/legacy_client.rs
@@ -909,7 +909,6 @@ fn capture_connection_on_client() {
909
assert!(captured_conn.connection_metadata().is_some());
910
}
911
912
-#[cfg(not(miri))]
913
#[test]
914
fn connection_poisoning() {
915
use std::sync::atomic::AtomicUsize;
@@ -938,9 +937,9 @@ fn connection_poisoning() {
938
937
let mut buf = [0; 4096];
939
loop {
940
if sock.read(&mut buf).expect("read 1") > 0 {
+ num_requests_tracker.fetch_add(1, Ordering::Relaxed);
941
sock.write_all(b"HTTP/1.1 200 OK\r\nContent-Length: 0\r\n\r\n")
942
.expect("write 1");
943
- num_requests_tracker.fetch_add(1, Ordering::Relaxed);
944
945
946
});
0 commit comments