Enhance stream handling in LongPollingTest and add new test for client close detection

This commit is contained in:
yhirose committed 2026-03-18 18:29:19 -04:00
1 parent dd8071a7d4
commit 45820de332
2 files changed
+54 -2

No files matched your search

+2 -2
View File
@@ -1005,8 +1005,8 @@ private:
protected:
std::streamsize xsputn(const char *s, std::streamsize n) override {
sink_.write(s, static_cast<size_t>(n));
return n;
if (sink_.write(s, static_cast<size_t>(n))) { return n; }
return 0;
}
private: