/* 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 |
---|---|---|---|
190 | 2025-01-28 14:57:54 | 33.15 | 93.4% |
141 | 2024-09-21 15:16:15 | 36.94 | 95.8% |
99 | 2024-07-14 17:19:12 | 36.16 | 95.1% |
78 | 2024-06-12 16:13:26 | 32.50 | 93.5% |
22 | 2024-03-23 18:51:09 | 34.08 | 94.1% |