If you think you aren't going to be processing connections very quickly you may wish to expand the queue when you construct the server socket. For example,
try {
ServerSocket httpd = new ServerSocket(80, 50);
}
catch (IOException ex) {
System.err.println(ex);
}