/* 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 |
---|---|---|---|
60 | 2023-07-04 23:41:47 | 41.63 | 96.8% |
48 | 2023-07-04 20:25:36 | 36.76 | 96.3% |
36 | 2023-07-04 08:59:29 | 35.80 | 97.1% |
29 | 2023-07-04 07:54:23 | 39.36 | 97.5% |
21 | 2023-07-04 06:54:07 | 37.38 | 95.8% |
18 | 2023-07-04 06:44:37 | 36.69 | 95.2% |