mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 01:18:42 +00:00
remove the standard timeout for software installer downloads (#27550)
> For #27548 # Checklist for submitter If some of the following don't apply, delete the relevant line. <!-- Note that API documentation changes are now addressed by the product design team. --> - [x] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files) for more information. - [x] A detailed QA plan exists on the associated ticket (if it isn't there, work with the product group's QA engineer to add it) - [x] Manual QA for all new/changed functionality
This commit is contained in:
parent
1202ff862f
commit
5f628a1c59
2 changed files with 4 additions and 1 deletions
1
changes/27548-installer-download-fail
Normal file
1
changes/27548-installer-download-fail
Normal file
|
|
@ -0,0 +1 @@
|
|||
- Fixed software installer download errors by extending the timeout for the download endpoints.
|
||||
|
|
@ -1218,7 +1218,9 @@ the way that the Fleet server works.
|
|||
if (req.Method == http.MethodPost && strings.HasSuffix(req.URL.Path, "/fleet/software/package")) ||
|
||||
(req.Method == http.MethodPatch && strings.HasSuffix(req.URL.Path, "/package") && strings.Contains(req.URL.Path,
|
||||
"/fleet/software/titles/")) ||
|
||||
(req.Method == http.MethodPost && strings.HasSuffix(req.URL.Path, "/bootstrap")) {
|
||||
(req.Method == http.MethodPost && strings.HasSuffix(req.URL.Path, "/bootstrap")) ||
|
||||
(req.Method == http.MethodGet && strings.Contains(req.URL.Path, "/package/token")) ||
|
||||
(req.Method == http.MethodPost && strings.Contains(req.URL.Path, "orbit/software_install/package")) {
|
||||
var zeroTime time.Time
|
||||
rc := http.NewResponseController(rw)
|
||||
// For large software installers and bootstrap packages, the server time needs time to read the full
|
||||
|
|
|
|||
Loading…
Reference in a new issue