Commit c3231e2
committed
Fix JENKINS-76283: httpRequest ignores default timeout 0 and enforces 5 minutes
When the timeout parameter is not provided or set to 0 (documented as
'no timeout'), httpclient5 was using its default 5-minute timeout instead.
This fixes the regression introduced in v1.22 during the httpclient5
migration (PR jenkinsci#197) by explicitly setting timeout to DISABLED when
timeout <= 0, restoring the documented behavior.1 parent d5f8832 commit c3231e2
File tree
1 file changed
+27
-14
lines changed- src/main/java/jenkins/plugins/http_request
1 file changed
+27
-14
lines changedLines changed: 27 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
428 | 441 | | |
429 | 442 | | |
430 | 443 | | |
| |||
0 commit comments