[Libevent-users] Getting client IP address from proxy

2009-07-09 Thread Rauan Maemirov
Hi, all. I'm trying to proxy from nginx to my daemon (written upon libevent), but in req-remote_host i always get 127.0.0.1. What header i should change, so that libevent would get correct ip address? Or there's no solution, but only getting it directly from evhttp_find_header(req-input_headers,

[Libevent-users] Process terminating with default action of signal 13 (SIGPIPE)

2009-06-26 Thread Rauan Maemirov
Hi, all. I'm having issues with libevent. When I use siege or something like that, everything's ok. But when I open link in browser, and start to push F5 like a crazy, daemon exits. Valgrind shows: ... Process terminating with default action of signal 13 (SIGPIPE) ==5635==at 0x5B2BF90: write

Re: [Libevent-users] Process terminating with default action of signal 13 (SIGPIPE)

2009-06-26 Thread Rauan Maemirov
it rapidly, connection is closing in-between the read and write hence getting the sigpipe. On Fri, Jun 26, 2009 at 3:01 PM, Rauan Maemirov ra...@maemirov.com wrote: Hi, all. I'm having issues with libevent. When I use siege or something like that, everything's ok. But when I open link

[Libevent-users] Parsing request uri

2009-04-08 Thread Rauan Maemirov
Hey guys. I'm new to C, and couldn't find any docs on how to parse query_string with evhttp_parse_query. Interested in parsing it to kind of associative array. ___ Libevent-users mailing list Libevent-users@monkey.org