/* 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 |
---|---|---|---|
256 | 2023-02-02 12:51:35 | 54.89 | 96% |
227 | 2023-01-29 17:57:03 | 56.57 | 97% |
188 | 2023-01-24 15:49:05 | 51.25 | 96% |
174 | 2023-01-23 17:27:46 | 54.02 | 97% |
154 | 2023-01-23 03:48:07 | 52.97 | 97% |
103 | 2023-01-22 06:00:21 | 56.71 | 96% |
76 | 2023-01-22 05:01:51 | 55.39 | 97% |
74 | 2023-01-22 04:57:42 | 55.86 | 98% |
72 | 2023-01-21 18:41:51 | 49.52 | 95% |
66 | 2023-01-21 18:28:27 | 47.31 | 94% |
55 | 2023-01-21 17:20:52 | 45.62 | 94% |
46 | 2023-01-21 13:41:44 | 47.93 | 95% |
25 | 2023-01-21 11:51:20 | 49.81 | 94% |
22 | 2023-01-21 11:45:18 | 47.26 | 95% |