src: Use large transmission buffer to reduce SSL/TLS overhead
This commit is contained in:
parent
a457d2a138
commit
a7eb6502a9
|
@ -367,7 +367,7 @@ int Http2Handler::on_read()
|
||||||
int Http2Handler::on_write()
|
int Http2Handler::on_write()
|
||||||
{
|
{
|
||||||
int rv;
|
int rv;
|
||||||
uint8_t buf[4096];
|
uint8_t buf[16384];
|
||||||
auto output = bufferevent_get_output(bev_);
|
auto output = bufferevent_get_output(bev_);
|
||||||
util::EvbufferBuffer evbbuf(output, buf, sizeof(buf));
|
util::EvbufferBuffer evbbuf(output, buf, sizeof(buf));
|
||||||
|
|
||||||
|
|
|
@ -170,7 +170,7 @@ ssize_t Http2Session::on_read()
|
||||||
int Http2Session::on_write()
|
int Http2Session::on_write()
|
||||||
{
|
{
|
||||||
int rv;
|
int rv;
|
||||||
uint8_t buf[4096];
|
uint8_t buf[16384];
|
||||||
auto output = bufferevent_get_output(client_->bev);
|
auto output = bufferevent_get_output(client_->bev);
|
||||||
util::EvbufferBuffer evbbuf(output, buf, sizeof(buf));
|
util::EvbufferBuffer evbbuf(output, buf, sizeof(buf));
|
||||||
for(;;) {
|
for(;;) {
|
||||||
|
|
|
@ -178,7 +178,7 @@ ssize_t SpdySession::on_read()
|
||||||
int SpdySession::on_write()
|
int SpdySession::on_write()
|
||||||
{
|
{
|
||||||
int rv;
|
int rv;
|
||||||
uint8_t buf[4096];
|
uint8_t buf[16384];
|
||||||
|
|
||||||
sendbuf.reset(bufferevent_get_output(client_->bev), buf, sizeof(buf));
|
sendbuf.reset(bufferevent_get_output(client_->bev), buf, sizeof(buf));
|
||||||
|
|
||||||
|
|
|
@ -1260,7 +1260,7 @@ int Http2Session::on_write()
|
||||||
int Http2Session::send()
|
int Http2Session::send()
|
||||||
{
|
{
|
||||||
int rv;
|
int rv;
|
||||||
uint8_t buf[4096];
|
uint8_t buf[16384];
|
||||||
auto output = bufferevent_get_output(bev_);
|
auto output = bufferevent_get_output(bev_);
|
||||||
util::EvbufferBuffer evbbuf(output, buf, sizeof(buf));
|
util::EvbufferBuffer evbbuf(output, buf, sizeof(buf));
|
||||||
for(;;) {
|
for(;;) {
|
||||||
|
|
|
@ -566,7 +566,7 @@ int Http2Upstream::on_write()
|
||||||
int Http2Upstream::send()
|
int Http2Upstream::send()
|
||||||
{
|
{
|
||||||
int rv;
|
int rv;
|
||||||
uint8_t buf[4096];
|
uint8_t buf[16384];
|
||||||
auto bev = handler_->get_bev();
|
auto bev = handler_->get_bev();
|
||||||
auto output = bufferevent_get_output(bev);
|
auto output = bufferevent_get_output(bev);
|
||||||
util::EvbufferBuffer evbbuf(output, buf, sizeof(buf));
|
util::EvbufferBuffer evbbuf(output, buf, sizeof(buf));
|
||||||
|
|
|
@ -459,7 +459,7 @@ int SpdyUpstream::on_write()
|
||||||
int SpdyUpstream::send()
|
int SpdyUpstream::send()
|
||||||
{
|
{
|
||||||
int rv = 0;
|
int rv = 0;
|
||||||
uint8_t buf[4096];
|
uint8_t buf[16384];
|
||||||
|
|
||||||
sendbuf.reset(bufferevent_get_output(handler_->get_bev()), buf, sizeof(buf));
|
sendbuf.reset(bufferevent_get_output(handler_->get_bev()), buf, sizeof(buf));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue