Commit b472680
committed
fix: tar export error handling, WS goroutine leak, E2E stability
1. Tar export: split into prepareTarExport (can return error response)
and streamTarExport (headers committed, errors logged only).
Prep errors (bad base64, etc.) now return proper HTTP 500.
2. WS reader goroutine: derive context from caller instead of
context.Background() so it's cancelled on syncer shutdown.
3. E2E WebSocket: fire-and-forget the bulk write that triggers the
event — prevents unhandled rejection when server shuts down
before the response arrives.1 parent 031f595 commit b472680
3 files changed
+28
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1436 | 1436 | | |
1437 | 1437 | | |
1438 | 1438 | | |
1439 | | - | |
1440 | | - | |
1441 | | - | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
1442 | 1447 | | |
1443 | 1448 | | |
1444 | 1449 | | |
| |||
2016 | 2021 | | |
2017 | 2022 | | |
2018 | 2023 | | |
2019 | | - | |
2020 | | - | |
2021 | | - | |
2022 | | - | |
2023 | | - | |
2024 | | - | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
2025 | 2033 | | |
2026 | 2034 | | |
2027 | 2035 | | |
2028 | 2036 | | |
2029 | | - | |
| 2037 | + | |
2030 | 2038 | | |
2031 | 2039 | | |
2032 | 2040 | | |
| |||
2038 | 2046 | | |
2039 | 2047 | | |
2040 | 2048 | | |
| 2049 | + | |
| 2050 | + | |
2041 | 2051 | | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
2042 | 2055 | | |
2043 | 2056 | | |
2044 | 2057 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
425 | | - | |
| 425 | + | |
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
540 | | - | |
541 | | - | |
542 | | - | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
543 | 543 | | |
544 | | - | |
| 544 | + | |
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
| |||
0 commit comments