Commit f10c1ee
authored
rc/0.40.x version of (#7175)
DH-20307: Don't attempt to reconnect when connections are explicitly
closed.
This PR is necessary to support fixes made in
[deephaven-ent/iris/#3518](deephaven-ent/iris#3518).
Specifically, there is a race condition where a created Core+ JS API
client can fail login and will continue to spam the server with login
attempts that will never succeed. That PR handles the client side piece
of this by explicitly disconnecting the client when this happens. The
server side fix is to stop attempting to reconnect if a connection is
explicitly closed.
### Testing
I have tested the 2 PRs together and have seen that this PR + the other
PR stops the rogue connection spamming. I have only seen change in
`connectToWorker` method of `WorkerConnection.java` actually get hit,
but I have also not observed any problems caused by it. (#DH-20307)
1 parent 52aa293 commit f10c1ee
2 files changed
Lines changed: 13 additions & 3 deletions
File tree
- web/client-api/src/main/java/io/deephaven/web/client/api
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
| |||
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
335 | 341 | | |
336 | 342 | | |
337 | 343 | | |
| |||
909 | 915 | | |
910 | 916 | | |
911 | 917 | | |
912 | | - | |
913 | 918 | | |
| 919 | + | |
| 920 | + | |
914 | 921 | | |
915 | 922 | | |
916 | 923 | | |
| |||
1389 | 1396 | | |
1390 | 1397 | | |
1391 | 1398 | | |
1392 | | - | |
1393 | 1399 | | |
| 1400 | + | |
| 1401 | + | |
1394 | 1402 | | |
1395 | 1403 | | |
1396 | 1404 | | |
| |||
0 commit comments