Commit 3124fa7
committed
helper-rust: extend forceful disconnect detection to ECONNRESET and EPIPE
Rename is_incomplete_stream_error to is_forceful_disconnect_error and
extend it to also treat ECONNRESET and EPIPE as forceful disconnects.
On Linux, ECONNRESET is delivered to the peer when a Unix socket is
closed while its receive buffer is non-empty (unix_release_sock),
indicating the client crashed or was killed after we sent our response —
a connectivity issue, not a protocol error.
Also remove redundant `git config --global --add safe.directory '*'`
calls from integration Docker build tasks.1 parent cc6401a commit 3124fa7
2 files changed
Lines changed: 15 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
876 | 876 | | |
877 | 877 | | |
878 | 878 | | |
879 | | - | |
| 879 | + | |
880 | 880 | | |
881 | 881 | | |
882 | 882 | | |
| |||
901 | 901 | | |
902 | 902 | | |
903 | 903 | | |
904 | | - | |
905 | | - | |
906 | | - | |
907 | | - | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
908 | 918 | | |
909 | 919 | | |
910 | 920 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
392 | 391 | | |
393 | 392 | | |
394 | 393 | | |
| |||
485 | 484 | | |
486 | 485 | | |
487 | 486 | | |
488 | | - | |
489 | 487 | | |
490 | 488 | | |
491 | 489 | | |
| |||
567 | 565 | | |
568 | 566 | | |
569 | 567 | | |
570 | | - | |
571 | 568 | | |
572 | 569 | | |
573 | 570 | | |
| |||
862 | 859 | | |
863 | 860 | | |
864 | 861 | | |
865 | | - | |
866 | | - | |
867 | 862 | | |
868 | 863 | | |
869 | 864 | | |
| |||
893 | 888 | | |
894 | 889 | | |
895 | 890 | | |
896 | | - | |
897 | 891 | | |
898 | 892 | | |
899 | 893 | | |
| |||
0 commit comments