/* 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 |
---|---|---|---|
135 | 2021-09-30 11:26:09 | 94.65 | 97% |
133 | 2021-09-29 10:08:23 | 85.07 | 95% |
113 | 2019-07-20 20:58:38 | 87.08 | 97% |
45 | 2019-06-15 04:34:48 | 71.94 | 95% |
34 | 2019-06-14 18:56:19 | 81.89 | 96% |
17 | 2019-06-12 18:27:25 | 84.87 | 97% |