/* 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 |
|---|---|---|---|
| 152 | 2014-12-14 14:44:54 | 64.04 | 94% |
| 143 | 2014-11-07 14:21:51 | 70.46 | 96% |
| 134 | 2013-11-16 15:32:54 | 62.22 | 93% |
| 132 | 2013-11-16 15:27:37 | 59.71 | 93% |
| 123 | 2012-01-23 13:56:05 | 65.73 | 95% |
| 113 | 2011-07-30 14:41:40 | 70.34 | 98% |
| 104 | 2011-07-30 10:26:36 | 70.05 | 96% |
| 100 | 2011-07-13 15:35:20 | 68.02 | 94% |
| 99 | 2011-07-13 15:33:07 | 70.22 | 97% |
| 96 | 2011-07-12 15:13:02 | 64.84 | 94% |
| 73 | 2011-02-12 08:17:49 | 73.27 | |
| 71 | 2011-02-12 06:57:04 | 69.86 | |
| 67 | 2011-02-12 06:50:02 | 71.32 | |
| 45 | 2011-02-10 09:44:30 | 64.14 | |
| 41 | 2011-02-10 09:38:46 | 62.89 | |
| 35 | 2011-02-06 05:58:56 | 62.66 | |
| 30 | 2011-02-06 04:34:08 | 55.61 | |
| 8 | 2011-02-04 17:00:56 | 50.89 |