Commit 82780d6
committed
http2: don't reuse connections that are experiencing errors
When a request on a connection fails to complete successfully,
mark the conn as doNotReuse. It's possible for requests to
fail for reasons unrelated to connection health,
but opening a new connection unnecessarily is less of an
impact than reusing a dead connection.
Fixes golang/go#59690
Change-Id: I40bf6cefae602ead70c3bcf2fe573cc13f34a385
Reviewed-on: https://go-review.googlesource.com/c/net/+/486156
Run-TryBot: Damien Neil <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Bryan Mills <[email protected]>1 parent 0bfab66 commit 82780d6
2 files changed
+234
-129
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1266 | 1266 | | |
1267 | 1267 | | |
1268 | 1268 | | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
1269 | 1290 | | |
1270 | 1291 | | |
1271 | 1292 | | |
| |||
1280 | 1301 | | |
1281 | 1302 | | |
1282 | 1303 | | |
1283 | | - | |
| 1304 | + | |
1284 | 1305 | | |
1285 | 1306 | | |
1286 | | - | |
1287 | | - | |
1288 | | - | |
| 1307 | + | |
1289 | 1308 | | |
1290 | | - | |
1291 | | - | |
| 1309 | + | |
1292 | 1310 | | |
1293 | 1311 | | |
1294 | 1312 | | |
| |||
0 commit comments