Perl: Connection reset with simple HTTP server

前端 未结 1 1118
孤城傲影
孤城傲影 2020-12-20 06:53

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

相关标签:
1条回答
  • 2020-12-20 07:16

    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.

    0 讨论(0)
提交回复
热议问题