Increate output buffer limit to 16MB
This commit is contained in:
@@ -3801,7 +3801,7 @@ static void chttp_client_conn_free(CHTTP_ClientConn *conn)
|
|||||||
int chttp_client_init(CHTTP_Client *client)
|
int chttp_client_init(CHTTP_Client *client)
|
||||||
{
|
{
|
||||||
client->input_buffer_limit = 1<<20;
|
client->input_buffer_limit = 1<<20;
|
||||||
client->output_buffer_limit = 1<<20;
|
client->output_buffer_limit = 1<<24;
|
||||||
|
|
||||||
client->cookie_jar.count = 0;
|
client->cookie_jar.count = 0;
|
||||||
|
|
||||||
@@ -4633,7 +4633,7 @@ static void chttp_server_conn_free(CHTTP_ServerConn *conn)
|
|||||||
int chttp_server_init(CHTTP_Server *server)
|
int chttp_server_init(CHTTP_Server *server)
|
||||||
{
|
{
|
||||||
server->input_buffer_limit = 1<<20;
|
server->input_buffer_limit = 1<<20;
|
||||||
server->output_buffer_limit = 1<<20;
|
server->output_buffer_limit = 1<<24;
|
||||||
|
|
||||||
server->trace_bytes = false;
|
server->trace_bytes = false;
|
||||||
server->reuse_addr = false;
|
server->reuse_addr = false;
|
||||||
@@ -4808,7 +4808,7 @@ chttp_server_conn_process_events(CHTTP_Server *server, CHTTP_ServerConn *conn)
|
|||||||
|
|
||||||
if (conn->state == CHTTP_SERVER_CONN_BUFFERING) {
|
if (conn->state == CHTTP_SERVER_CONN_BUFFERING) {
|
||||||
|
|
||||||
int min_recv = 1<<10;
|
int min_recv = 1<<9;
|
||||||
byte_queue_write_setmincap(&conn->input, min_recv);
|
byte_queue_write_setmincap(&conn->input, min_recv);
|
||||||
|
|
||||||
// Note that it's extra important that we don't
|
// Note that it's extra important that we don't
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@ static void chttp_client_conn_free(CHTTP_ClientConn *conn)
|
|||||||
int chttp_client_init(CHTTP_Client *client)
|
int chttp_client_init(CHTTP_Client *client)
|
||||||
{
|
{
|
||||||
client->input_buffer_limit = 1<<20;
|
client->input_buffer_limit = 1<<20;
|
||||||
client->output_buffer_limit = 1<<20;
|
client->output_buffer_limit = 1<<24;
|
||||||
|
|
||||||
client->cookie_jar.count = 0;
|
client->cookie_jar.count = 0;
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -20,7 +20,7 @@ static void chttp_server_conn_free(CHTTP_ServerConn *conn)
|
|||||||
int chttp_server_init(CHTTP_Server *server)
|
int chttp_server_init(CHTTP_Server *server)
|
||||||
{
|
{
|
||||||
server->input_buffer_limit = 1<<20;
|
server->input_buffer_limit = 1<<20;
|
||||||
server->output_buffer_limit = 1<<20;
|
server->output_buffer_limit = 1<<24;
|
||||||
|
|
||||||
server->trace_bytes = false;
|
server->trace_bytes = false;
|
||||||
server->reuse_addr = false;
|
server->reuse_addr = false;
|
||||||
@@ -195,7 +195,7 @@ chttp_server_conn_process_events(CHTTP_Server *server, CHTTP_ServerConn *conn)
|
|||||||
|
|
||||||
if (conn->state == CHTTP_SERVER_CONN_BUFFERING) {
|
if (conn->state == CHTTP_SERVER_CONN_BUFFERING) {
|
||||||
|
|
||||||
int min_recv = 1<<10;
|
int min_recv = 1<<9;
|
||||||
byte_queue_write_setmincap(&conn->input, min_recv);
|
byte_queue_write_setmincap(&conn->input, min_recv);
|
||||||
|
|
||||||
// Note that it's extra important that we don't
|
// Note that it's extra important that we don't
|
||||||
|
|||||||
Reference in New Issue
Block a user