forked from chobits/ngx_http_proxy_connect_module
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor logic of handling proxy timer
1. Refactor timer logic in ngx_http_proxy_connect_tunnel(), refer to ngx_stream_proxy_process() in ngx_stream_proxy_module. It only adds one timer after it processes r/w operations on client or proxied server connections. 2. With the new timer logic, it will fix connection break that it continues to upload data to backend 3. The directive `proxy_connect_read_timeout` has been changed to: Sets the timeout between two successive read or write operations on client or proxied server connections. If no data is transmitted within this time, the connection is closed. 4. The directive `proxy_connect_send_timeout` has been deprecated. 5. Added new test cases and documentation for new timer logic
- Loading branch information
Showing
3 changed files
with
79 additions
and
72 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
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