Re: [Libevent-users] evhttp questions, 1.2
I merged a bunch of changes from the trunk into the patches branch. Have a look at http://www.monkey.org/~provos/libevent-1.2a.tar.gz It contains a number of other minor fixes, too. If nobody complains, I plan on releasing this in the next couple days. Thanks for your patience, Niels. On 11/16/06, Niels Provos <[EMAIL PROTECTED]> wrote: Hi Ben, the http support is still very experimental. You are right in all the problems that you are seeing. Your best bet at the moment is to track the subversion trunk. Niels. On 11/16/06, Ben Rigas <[EMAIL PROTECTED]> wrote: > Hello all, > > I am experimenting with the HTTP support in libevent 1.2, but I have > some issues. > > First thing I noticed was that the "http-internal.h" file was not > being installed, and seems to be required to use the HTTP structures. > I copied this to my include path and things work ok. > > Another thing is that I can't figure out how to use the same > evhttp_connection to do multiple requests. If I try to use the same > evhttp_connection for a second request, it does not throw any errors > (ie, my new evhttp_make_request does not fail) but the request is > never actually sent out. If I make a new evhttp_connection each time, > then this works.. but I don't see why the evhttp_connection could not > be reused. > > Is there some function call that I could be missing to clear the > connection between requests? I looked through the headers, but didn't > see anything that was obvious. > > Thanks, > > -Ben > > > -- > > Ben Rigas > Software Engineer, InterOP Technologies > > ___ > Libevent-users mailing list > Libevent-users@monkey.org > http://monkey.org/mailman/listinfo/libevent-users > > ___ Libevent-users mailing list Libevent-users@monkey.org http://monkey.org/mailman/listinfo/libevent-users
[Libevent-users] monitoring the events of Xvnc
Hi, Can I monitor the idleness of the Xvnc using libevent or liboop ? -- Nikhil Google is Great ! ___ Libevent-users mailing list Libevent-users@monkey.org http://monkey.org/mailman/listinfo/libevent-users
[Libevent-users] libevent 1.2 varargs bug
Hello. i've been trying to 'make verify' libevent-1.2 on x86-64 SLES9 (gcc 3.3.3, glibc 2.3.5 (20050720) ) system. it just segfaults on regress evbuffer test, i've tracked the issue down to the loop calling vsnprintf() inside evbuffer_add_vprintf() the problem is that you can't call vsnprintf() many times with the same va_list it just segfaults on the second call, the glibc documentation states the following: http://www.gnu.org/software/libc/manual/html_node/Variable-Arguments-Output.html#Variable-Arguments-Output In some other systems, the va_list pointer may become invalid after the call to vprintf, so you must not use va_arg after you call vprintf. Instead, you should call va_end to retire the pointer from service. However, you can safely call va_start on another pointer variable and begin fetching the arguments again through that pointer. Calling vprintf does not destroy the argument list of your function, merely the particular pointer that you passed to it. i suggest using va_copy()-ing ap every time you enter the loop. proposed patch is attached, successfuly tested on x86, x86-64 SLES9. -- Anton Povarov [ [EMAIL PROTECTED] ] [ ICQ: 85431470 ] vprintf_va_args.patch Description: Binary data ___ Libevent-users mailing list Libevent-users@monkey.org http://monkey.org/mailman/listinfo/libevent-users
Re: [Libevent-users] Windows build impossible
Hi, Many thanks for the responses. When I fix it and make sure it works with VC6, I will send patches, but don't expect them too soon :-). I work on many platforms and my application runs on many platforms too, but I prefer VC6 for the development. Cheers, Kalin On 11/27/06, Niels Provos <[EMAIL PROTECTED]> wrote: I am not really a Windows user and have no convenient way to ensure that the Windows build works. If you have patches that make it work for you, please send them my way. Niels. On 11/23/06, Kalin Nakov <[EMAIL PROTECTED]> wrote: > Hi, > > I saw that libevent has some .dsp and .dsw files, but the sources are > completely unbuildable. First HAVE_CONFIG is not defined in the project, > also some WIN32 defines are re-defined in the code, some types are undefined > and have to be manually defined, functions are used which are unavailable in > windows (gettimeofday, etc). Are there any document with steps on how to > build libevent on windows, or the windows port is unsupported? If it is > unsupported, I could make a contribution and make it buildable on windows if > you want since I intend to use it. > > Cheers, > Kalin > > ___ > Libevent-users mailing list > Libevent-users@monkey.org > http://monkey.org/mailman/listinfo/libevent-users > > > -- Kalin Nakov, http://kalinnakov.com ___ Libevent-users mailing list Libevent-users@monkey.org http://monkey.org/mailman/listinfo/libevent-users