Repository navigation
Commit 4f2c290
committed
console proxy: fix noVNC handshake busy-spin causing intermittent console connect timeouts
waitForNoVNCReply() was an unbounded CPU busy-spin waiting for the browser's
handshake reply. Under concurrent console load this could starve the Jetty
I/O thread delivering the reply, stalling the handshake until noVNC's
client-side timeout gave up and reloaded the page. Replace the spin with a
wait/notify on the existing lock, bounded by a timeout that logs a warning
instead of hanging silently.1 parent 1805dde commit 4f2c290
1 file changed
Lines changed: 19 additions & 6 deletions
Lines changed: 19 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
| 416 | + | |
| 417 | + | |
416 | 418 | | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
423 | 435 | | |
424 | 436 | | |
425 | 437 | | |
| |||
468 | 480 | | |
469 | 481 | | |
470 | 482 | | |
| 483 | + | |
471 | 484 | | |
472 | 485 | | |
473 | 486 | | |
| |||
0 commit comments