/* 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 |
---|---|---|---|
180 | 2022-11-22 10:45:16 | 76.64 | 97% |
178 | 2022-10-06 20:53:15 | 71.15 | 97% |
171 | 2022-06-23 16:05:27 | 73.03 | 97% |
168 | 2021-08-24 21:16:07 | 58.89 | 96% |
118 | 2019-01-30 13:55:44 | 63.37 | 96% |
99 | 2019-01-30 13:21:36 | 64.26 | 96% |
14 | 2019-01-27 23:18:33 | 56.10 | 95% |