/* 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 |
---|---|---|---|
187 | 2024-05-03 22:47:54 | 46.68 | 95.7% |
172 | 2024-05-03 19:47:53 | 46.45 | 94.8% |
158 | 2024-05-03 19:24:07 | 45.67 | 95% |
154 | 2024-05-03 19:16:47 | 46.91 | 95.7% |
145 | 2024-05-03 18:49:16 | 45.94 | 95.1% |
136 | 2024-05-03 18:17:51 | 41.68 | 93.8% |
127 | 2024-05-03 17:14:59 | 41.57 | 95.2% |
123 | 2024-05-03 00:19:22 | 43.87 | 94.5% |
98 | 2024-05-02 19:04:43 | 39.84 | 92.8% |
86 | 2024-05-02 18:31:38 | 39.06 | 93.4% |
67 | 2024-05-02 17:34:16 | 35.57 | 92.9% |
61 | 2024-05-01 22:47:02 | 36.52 | 93.3% |
9 | 2024-04-24 23:38:49 | 25.89 | 92.8% |