/* 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 |
|---|---|---|---|
| 88 | 2023-05-28 17:10:45 | 36.78 | 97% |
| 83 | 2023-05-28 16:59:00 | 35.90 | 97% |
| 54 | 2023-05-27 21:41:15 | 35.67 | 98% |
| 36 | 2023-05-23 22:53:03 | 35.31 | 97% |
| 13 | 2023-05-22 21:37:24 | 31.45 | 96% |
| 2 | 2023-05-22 21:11:01 | 29.24 | 95% |