hey community!
i've been developing this fastcgi app to run ontop of nginx. and so far i've been doing good (while writing a parser for GET requests), so i moved on to implementing a POST request parser (which is essentially the same as the GET one), got it into local variables.. and everything seems fine, except the fact that in the constant (fcgi_accept loop) my parser will only eat ANY (get/post) request ONLY ONCE - and after that terminates with a segfault.
now in order to parse the request i use strtok() function and basic strcmp() stuff from <string.h>
prototype of a request is name/value pair such as mine "method=name_of_it"
question is: has anyone ever encountered such kind of error, if you did (or did not) any ideas why this might be happening?!
btw, before integrating the POST request handler (two lines of code), everything seemed to work fine and the constant accept loop persisted its existence until "method=kill" was passed through!
any help would be appreciated!!