/* 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 | 2025-06-23 19:19:39 | 15.38 | 94% |
59 | 2025-06-23 19:12:16 | 16.84 | 94% |
36 | 2025-06-11 18:47:56 | 16.97 | 94% |
17 | 2025-05-31 19:22:46 | 14.13 | 91% |
15 | 2025-05-31 19:11:22 | 15.33 | 94% |