/* 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 |
|---|---|---|---|
| 70 | 2023-09-04 08:52:40 | 39.48 | 97.4% |
| 62 | 2023-09-01 17:40:20 | 35.46 | 97% |
| 42 | 2023-08-28 19:28:35 | 41.17 | 98.2% |
| 35 | 2023-08-22 12:06:49 | 39.24 | 97.8% |
| 18 | 2023-08-18 13:28:10 | 38.25 | 97.8% |
| 11 | 2023-08-16 10:23:38 | 35.74 | 97.1% |
| 9 | 2023-08-12 10:14:37 | 35.38 | 96% |
| 7 | 2023-08-12 10:08:47 | 32.90 | 96% |