Commit 7af33521 authored by jan.koester's avatar jan.koester
Browse files

ups

parent ecda13bf
Loading
Loading
Loading
Loading
+5 −1
Changes for test/http1_nonblocking_stream_test.cpp: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -280,11 +280,15 @@ void testBlockingStreaming(bool chunked) {
} // namespace

int main() {
#ifndef _WIN32
    // The raw test server may write to a socket the client has already
    // stopped reading from (e.g. after the client hit its own deadline);
    // without this, that write raises SIGPIPE and kills the whole process
    // instead of send() just returning -1/EPIPE.
    // instead of send() just returning -1/EPIPE. Winsock never raises
    // SIGPIPE for this (send() just returns an error instead), so there's
    // nothing to ignore on Windows -- and SIGPIPE isn't even defined there.
    std::signal(SIGPIPE, SIG_IGN);
#endif

    std::cout << "=== HTTP/1.1 Non-Blocking Streaming Test ===" << std::endl;