/* 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 |
---|---|---|---|
133 | 2023-07-29 21:14:48 | 34.19 | 94.6% |
78 | 2023-07-17 18:30:22 | 39.61 | 95.3% |
58 | 2023-07-11 18:48:41 | 35.33 | 96.8% |
43 | 2023-07-09 13:07:50 | 34.52 | 96.5% |
39 | 2023-07-06 18:39:16 | 32.31 | 95.7% |
35 | 2023-07-06 03:11:16 | 35.57 | 96.2% |
19 | 2023-07-05 18:01:28 | 35.65 | 97% |
9 | 2023-06-30 19:09:53 | 32.66 | 96.3% |
5 | 2023-06-30 18:59:25 | 29.39 | 95.4% |