/* 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 |
---|---|---|---|
112 | 2025-07-23 14:06:38 | 59.28 | 97% |
102 | 2025-07-23 13:50:32 | 53.21 | 95% |
39 | 2025-07-01 06:40:59 | 55.78 | 94% |
3 | 2025-06-21 08:59:50 | 55.17 | 95% |