Tidied up

This commit is contained in:
Tatsuhiro Tsujikawa 2012-06-05 22:55:19 +09:00
parent 67669bf3ca
commit c0b564abe4
2 changed files with 5 additions and 4 deletions

View File

@ -230,7 +230,7 @@ int Downstream::push_request_headers()
hdrs += "\r\n"; hdrs += "\r\n";
if(ENABLE_LOG) { if(ENABLE_LOG) {
LOG(INFO) << "<downstream> request headers\n" << hdrs; LOG(INFO) << "Downstream request headers\n" << hdrs;
} }
evbuffer *output = bufferevent_get_output(bev_); evbuffer *output = bufferevent_get_output(bev_);
evbuffer_add(output, hdrs.c_str(), hdrs.size()); evbuffer_add(output, hdrs.c_str(), hdrs.size());
@ -389,7 +389,7 @@ int Downstream::parse_http_response()
return 0; return 0;
} else { } else {
if(ENABLE_LOG) { if(ENABLE_LOG) {
LOG(INFO) << "<downstream> http parser failure: " LOG(INFO) << "Downstream HTTP parser failure: "
<< htparser_get_strerror(response_htp_); << htparser_get_strerror(response_htp_);
} }
return SHRPX_ERR_HTTP_PARSE; return SHRPX_ERR_HTTP_PARSE;

View File

@ -106,7 +106,8 @@ private:
bool chunked_response_; bool chunked_response_;
Headers response_headers_; Headers response_headers_;
htparser *response_htp_; htparser *response_htp_;
// This buffer is used to temporarily store downstream response
// body. Spdylay reads data from this in the callback.
evbuffer *response_body_buf_; evbuffer *response_body_buf_;
}; };