-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d2c504
commit 661ce21
Showing
7 changed files
with
65 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright (c) 2003-2021 Ke Hengzhong <[email protected]> | ||
* All rights reserved. See MIT LICENSE for redistribution. | ||
*/ | ||
|
||
#ifndef _HTTP_CONGESTION_H_ | ||
#define _HTTP_CONGESTION_H_ | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
int http_cli_recv_cc (void * vcon); | ||
int http_cli_send_cc (void * vcon); | ||
|
||
int http_srv_recv_cc (void * vcon); | ||
int http_srv_send_cc (void * vcon); | ||
|
||
int http_fcgi_recv_cc (void * vcon); | ||
int http_fcgi_send_cc (void * vcon); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 2003-2020 Ke Hengzhong <[email protected]> | ||
* Copyright (c) 2003-2021 Ke Hengzhong <[email protected]> | ||
* All rights reserved. See MIT LICENSE for redistribution. | ||
*/ | ||
|
||
|
@@ -175,6 +175,12 @@ typedef struct http_msg { | |
int64 req_stream_sent; | ||
int64 req_stream_recv; | ||
|
||
/* by adopting zero-copy for higher performance, frame buffers of HTTPCon, which stores | ||
octets from sockets, will be moved to following list, for further parsing or handling, | ||
when receiving octest from client connection and forwarding to origin server. | ||
the overhead of memory copy will be lessened significantly. */ | ||
arr_t * req_rcvs_list; | ||
|
||
/* if content type of POST request is multipart form, every part is stored in list */ | ||
arr_t * req_formlist; | ||
void * req_form_json; | ||
|
@@ -270,7 +276,8 @@ typedef struct http_msg { | |
int64 res_stream_recv; | ||
|
||
/* by adopting zero-copy for higher performance, frame buffers of HTTPCon, which stores | ||
octets from sockets, will be moved to following list, for further parsing or handling. | ||
octets from sockets, will be moved to following list, for further parsing or handling, | ||
when receiving octest from origin server connection and forwarding to client. | ||
the overhead of memory copy will be lessened significantly. */ | ||
arr_t * res_rcvs_list; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 2003-2020 Ke Hengzhong <[email protected]> | ||
* Copyright (c) 2003-2021 Ke Hengzhong <[email protected]> | ||
* All rights reserved. See MIT LICENSE for redistribution. | ||
*/ | ||
|
||
|
@@ -11,7 +11,8 @@ extern "C" { | |
#endif | ||
|
||
int http_srv_send_probe (void * vcon); | ||
int http_srv_send (void * vcon); | ||
int http_srv_send (void * vcon); | ||
int http_srv_send_final (void * vmsg); | ||
|
||
int http_srv_recv (void * vcon); | ||
|
||
|