[plt-scheme] intermittent "Connection reset by peer" with web server on mac

From: Simon Michael (simon at joyful.com)
Date: Wed Jul 9 13:19:11 EDT 2008

I worked through the systems programming tutorial again last night, with 
mzscheme 4.0.2 on mac osx leopard, and observed intermittent connection 
failures when making concurrent connections. eg this fails pretty often:

  ab -n 1000 -c 100 http://localhost:8080/


  === context ===
  /Users/simon/src/serve.ss:36:0: handle

  regexp-match: expects type <string, byte string, or input port> as 2nd 
  argument, given: #<eof>; other arguments were: #rx"^GET (.+) 

I see the same thing with plt-web-server, it says:

  output-file: tcp-write: error writing (Broken pipe; errno=32) File a 
PLT bug report if this is on a live server!


Posted on the users mailing list.