coder / coder/vscode-coder

Retry connection instead of immediately erroring

Đang mở
#371 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
130
Fork
48
Merge trung bình
3 ngày 3 giờ
Pull request đã merge (30 ngày)
15

Mô tả

Suppose you have a VPN and when you boot your computer, VS Code automatically reconnects but this fails because your VPN is not up yet. Then you have to go around hitting "ok" on the prompts for all the windows you have open, and then re-open all the projects all over again.

So two things:

1. Instead of OK, an error here should have "Retry" and "Close remote"
2. We should retry the connection automatically with an exponential backoff, with an option to retry immediately and a countdown to the next retry. At least, we should do this if the error appears to be retryable. In this specific VPN case, it seems the status code is missing, so retry when there is no status code (is it a timeout?). Maybe 502-504 as well?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.