diff options
Diffstat (limited to 'plugins/fcgi')
-rw-r--r-- | plugins/fcgi/fcgi.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/fcgi/fcgi.cpp b/plugins/fcgi/fcgi.cpp index d19916c..f9d8a4d 100644 --- a/plugins/fcgi/fcgi.cpp +++ b/plugins/fcgi/fcgi.cpp @@ -391,27 +391,27 @@ std::string fcgi_plugin::fcgiQuery(FCGIContext& context) FCGI_Record begin_request{FCGI_BEGIN_REQUEST, id, FCGI_RESPONDER, FCGI_KEEP_CONN}; if (socket->write(begin_request.getBuffer()) != begin_request.getBuffer().size()) - std::cerr << "Warning: Not all bytes written 3" << std::endl; + std::cerr << "Warning: Not all bytes written 2" << std::endl; FCGI_Record params{FCGI_PARAMS, id, env_bytes}; if (socket->write(params.getBuffer()) != params.getBuffer().size()) - std::cerr << "Warning: Not all bytes written 4" << std::endl; + std::cerr << "Warning: Not all bytes written 3" << std::endl; if (env_bytes.size()) { FCGI_Record params_end{FCGI_PARAMS, id, std::string{}}; if (socket->write(params_end.getBuffer()) != params_end.getBuffer().size()) - std::cerr << "Warning: Not all bytes written 5" << std::endl; + std::cerr << "Warning: Not all bytes written 4" << std::endl; } std::string body {context.GetRequestParam("body")}; FCGI_Record stdin_{FCGI_STDIN, id, body}; if (socket->write(stdin_.getBuffer()) != stdin_.getBuffer().size()) - std::cerr << "Warning: Not all bytes written 6" << std::endl; + std::cerr << "Warning: Not all bytes written 5" << std::endl; if (body.size()) { FCGI_Record stdin_end{FCGI_STDIN, id, std::string{}}; if (socket->write(stdin_end.getBuffer()) != stdin_end.getBuffer().size()) - std::cerr << "Warning: Not all bytes written 7" << std::endl; + std::cerr << "Warning: Not all bytes written 6" << std::endl; } } catch (const fcgi_eof_error&) { std::cerr << "FCGI Error: EOF on write" << std::endl; // seems to be ok here |