|
23 | 23 |
|
24 | 24 | class GRPCChannelFactory(grpc.StreamStreamClientInterceptor): |
25 | 25 | DEFAULT_OPTIONS = [ |
26 | | - # Default: 30000ms (30s), increased to 180s to reduce ping frequency |
27 | | - ("grpc.keepalive_time_ms", 180000), |
28 | | - # Default: 5000ms (5s), increased to 10 minutes for stability |
| 26 | + # Default: 20000ms (20s), increased to 10 minutes for stability |
29 | 27 | ("grpc.keepalive_timeout_ms", 600000), |
30 | 28 | # Default: 2, set to 0 to allow unlimited pings without data |
31 | 29 | ("grpc.http2.max_pings_without_data", 0), |
32 | 30 | # Default: False, set to True to allow keepalive pings when no calls |
33 | 31 | ("grpc.keepalive_permit_without_calls", True), |
34 | | - # Default: 300000ms (5min), increased to 10min for stability |
35 | | - ("grpc.http2.min_recv_ping_interval_without_data_ms", 600000), |
36 | | - # Default: 300000ms (5min), increased to 120s for conservative pings |
37 | | - ("grpc.http2.min_sent_ping_interval_without_data_ms", 120000), |
38 | | - # Default: 2, set to 0 to allow unlimited ping strikes |
39 | | - ("grpc.http2.max_ping_strikes", 0), |
40 | | - # Default: 0 (disabled), enable socket reuse for better handling |
41 | | - ("grpc.so_reuseport", 1), |
42 | | - # Default: 0 (disabled), set 30s TCP timeout for connection control |
43 | | - ("grpc.tcp_user_timeout_ms", 30000), |
44 | 32 | ] |
45 | 33 |
|
46 | 34 | def __init__(self): |
|
0 commit comments