/* 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 |
---|---|---|---|
132 | 2025-01-23 02:08:23 | 24.67 | 94.4% |
118 | 2024-07-29 02:42:20 | 33.15 | 95.6% |
112 | 2024-06-26 08:15:45 | 31.82 | 94.1% |
94 | 2024-05-25 18:12:54 | 30.64 | 95.1% |
68 | 2024-05-06 05:22:04 | 29.89 | 95.4% |
62 | 2024-05-05 10:03:57 | 28.14 | 93.2% |
1 | 2024-01-31 21:59:27 | 22.20 | 92.4% |