Repository navigation
Fix thin client connection error during slow download - #366
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Comment |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #366 +/- ##
==========================================
+ Coverage 0.00% 40.59% +40.59%
==========================================
Files 4 123 +119
Lines 26 5318 +5292
Branches 0 1018 +1018
==========================================
+ Hits 0 2159 +2159
- Misses 26 2866 +2840
- Partials 0 293 +293 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@msivasubramaniaan can you please add (CRW-11670) to the commit message (ex. "Fix thin client connection error during slow download (CRW-11670)")? That helps to identify the jira issue when looking at the commits. Thanks |
e70a93b to
4a29fb1
Compare
|
@msivasubramaniaan: Your fix is solid. It looks to me though as if the issue still happens: Playing around with it while clearing the client cache, made me hit the issue. Investigating. |
4a29fb1 to
0b30e10
Compare
|
Hello @adietish, CRW-11670.mp4 |
5eca857 to
570634f
Compare
|
rebased it. |
dea146a to
0724f12
Compare
On slow links the first-time JetBrains Client download exceeds the old 60s readiness waits, which surfaced "Connection Error" / "Cannot launch client" popups. wait until clientPresent (no wall-clock timeout); treat only clientClosed / clientFailedToOpenProject as permanent failure so transient presence flaps do not abort. Drop the provider's second readiness wait; Gateway Cancel still works via checkCancelled. Signed-off-by: Muthurajan Sivasubramanian <msivasub@redhat.com> Signed-off-by: Andre Dietisheim <adietish@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
0724f12 to
f62ffa5
Compare
adietish
left a comment
There was a problem hiding this comment.
Awesomeness, now things work. Thanks!
Amended minor additional fixes.
fixes https://redhat.atlassian.net/browse/CRW-11670
Fixed a premature JetBrains Client connection failure during client binary download on slow network connections.
The connection wait now checks
thinClient.clientPresentbefore considering a presence change as a successful client startup. This prevents intermediate presence changes during the download process from triggering Connection Error / Cannot launch client popups. Also added a check for the case where the client is already present before the presence listener is registered.Additionally resolved the warnings of the file