[D1DD9700] [2016-05-26 12:12:42] [ERROR request_parser.c:1067] Trying to set more data at server than allowed 512
// handler
int handle_request(void * _, onion_request * req, onion_response * res){
printf("handle request...\n");
...
// server initialization
static void initialize_server(){
o = onion_new(O_THREADED);
onion_set_timeout(o, 5000);
onion_set_hostname(o, "0.0.0.0");
onion_set_port(o, 4040);
onion_set_max_post_size(o, 1048576);
onion_url * url = onion_root_url(o);
onion_url_add(url, "^(.*)$", (void*)handle_request);
INFO("server listening on port %s", 4040);
onion_listen(o);
cleanup(o, url);
}
const onion_block * onion_request_data = onion_request_get_data(req);
onion_connection_status post_data(void *_, onion_request *req, onion_response *res){
onion_response_printf(res, "response...");
return OCS_PROCESSED;
}
--
You received this message because you are subscribed to the Google Groups "onion-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onion-dev+...@coralbits.com.
To post to this group, send email to onio...@coralbits.com.
Visit this group at https://groups.google.com/a/coralbits.com/group/onion-dev/.
For more options, visit https://groups.google.com/a/coralbits.com/d/optout.
Hey David,
Thanks for following up on this. Yes that is the case I am sending JSON POST data. When testing this with postman i was unable to hit the server with payloads >1.5K data. This includes, but isn't limited to JSON and plaintext.
I appreciate your work,
Colin