Re: [Libevent-users] help about an error message

2013-03-26 Thread Azat Khuzhin
> then used it everywhere > > > to create the bug i connect frenzy to the server using a while true; > > Notice: if the program do not close the FD i exhaust the files desc before > reaching the bug. > > -- >

Re: [Libevent-users] [PATCH] Add sample/https-client.c, an example of stacking evhttp as a client on top of bufferevent_ssl.

2013-03-11 Thread Azat Khuzhin
Also I want to note that HTTP POST works fine with 100 MiB. I added test to test/regress_http.c. Nick do you think that it is need for libevent upstream? Which I can not say about HTTPS. On Mon, Mar 11, 2013 at 11:26 PM, Azat Khuzhin wrote: > On Mon, Mar 11, 2013 at 11:22 PM, Azat Khuz

Re: [Libevent-users] [PATCH] Add sample/https-client.c, an example of stacking evhttp as a client on top of bufferevent_ssl.

2013-03-11 Thread Azat Khuzhin
On Mon, Mar 11, 2013 at 11:22 PM, Azat Khuzhin wrote: > With my libevent version 512KiB transmitted succesfully. > > azat:.../libevent/sample (https)$ tr -dc A-Za-z0-9 head -c$((512 * 1024) >| ../../data.512.kb > azat:.../libevent/sample (https)$ ./https-client -url > https

Re: [Libevent-users] [PATCH] Add sample/https-client.c, an example of stacking evhttp as a client on top of bufferevent_ssl.

2013-03-11 Thread Azat Khuzhin
t;;, host: "localhost" > .. > nginx access.log: > :::127.0.0.1 - - [11/Mar/2013:19:38:15 +0400] "POST /proxy/ HTTP/1.1" 200 > 13 "-" "-" > ::ffff:127.0.0.1 - - [11/Mar/2013:19:38:22 +0400] "POST /proxy/ HTTP/1.1" 502 > 172 "-" "-" > :::127.0.0.1 - - [11/Mar/2013

Re: [Libevent-users] How to properly shutdown openssl filter?

2013-01-28 Thread Azat Khuzhin
; > bufferevent_free(bev); > SSL_free(ssl); > > // this frees the stack of filters below "underlying" > cleanup_ev_stack(underlying); > > // when this cb handler returns, all the bufferevents > // have been freed > } > } > > Thank you > Sasha > *** > To unsubscribe, send an e-mail to majord...@freehaven.net with > unsubscribe libevent-users in the body. -- Azat Khuzhin

[Libevent-users] Re: evhttp client/server example with https, IPv6, etc (was: evhttp client error handling)

2013-01-26 Thread Azat Khuzhin
ial What about examples, you can see at libevent tests. And also want to note that there is git://github.com/ellzey/libevhtp.git - replacement for libevent's httpd API. On Sun, Jan 27, 2013 at 1:43 AM, Patrick Pelletier wrote: > Azat Khuzhin wrote: > >> It looks like that you don&#

Re: [Libevent-users] evhttp client error handling

2013-01-26 Thread Azat Khuzhin
getaddrinfo: address family for nodename not supported > couldn't bind to port 8421. Exiting. > > So, I'm not sure what's going on there. And anyway, I don't really want to > run the server on just IPv6; I want it to answer on both IPv4 and IPv6. But > I don&

Re: [Libevent-users] evhttp client error handling

2013-01-23 Thread Azat Khuzhin
; read change was 0 > (none); write change was 1 (add): Bad file descriptor > > and my http request still fails. But that's as far as I've gotten in > debugging it, though. > > But thanks for your patch! I think that will be part of the solution; I'm > just running into other evhttp issues now (the ECONNREFUSED and retry > thing). > > --Patrick > -- Azat Khuzhin *** To unsubscribe, send an e-mail to majord...@freehaven.net with unsubscribe libevent-usersin the body.

Re: [Libevent-users] evhttp client error handling

2013-01-22 Thread Azat Khuzhin
wrote: > Azat Khuzhin wrote: >> >> Also on which operating system did you work? > > > Ubuntu 10.04 LTS: > > Linux chives 2.6.32-34-generic #77-Ubuntu SMP Tue Sep 13 19:39:17 UTC 2011 > x86_64 GNU/Linux > > But the operating system doesn't really

Re: [Libevent-users] evhttp client error handling

2013-01-20 Thread Azat Khuzhin
Also on which operating system did you work? Maybe this will be useful for you http://instantbadger.blogspot.ru/2010/06/eafnosupport-socket-connection-issue-on.html On Sun, Jan 20, 2013 at 7:18 PM, Azat Khuzhin wrote: > On Sat, Jan 19, 2013 at 9:41 AM, Patrick Pelletier > wrote: >&

Re: [Libevent-users] evhttp client error handling

2013-01-20 Thread Azat Khuzhin
ess family we bound to. If we've bound to >> 127.0.0.1, there's no point in doing an AF_UNSPEC name lookup -- we can >> only connect to AF_INET addresses in that case. > > > That's a potential workaround that would allow localhost (or any dual-stack > host)

Re: [Libevent-users] evthread_use_windows_threads() cause memory leak?

2012-12-03 Thread Azat Khuzhin
> 30 F0 1E 00 FF FF FF FF 00 00 00 00 00 00 00 00 > {477} normal block at 0x003E7F10, 24 bytes long. > Data: <> F8 EF 1E 00 FF FF FF FF 00 00 00 00 00 00 00 00 > Object dump complete. > > > 2012/12/4 Azat Khuzhin >> >> Hi, >&g