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

This commit is contained in:
Tatsuhiro Tsujikawa 2014-03-15 16:10:42 +09:00
parent a457d2a138
commit a7eb6502a9
6 changed files with 6 additions and 6 deletions

View File

@ -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));

View File

@ -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(;;) {

View File

@ -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));

View File

@ -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(;;) {

View File

@ -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));

View File

@ -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));