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

@ -63,7 +63,7 @@ Downstream::Downstream(Upstream *upstream, int stream_id, int priority)
Downstream::~Downstream()
{
if(ENABLE_LOG) {
LOG(INFO) << "Deleting downstream" << this;
LOG(INFO) << "Deleting downstream " << this;
}
if(response_body_buf_) {
// Passing NULL to evbuffer_free() causes segmentation fault.
@ -230,7 +230,7 @@ int Downstream::push_request_headers()
hdrs += "\r\n";
if(ENABLE_LOG) {
LOG(INFO) << "<downstream> request headers\n" << hdrs;
LOG(INFO) << "Downstream request headers\n" << hdrs;
}
evbuffer *output = bufferevent_get_output(bev_);
evbuffer_add(output, hdrs.c_str(), hdrs.size());
@ -389,7 +389,7 @@ int Downstream::parse_http_response()
return 0;
} else {
if(ENABLE_LOG) {
LOG(INFO) << "<downstream> http parser failure: "
LOG(INFO) << "Downstream HTTP parser failure: "
<< htparser_get_strerror(response_htp_);
}
return SHRPX_ERR_HTTP_PARSE;

View File

@ -106,7 +106,8 @@ private:
bool chunked_response_;
Headers response_headers_;
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_;
};