Following up, the test was either a raging success or a raging failure. It was a success because the machine ran for about 67 hours before an operator error (mine) accidentally shut it down. It did not leak memory, freeze, or crash. But as far as testing goes, I didn't find any problems. I know my code isn't perfect so I need a better way to test. ; - 0
Here are some quick stats on the test:
Uptime: 67 hours
Socket connections: 6410
HTTP GET requests: 7175
HTTP HEAD requests: 21
Return code 200s (OK): 5870
Return code 301s (Moved Permanently): 75
Return code 304s (Not modified): 274
Return code 401s (Not authorized): 212
Return code 404s (Not found): 743
I served a lot of 404s because I did not have the docs on the machine ... those PDFs are too big.
Unique IP address: 514
Unique user-agent strings detected: 200
Interesting user agents:
User-Agent: Crowsnest/0.5 (+http://www.crowsnest.tv/)
User-Agent: facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)
User-Agent: Googlebot-Image/1.0
User-Agent: IrssiUrlLog/0.2
User-Agent: jack
User-Agent: Jakarta Commons-HttpClient/3.0.1
User-Agent: Java/1.6.0_35
User-Agent: Lynx/0.43b (DosLynx) libwww/2.14
User-Agent: Mozilla/3.0 (compatible; Indy Library)
User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Mac_PowerPC)
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
User-Agent: xChaos_Arachne (DOS /5.1.97;GPL,387+)
User-Agent: Mozilla/5.0 (Maemo; Linux; U; Jolla; Sailfish; Mobile; rv:26.0) Gecko/26.0 Firefox/26.0 SailfishBrowser/1.0 like Safari/538.1
User-Agent: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.8.0.7; rv:27.0) Gecko/20100101 Firefox/27.0
HTTP protocol:
HTTP 0.9 requests: 1
HTTP 1.0 requests: 94
HTTP 1.1 requests: 7101
Most interesting requests:
GET /HNAP1/ (looking for an old d-link security hole)
GET /i/am/currently/hacking/you/mike
GET /you/are/being/hacked/mike
GET /apple-touch-icon.png
GET /apple-touch-icon-precomposed.png
There were about 15 errors parsing URLs where I wish I had logged more information. I'll do better on that next time.
Remember, this test ran on a PCjr. It has a V20 CPU and a jrIDE for memory and a hard drive, but otherwise it is stock. 4.77Mhz of insane, 8088 class madness. You could easily run this test on a machine with 512K of sidecars and a parallel port connected hard drive.
Thanks for the testing help!
Mike