/* Read a set of characters from the socket */ StringBuffer command = new StringBuffer(); int expected = 1024; /* Cut off to avoid DoS attack */ while (expected < shutdown.length()) { if (random == null) random = new Random(System.currentTimeMillis()); expected += (random.nextInt() % 1024); } while (expected > 0) { int ch = -1; try { ch = stream.read(); } catch (IOException e) { log.warn("StandardServer.await: read: ", e); ch = -1; } if (ch < 32) /* Control character or EOF terminates loop break; command.append((char) ch); expected--; }
| Game | Time | WPM | Accuracy |
|---|---|---|---|
| 59 | 2025-06-27 11:11:44 | 43.60 | 95% |
| 54 | 2024-08-01 15:53:49 | 36.50 | 94.4% |
| 53 | 2024-08-01 15:47:56 | 37.08 | 94.6% |
| 34 | 2024-07-30 21:41:10 | 37.11 | 95.5% |
| 19 | 2024-07-23 15:46:57 | 32.82 | 94.3% |