/* 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 |
---|---|---|---|
204 | 2025-09-02 20:12:32 | 28.40 | 92% |
182 | 2025-08-14 12:24:47 | 31.29 | 93% |
181 | 2025-08-13 11:22:00 | 33.05 | 93% |
177 | 2025-08-13 11:12:38 | 34.08 | 93% |
134 | 2025-07-06 14:05:38 | 28.20 | 92% |
110 | 2025-07-03 08:56:05 | 30.26 | 92% |
44 | 2025-06-26 09:10:13 | 27.82 | 93% |