/* 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 |
|---|---|---|---|
| 105 | 2025-06-13 22:51:47 | 28.08 | 96% |
| 102 | 2025-06-13 22:44:29 | 29.67 | 97% |
| 94 | 2025-03-15 19:25:26 | 33.49 | 94.3% |
| 93 | 2025-03-15 19:21:32 | 33.48 | 95.2% |
| 91 | 2025-03-15 19:15:53 | 33.01 | 93.7% |
| 86 | 2025-03-15 19:04:52 | 30.13 | 93.3% |
| 62 | 2023-10-15 16:31:39 | 29.15 | 95.4% |
| 26 | 2023-06-29 07:38:41 | 26.74 | 94.6% |
| 16 | 2023-06-05 07:55:18 | 26.18 | 95.1% |