I am attempting to write a very simple HTTP server with Perl to serve up a single html file. Almost every time I go to the site, however, I get a \"connection reset\" error
You don't read the HTTP request from the client, i.e. you close the connection while there are still data to read. This will probably cause the RST.