Commit a7eb6502 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

src: Use large transmission buffer to reduce SSL/TLS overhead

parent a457d2a1
......@@ -367,7 +367,7 @@ int Http2Handler::on_read()
int Http2Handler::on_write()
{
int rv;
uint8_t buf[4096];
uint8_t buf[16384];
auto output = bufferevent_get_output(bev_);
util::EvbufferBuffer evbbuf(output, buf, sizeof(buf));
......
......@@ -170,7 +170,7 @@ ssize_t Http2Session::on_read()
int Http2Session::on_write()
{
int rv;
uint8_t buf[4096];
uint8_t buf[16384];
auto output = bufferevent_get_output(client_->bev);
util::EvbufferBuffer evbbuf(output, buf, sizeof(buf));
for(;;) {
......
......@@ -178,7 +178,7 @@ ssize_t SpdySession::on_read()
int SpdySession::on_write()
{
int rv;
uint8_t buf[4096];
uint8_t buf[16384];
sendbuf.reset(bufferevent_get_output(client_->bev), buf, sizeof(buf));
......
......@@ -1260,7 +1260,7 @@ int Http2Session::on_write()
int Http2Session::send()
{
int rv;
uint8_t buf[4096];
uint8_t buf[16384];
auto output = bufferevent_get_output(bev_);
util::EvbufferBuffer evbbuf(output, buf, sizeof(buf));
for(;;) {
......
......@@ -566,7 +566,7 @@ int Http2Upstream::on_write()
int Http2Upstream::send()
{
int rv;
uint8_t buf[4096];
uint8_t buf[16384];
auto bev = handler_->get_bev();
auto output = bufferevent_get_output(bev);
util::EvbufferBuffer evbbuf(output, buf, sizeof(buf));
......
......@@ -459,7 +459,7 @@ int SpdyUpstream::on_write()
int SpdyUpstream::send()
{
int rv = 0;
uint8_t buf[4096];
uint8_t buf[16384];
sendbuf.reset(bufferevent_get_output(handler_->get_bev()), buf, sizeof(buf));
......
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