postrank-labs / goliath

Goliath is a non-blocking Ruby web server framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Process killed by Exception

hghdo opened this issue · comments

commented

Hi

I had used goliath for about 1 year and everything is OK, thanks a lot! But recently my goliath process was broken for some unknown issue. I found the last output of is:
"ruby: ryah_http_parser.c:420: parse_url_char: Assertion `!((*__ctype_b_loc ())[(int) ((ch))] & (unsigned short int) _ISspace)' failed."

I had google the error output and found this page: tmm1/http_parser.rb#40 (comment)

So i'm wandering how to fix this problem.
Or is there any method that I can do to ignore this kind of http request and prevent goliath process from being killed.

Thanks

Prevent the request: no, not easily. I think the most immediate fix is to apply the linked patch(es) to the http_parser.rb gem. Once @tmm1 merges those changes, we'd just update the version dependency on this end.