From 4b34a4d950f762b5d020d5ac4d3354836833039c Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Thu, 21 May 2020 18:00:25 +0200 Subject: FCGI: Fix connection handling on broken pipe: Reopen new socket --- plugins/fcgi/socket.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugins/fcgi/socket.h') diff --git a/plugins/fcgi/socket.h b/plugins/fcgi/socket.h index 8fb5610..272b844 100644 --- a/plugins/fcgi/socket.h +++ b/plugins/fcgi/socket.h @@ -15,6 +15,12 @@ public: fcgi_eof_error(const std::string& what_arg): std::runtime_error(what_arg) {} }; +class fcgi_broken_pipe_error: public std::runtime_error +{ +public: + fcgi_broken_pipe_error(const std::string& what_arg): std::runtime_error(what_arg) {} +}; + class Socket { std::mutex m_mutex; // guard socket use in different threads -- cgit v1.2.3