/* 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 |
---|---|---|---|
454 | 2021-07-18 18:09:01 | 76.38 | 98% |
418 | 2021-07-16 21:13:05 | 67.17 | 97% |
407 | 2021-07-05 10:12:35 | 68.03 | 97% |
268 | 2020-04-13 09:22:19 | 61.32 | 97% |
266 | 2020-04-12 12:32:07 | 58.58 | 97% |
263 | 2020-04-12 12:24:29 | 53.88 | 97% |
249 | 2020-04-07 14:07:15 | 53.19 | 97% |
228 | 2020-04-03 11:25:06 | 50.13 | 96% |
219 | 2020-04-03 10:55:46 | 53.32 | 97% |
205 | 2020-03-30 07:00:35 | 53.25 | 96% |
193 | 2020-03-28 18:50:21 | 55.20 | 97% |
177 | 2020-03-26 09:24:03 | 47.94 | 96% |
149 | 2020-03-16 17:51:52 | 53.01 | 97% |
88 | 2019-10-19 08:57:27 | 48.32 | 95% |
76 | 2019-10-19 06:31:18 | 49.33 | 95% |
27 | 2019-09-29 16:52:18 | 39.62 | 95% |