Text Details
|
/* 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--; }
—
Tomcat Server
(software)
by Apache Project
|
| Language: | English |
This text has been typed
more than
1000 times:
| Avg. speed: | 41 WPM |
|---|---|
| Avg. accuracy: | 94.7% |
Top 10 scores for this text
| User | Speed | Accuracy | Points | Place | Date | |
|---|---|---|---|---|---|---|
| 1 | jweb_guru_code | 108 WPM | N/A | N/A | 1/3 | Jul 31, 2009 |
| 2 | valikor_code | 81 WPM | N/A | N/A | 2/3 | Jul 31, 2009 |
| 3 | drunkvalikor | 54 WPM | N/A | N/A | 1/2 | Dec 14, 2008 |
| 4 | typeracer | 40 WPM | N/A | N/A | 1/2 | Mar 20, 2009 |