/* 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 |
---|---|---|---|
137 | 2024-06-29 19:48:53 | 59.47 | 97.4% |
128 | 2024-03-15 22:29:31 | 56.30 | 97.4% |
124 | 2024-03-09 18:52:11 | 60.30 | 97.1% |
89 | 2023-10-03 12:01:58 | 55.16 | 98.1% |
81 | 2023-09-30 16:37:21 | 45.48 | 96.9% |
56 | 2023-07-25 13:32:27 | 42.85 | 96.5% |
34 | 2023-07-16 18:00:15 | 41.48 | 97.6% |
33 | 2023-07-16 17:30:46 | 40.52 | 96.7% |