Commit 332ef4cd authored by rch@chromium.org's avatar rch@chromium.org

Allocate a larger QUIC request body buffer

to ensure that we don't typically send out incomplete packets.

Review URL: https://codereview.chromium.org/343753003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278382 0039d316-1c4b-4281-b951-d872f2087c98
parent 62f6ef9e
......@@ -121,12 +121,9 @@ int QuicHttpStream::SendRequest(const HttpRequestHeaders& request_headers,
// was being called even if we didn't yet allocate raw_request_body_buf_.
// && (request_body_stream_->size() ||
// request_body_stream_->is_chunked()))
//
// Use kMaxPacketSize as the buffer size, since the request
// body data is written with this size at a time.
// TODO(rch): use a smarter value since we can't write an entire
// packet due to overhead.
raw_request_body_buf_ = new IOBufferWithSize(kMaxPacketSize);
// Use 10 packets as the body buffer size to give enough space to
// help ensure we don't often send out partial packets.
raw_request_body_buf_ = new IOBufferWithSize(10 * kMaxPacketSize);
// The request body buffer is empty at first.
request_body_buf_ = new DrainableIOBuffer(raw_request_body_buf_.get(), 0);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment