Jan 21, 2009 at 5:43 PM
Edited Jan 21, 2009 at 5:45 PM
Checked again running netstat in parallel. Obviously sockets are not the problem (it's only using a single socket for all non-concurrent requests).
Must be something else.
Maybe someone can confirm that? Here's the easiest way to find out:
On a Linux-based machine (or MacOS, or maybe even Windows -- but you will need to install Apache there) run:
$ ab -c 1 -n 40000 http://192.168.160.133:8081/
(obviously you need to replace the URL accordingly)
@jgauffin: Thanks for applying my patch regarding the NullPointerException that fast!
Edit: will try to build a multi-threaded web server using the HttpListener today or tomorrow (not a huge task anyway). Then we'll see, if it's an issue related to the code or the network or maybe something completely different.