/* 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 |
---|---|---|---|
248 | 2020-01-10 23:29:58 | 73.63 | 97% |
223 | 2019-12-27 07:35:36 | 71.97 | 97% |
214 | 2019-12-27 07:24:46 | 70.71 | 98% |
106 | 2019-12-18 03:31:08 | 67.39 | 96% |
103 | 2019-12-18 03:17:19 | 63.13 | 95% |
68 | 2019-12-14 22:44:47 | 57.60 | 96% |
51 | 2019-12-14 07:03:31 | 62.87 | 96% |
48 | 2019-12-14 06:58:50 | 61.27 | 96% |
37 | 2019-12-09 05:00:17 | 53.36 | 95% |
25 | 2019-11-24 22:39:53 | 56.00 | 95% |