Commit 881d2d7
Merge #154916
154916: pgwire: lower the max repeated error count before closing a connection r=rafiss a=rafiss
In 39067de (#71940) we added behavior to give up and close a network connection if a threshold of repeated errors was reached. It retried on errors since some network errors could be transient.
It was retrying tens of thousands of times, which is excessive. We lower this to 256 now. This is motivated by a few tests that identifed the error handling logic in this tight loop being quite expensive. Retrying fewer times means that we'll reduce CPU usage during failure scenarios.
fixes #153550
informs #153772 (comment)
Release note: None
Co-authored-by: Rafi Shamim <[email protected]>1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1077 | 1077 | | |
1078 | 1078 | | |
1079 | 1079 | | |
1080 | | - | |
| 1080 | + | |
1081 | 1081 | | |
1082 | 1082 | | |
1083 | 1083 | | |
| |||
0 commit comments