/* 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 |
---|---|---|---|
100 | 2024-02-05 05:22:05 | 41.76 | 95.3% |
92 | 2024-02-02 05:19:45 | 40.82 | 93.3% |
89 | 2024-02-02 01:58:53 | 41.81 | 94.5% |
72 | 2024-02-01 07:27:07 | 32.88 | 93.4% |
63 | 2024-02-01 07:12:02 | 43.78 | 95.7% |
36 | 2024-02-01 02:48:23 | 39.77 | 95.4% |
30 | 2024-02-01 02:35:17 | 41.33 | 95.1% |
15 | 2024-02-01 01:34:02 | 32.18 | 93.5% |