Hi,
Why is the generic POST data size limitation to 50 k nessesary in http.h?

I lost about 1 hour looking for pointer size issues, as i realized that ape-server does not handle commands sent via POST over a certain size. The APE-server just closed the connection,
without any type of warning, or error.
First i thought of this being a bug. So I tried using very long inlinepush commands, in order to provoke a segfault, so that i could find out where things go wrong. But nothing happened, the server just kept closing the connection for web requests over some size around 50k

Finally I stumbled upon a preprocessor def MAX_CONTENT_LENGTH which is set to 51200 in src/http.h (server source).

The only hint to that was a brief comment aside the preprocessor definition in the source: //50kb

I think this is the sort of things that scare users away. 50 kb is not an obvious limitation, and just introducing it without a big warning in the doc (wiki?), and least any kind of log output or response code is not near any kind of good software writing practice. I would have expected more diligence in a 1.0+ version,
but .... well. Let's leave  it there.

At least now google knows one more answer.

Paul

P.S. I also noticed that the offset member of _websocket_size is short, not size_t, although it is involved in pointer calculations. This will certainly fail .... (usage is in http.c)



--
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/

Reply via email to