Index: net/quic/quic_http_stream.cc |
diff --git a/net/quic/quic_http_stream.cc b/net/quic/quic_http_stream.cc |
index e2084c0e5f04cc66b725659bcefdd51ef7b5e56e..88b40630f2b33e77de3cce7c337dc72fd7bc548b 100644 |
--- a/net/quic/quic_http_stream.cc |
+++ b/net/quic/quic_http_stream.cc |
@@ -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); |
} |