Commit 6bcaab8
authored
gvfs-helper: show network advice for transient service errors (#880)
When gvfs_advice_on_retry() fires after exhausting retries, it
unconditionally suggests checking disk space or deleting the shared
object cache. This is misleading when the failures are transient network
or service errors (e.g. CURLE_RECV_ERROR, HTTP 429, HTTP 503) rather
than local filesystem problems like index-pack failures.
The current advice (delete your scalar cache and retry) can be even
worse under a service outage, such as recently occurred when the India
region's cache servers were unable to respond to incoming requests. The
users who followed this advice were not able to redownload data and were
stuck without an ability to work.
Teach gvfs_advice_on_retry() to distinguish between network/service
errors and local errors by inspecting the error code. When the error is
a curl error, HTTP 429, or HTTP 503, advise the user about potential
service outages or network connectivity issues instead. The existing
disk/cache advice is preserved for local failures such as index-pack
errors (GH__ERROR_CODE__INDEX_PACK_FAILED).
* [X] This change only applies to interactions with Azure DevOps and the
GVFS Protocol.1 file changed
Lines changed: 20 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
337 | 340 | | |
338 | 341 | | |
339 | 342 | | |
| |||
3142 | 3145 | | |
3143 | 3146 | | |
3144 | 3147 | | |
3145 | | - | |
| 3148 | + | |
3146 | 3149 | | |
3147 | 3150 | | |
3148 | 3151 | | |
3149 | 3152 | | |
3150 | 3153 | | |
3151 | 3154 | | |
3152 | 3155 | | |
| 3156 | + | |
| 3157 | + | |
| 3158 | + | |
| 3159 | + | |
| 3160 | + | |
| 3161 | + | |
| 3162 | + | |
| 3163 | + | |
| 3164 | + | |
3153 | 3165 | | |
3154 | 3166 | | |
3155 | 3167 | | |
| |||
3213 | 3225 | | |
3214 | 3226 | | |
3215 | 3227 | | |
3216 | | - | |
| 3228 | + | |
3217 | 3229 | | |
3218 | 3230 | | |
3219 | 3231 | | |
| |||
0 commit comments