Hi Denis, I reconize that this hardcoded value is pretty... ugly and only work on little endian. I should add a compilation instruction for that. Btw, using an integer instead of a string comparison is faster in that case. (Yes long polling send a lot of http headers).
What's the new issue? The server still not response? Anthony On 8 jan, 12:16, Denis Valdenaire <[email protected]> wrote: > > So why the process is not writing is still unclear. Could it be an > > harware problem (it's a build from source on a ppc host on OpenSuse > > 11.0) ? > > Ok, i found it, that's a bug. > > Look at that piece of code : (function http_process in http.c) > It analyzes the request with some (may i say, UGLY ???) hard-coded > values.... and failed to find the correct answer.... > I added the following (UGLYIER, i reckon) code to circumvent the > problem. > > Thanks for fixing that the correct way. > > switch(*(int *)data) { > /* start of specific code : PPC ??? */ > case 1195725856: /* GET + space */ > http->type = HTTP_GET; > break; > case 1347375956: /* POST */ > http->type = HTTP_POST; > break; > /* end of specific code : PPC ??? */ > case 542393671: /* GET + space */ > http->type = HTTP_GET; > break; > case 1414745936: /* POST */ > http->type = HTTP_POST; > break; > default: > http->error = 1; > return; > } > > Anyway, that still don't work, but on another problem... Oh, and by > the way, i opened a bug in the tracker for this. > > Regards
-- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/
