diff --git a/src/rpc/scgi_task.cc b/src/rpc/scgi_task.cc index e759a2c7..f940f95c 100644 --- a/src/rpc/scgi_task.cc +++ b/src/rpc/scgi_task.cc @@ -184,7 +184,7 @@ SCgiTask::event_write() { int bytes = ::send(m_fileDesc, m_buffer.data() + m_position, m_buffer.size() - m_position, 0); if (bytes == -1) { - if (!(errno == EAGAIN || errno == EINTR || errno == EPIPE)) + if (!(errno == EAGAIN || errno == EINTR)) close(); return;