File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 97
97
'vendor ' ,
98
98
],
99
99
100
+ /*
101
+ |--------------------------------------------------------------------------
102
+ | Download Timeout
103
+ |--------------------------------------------------------------------------
104
+ |
105
+ | Specifies the duration (in seconds) for how long downloads can take
106
+ | until they timeout.
107
+ |
108
+ */
109
+
110
+ 'download_timeout ' => env ('SELF_UPDATER_DOWNLOAD_TIMEOUT ' , 400 ),
111
+
100
112
/*
101
113
|--------------------------------------------------------------------------
102
114
| Event Logging
Original file line number Diff line number Diff line change @@ -183,6 +183,7 @@ public function download(): Response
183
183
->withOptions ([
184
184
'sink ' => $ this ->getStoragePath (),
185
185
])
186
+ ->timeout (config ('self-update.download_timeout ' ) ?? 400 )
186
187
->get ($ this ->getDownloadUrl ());
187
188
}
188
189
You can’t perform that action at this time.
0 commit comments