/* 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 |
---|---|---|---|
143 | 2021-08-30 23:52:11 | 62.35 | 98% |
126 | 2019-12-17 04:18:29 | 55.46 | 98% |
110 | 2019-05-06 13:15:07 | 46.52 | 95% |
106 | 2019-04-15 23:48:25 | 46.31 | 96% |
99 | 2019-04-12 05:06:15 | 49.93 | 97% |
82 | 2019-03-31 11:04:37 | 51.36 | 96% |