/* 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 |
|---|---|---|---|
| 73 | 2024-09-03 09:34:53 | 38.47 | 95.8% |
| 70 | 2024-08-23 12:22:36 | 41.55 | 97.3% |
| 59 | 2024-08-23 11:56:24 | 39.52 | 96.5% |
| 51 | 2024-08-19 07:13:31 | 37.56 | 97.4% |
| 27 | 2024-08-11 12:02:28 | 30.56 | 94.2% |