/* 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 |
---|---|---|---|
221 | 2025-05-12 18:57:12 | 58.70 | 96% |
146 | 2025-04-30 12:05:54 | 55.42 | 97% |
129 | 2025-04-19 18:28:01 | 51.32 | 95% |
118 | 2025-04-19 13:02:28 | 53.38 | 95% |
88 | 2025-04-18 11:47:24 | 50.04 | 96% |
26 | 2025-04-12 16:16:03 | 53.56 | 95% |
13 | 2025-04-08 19:53:27 | 53.63 | 95% |
11 | 2025-04-08 19:49:08 | 51.19 | 96% |