mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-18 11:09:39 +00:00
Fix problem caused by #1975
This commit is contained in:
1 parent
bfef4b3e9b
commit
412ba04d19
2 files changed
+14
-11
No files matched your search
@@ -5609,6 +5609,7 @@ TEST(LongPollingTest, ClientCloseDetection) {
|
||||
auto count = 10;
|
||||
while (count > 0 && sink.is_writable()) {
|
||||
this_thread::sleep_for(chrono::milliseconds(10));
|
||||
count--;
|
||||
}
|
||||
EXPECT_FALSE(sink.is_writable()); // the socket is closed
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user