/* 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 |
---|---|---|---|
119 | 2024-09-30 06:08:48 | 27.48 | 95.6% |
116 | 2024-09-30 06:00:29 | 26.44 | 95.5% |
91 | 2024-09-25 03:01:50 | 23.83 | 92.9% |
67 | 2024-09-21 03:27:50 | 25.07 | 95.1% |
50 | 2024-09-14 14:45:24 | 22.89 | 95% |
37 | 2024-09-13 10:01:06 | 20.61 | 93.7% |
19 | 2024-09-11 05:54:00 | 20.03 | 94.6% |