Michael Pliskin a écrit :
> Hello all,
> 
>   We're experiencing a strange issue with Neko dev server here: on a
>   specific machine it crashes when processing a request from Firefox.
>   Same requests done with IE/Opera work pretty fine. The exception
>   we're getting is:
> 
>   Starting Neko Server on localhost:2000
>   Called from tools/Tools.nml line 40
>   Called from core/Args.nml line 43
>   Called from core/Args.nml line 50
>   Called from tools/Tools.nml line 31
>   Called from core/Net.nml line 96
>   Called from core/Array.nml line 100
>   Called from core/Net.nml line 102
>   Called from tools/WebServer.nml line 565
>   Called from tools/WebServer.nml line 566
>   Called from tools/WebServer.nml line 522
>   Called from tools/WebServer.nml line 174
>   Called from core/Lexer.nml line 214
>   Called from tools/WebServer.nml line 107
>   Called from core/Core.nml line 197
>   Exception : Invalid_char
> 
>   The question is how do I debug that? The line that crashes from
>   WebServer.nml is
>         var meth = Lexer.token l http_request_method;
>   I'd like some kind of trace() to be put into NekoML code to see
>   what's exactly wrong with the request..

Hi,

It seems like some part of the HTTP protocol cannot be understand by the
webserver.

What you can do is the following :

before "Lexer.input" in parse_http_request, add the following lines :

var str = IO.read_all in;
printf "=====%s=====" str;
var in = IO.read_string str;

This will should all HTTP requests before parsing them.
Please send me the output of the HTTP requests that fails, or try to
understand why it fails by checking the grammar rules (see Lexer.build
calls in Webserver.nml)

Best,
Nicolas

Best,
Nicolas

-- 
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to