Skip to content

Commit 62b88f2

Browse files
committed
Clarify usecase is comments
1 parent 903702b commit 62b88f2

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2685,6 +2685,13 @@ options:
26852685
events.
26862686
--inactive-conn-cleanup-timeout INACTIVE_CONN_CLEANUP_TIMEOUT
26872687
Time after which inactive works must be cleaned up.
2688+
Increase this value if your backend services are slow
2689+
to response or when proxy.py is handling a high
2690+
volume. When running proxy.py on Google Cloud (GCP)
2691+
you may see 'backend_connection_closed_before_data_sen
2692+
t_to_client', with curl clients you may see 'Empty
2693+
reply from server' error when '--inactive-conn-
2694+
cleanup-timeout' value is low for your use-case.
26882695
Default 1 seconds
26892696
--enable-proxy-protocol
26902697
Default: False. If used, will enable proxy protocol.

proxy/core/work/threadless.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@
4141
proxy_flags.add_argument(
4242
"--inactive-conn-cleanup-timeout",
4343
default=DEFAULT_INACTIVE_CONN_CLEANUP_TIMEOUT,
44-
help="Time after which inactive works must be cleaned up. Default {0} seconds".format(
44+
help="Time after which inactive works must be cleaned up. "
45+
+ "Increase this value if your backend services are slow to response "
46+
+ "or when proxy.py is handling a high volume. When running proxy.py on Google Cloud (GCP) "
47+
+ "you may see 'backend_connection_closed_before_data_sent_to_client', with curl clients "
48+
+ "you may see 'Empty reply from server' error when '--inactive-conn-cleanup-timeout' "
49+
+ "value is low for your use-case. Default {0} seconds".format(
4550
DEFAULT_INACTIVE_CONN_CLEANUP_TIMEOUT
4651
),
4752
)

0 commit comments

Comments
 (0)