/* 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 |
---|---|---|---|
157 | 2022-03-09 15:14:09 | 65.58 | 96% |
153 | 2022-03-09 15:06:27 | 62.59 | 95% |
110 | 2021-11-04 08:56:29 | 61.18 | 94% |
93 | 2021-11-04 08:32:30 | 56.04 | 94% |
67 | 2021-11-04 05:05:37 | 60.44 | 95% |
65 | 2021-11-04 05:02:36 | 50.56 | 93% |
45 | 2021-11-04 04:26:01 | 58.80 | 94% |
34 | 2021-11-04 04:07:37 | 55.55 | 95% |
32 | 2021-11-03 17:23:56 | 53.77 | 93% |
14 | 2021-11-03 16:17:29 | 52.64 | 94% |