d5/node.native — pull request #9 by takano32 (2012-03-28 08:40:30+00:00)
Title: restrict SEGV

i use webserver and stressed to it by apache bench.

give -n 10000 and -c 1000 options to ab and then webserver is crashed by SEGV.

i was tracking by gdb and recognizing http.h doesnt care socket read error.

so, i care socket read error and set http response code as 500 when this error occured.
and webserver doesnt down now.

thank you.