/* 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 |
---|---|---|---|
136 | 2023-09-11 09:28:35 | 49.58 | 96.7% |
113 | 2023-09-04 10:22:24 | 45.57 | 95.4% |
99 | 2023-09-02 12:34:22 | 46.23 | 97.6% |
96 | 2023-09-01 13:36:36 | 46.82 | 96.4% |
68 | 2023-08-29 17:02:12 | 41.43 | 95.7% |
44 | 2023-08-24 11:35:24 | 40.18 | 95.1% |
34 | 2023-08-23 16:02:04 | 45.74 | 96.8% |