Re: [Libevent-users] libevent 1.2

2006-10-18 Thread Scott Lamb
without drift. I made my copy just take absolute uptimes, but you could probably achieve most of the same thing by implementing EV_PERIODIC for timers. -- Scott Lamb http://www.slamb.org/ ___ Libevent-users mailing list Libevent-users@monkey.org http

[Libevent-users] Patches and complaints

2006-10-18 Thread Scott Lamb
structures have changed since the event_debug()s were written. Best regards, Scott -- Scott Lamb http://www.slamb.org/ event-once-leak.patch Description: Binary data event-poll-leak.patch Description: Binary data event-signal.patch Description: Binary data

Re: [Libevent-users] questions about bufferevent

2006-10-30 Thread Scott Lamb
.) It's probably in my_own_biz_code(). 2) You've saturated your network connection. How fast can you send data, and how fast are you sending data? On Linux, sar -n DEV 1000 1 will show you bandwidth utilization every second (for 1000 seconds). -- Scott Lamb http://www.slamb.org

Re: [Libevent-users] evbuffer issues on GNU/Linux amd64

2006-11-09 Thread Scott Lamb
On Nov 9, 2006, at 6:17 PM, Niels Provos wrote: I submitted a fix along these lines to subversion. Please, check it out and see if you can reproduce problems on amd64. I don't have access to such a system. Oh, by the way. I've been getting into buildbot lately. Are you interested in having

Re: [Libevent-users] evbuffer issues on GNU/Linux amd64

2006-11-11 Thread Scott Lamb
On Nov 9, 2006, at 6:17 PM, Niels Provos wrote: I submitted a fix along these lines to subversion. Please, check it out and see if you can reproduce problems on amd64. I don't have access to such a system. Oh, buildbot also lets you force a build of a particular revision. So you should be

Re: [Libevent-users] looking for a swig interface for libevent

2007-01-04 Thread Scott Lamb
hundredfold by time saved debugging the SWIG-generated code later. http://www.artima.com/weblogs/viewpost.jsp?thread=95863 -- Scott Lamb http://www.slamb.org/ ___ Libevent-users mailing list Libevent-users@monkey.org http://monkey.org/mailman/listinfo

Re: [Libevent-users] Sigprocmask vs pthread_sigprocmask

2007-02-22 Thread Scott Lamb
On Feb 22, 2007, at 6:32 PM, Niels Provos wrote: Do you have an addition to the regression test that would allow me to verify that the new code works as intended? If not, it would be most appreciated :-) There is one that verifies the quickly received signal case. Are you talking about

Re: [Libevent-users] [PATCHES] use monotonic clock infinite timeouts

2007-07-25 Thread Scott Lamb
Scott Lamb wrote: libevent's monotonic clock detection is currently broken on all platforms. The first attached patch fixes it. The second takes advantage of it to remove the 5-second idle timeout where possible. This is starting to become a big deal on Linux, where they've removed ticks from

Re: [Libevent-users] [PATCH] initialize ev_res

2007-08-04 Thread Scott Lamb
Christopher Layne wrote: On Thu, Jul 19, 2007 at 01:14:58PM -0700, Scott Lamb wrote: When I use valgrind --tool=memcheck on a libevent-based program, it gives the following complaint: ==15442== Conditional jump or move depends on uninitialised value(s) ==15442==at 0x4C0F2D3: event_add

Re: [Libevent-users] [PATCH] initialize ev_res

2007-08-05 Thread Scott Lamb
Christopher Layne wrote: On Sat, Aug 04, 2007 at 07:21:46PM -0700, Scott Lamb wrote: Christopher Layne wrote: On Thu, Jul 19, 2007 at 01:14:58PM -0700, Scott Lamb wrote: When I use valgrind --tool=memcheck on a libevent-based program, it gives the following complaint: ==15442== Conditional

Re: [Libevent-users] [PATCHES] use monotonic clock infinite timeouts

2007-08-05 Thread Scott Lamb
Niels Provos wrote: Thanks for the patches. I removed the default timeout. Your patch had a bug where timeout_correct no longer set event_tv correctly. I fixed that. Oh, nice catch, thanks. Unfortunatley, the regression test currently fails on Mac OS X when compiled with -O2. Still

[PATCH] Re: [Libevent-users] rtsig doesn't compile - remove?

2007-08-05 Thread Scott Lamb
a5d264a55153e029e58eebb60840f0ed17a81071 Mon Sep 17 00:00:00 2001 From: Scott Lamb [EMAIL PROTECTED] Date: Tue, 31 Jul 2007 14:41:38 -0700 Subject: [PATCH] remove rtsig, which is obsolete and broken --- libevent/Makefile.am |2 +- libevent/WIN32-Code/config.h |6 - libevent/configure.in| 53 --- libevent

[Libevent-users] event_base_loop_break()?

2007-09-18 Thread Scott Lamb
intended to, and with a small patch it does. -- Scott Lamb http://www.slamb.org/ ___ Libevent-users mailing list Libevent-users@monkey.org http://monkey.org/mailman/listinfo/libevent-users

Re: [Libevent-users] Undefined reference

2007-09-20 Thread Scott Lamb
Marcelo Estanislau Geyer wrote: Hi, I'm development small program in C++ on Linux (Fedora 7 and Kdevelop). When compiling the program, is appearing the following message: undefined reference to `event_init' I have add header event.h, but I am with difficulties to work with this library due

Re: [Libevent-users] [PATCH] Add autoconf/make functionality for --disable-dns, --disable-http, and --disable-bevents

2007-10-02 Thread Scott Lamb
Nick Mathewson wrote: On Tue, Oct 02, 2007 at 09:35:48AM +0200, Robert Iakobashvili wrote: [...] libcurl has developed a good API for its integration with libevent. libcurl project also maintains and develops a very good asynchronous DNS client library, called c-ares (a clone of ares).

Re: [Libevent-users] Question: Library naming

2007-10-02 Thread Scott Lamb
Trond Norbye wrote: I thought that it was normal to name the libraries like libname.so.major.minor.micro (eg: libevent.so.1.3.4) and create symbolic links so the application may pick up the newest version of the library (with the correct ABI) without re-linking the application. As did I, and

Re: [Libevent-users] announcing libev, towards a faster and more featureful libevent

2007-11-04 Thread Scott Lamb
Marc Lehmann wrote: Hi! On tuesday, I sent mail about various problems with libevent and its current API as well as implementation. Unfortunately, the mail has not yet shown up, but fortunately, it has been superseded by this one :) In that mail, I announced that I will work on the

Re: [Libevent-users] announcing libev, towards a faster and more featureful libevent

2007-11-04 Thread Scott Lamb
Marc Lehmann wrote: That seems rather undesirable for many applications. Well, its arguably better than libevents behaviour, which is simply returning from event_loop, leaving the app unclear on what has happened and what to do. In any case, you can get the same behaviour as libevent by

Re: [Libevent-users] announcing libev, towards a faster and more featureful libevent

2007-11-04 Thread Scott Lamb
Scott Lamb wrote: * What's your use case for ev_loop_new() and ev_loop_default()'s bitmask of allowed implementations? libevents unconditional use of getenv raised concerns with me and apperently some users on this list, too, so this is one way to disable this (EVMETHOD_ANY instead

Re: [Libevent-users] sensible thread-safe signal handling proposal

2007-11-04 Thread Scott Lamb
Christopher Layne wrote: On Sun, Nov 04, 2007 at 04:23:01PM -0800, Scott Lamb wrote: It wasn't what I expected; I was fully confident at first that the thread-pool, work-queue model would be the way to go, since it's one I've implemented in many applications in the past. But the numbers said

Re: [Libevent-users] announcing libev, towards a faster and more featureful libevent

2007-11-05 Thread Scott Lamb
Marc Lehmann wrote: On Sun, Nov 04, 2007 at 09:56:44PM -0800, Scott Lamb [EMAIL PROTECTED] wrote: returning from event_loop, leaving the app unclear on what has happened and what to do. In any case, you can get the same behaviour as libevent by calling unloop in case of an error, so

Re: [Libevent-users] [PATCH] signal.c, evsignal.h: properly save/restore previous signal handlers and fix memory stomp

2007-11-09 Thread Scott Lamb
Christopher Layne wrote: + /* save previous handler setup */ + if (sigaction(evsignal, NULL, sig-sa_old[evsignal]) == -1 + || sigaction(evsignal, sa, NULL) == -1) Not worth changing unless you're redoing the patch anyway, but is there some reason you aren't doing

[Libevent-users] RFC - evdns client API

2007-11-10 Thread Scott Lamb
I'm trying to use the evdns client API for the first time (in tinc-1.1), and I've noticed a few things: 1. There's no threadsafe API (see ticket 1827379). This is not necessary for tinc but is good to have in general. 2. There's no way to cancel an outstanding resolve. (see ticket 1827307) this

Re: [Libevent-users] SO_LINGER option for sockets created by evhttp

2007-12-14 Thread Scott Lamb
Ilya Martynov wrote: Hi, I wonder if anybody could elaborate what is the reason for setting SO_LINGER option for sockets created by evhttp. I mean this part of code inside of http.c: static int bind_socket_ai(struct addrinfo *ai) { ... linger.l_onoff = 1;

Re: [Libevent-users] SO_LINGER option for sockets created by evhttp

2007-12-14 Thread Scott Lamb
Marc Lehmann wrote: On Fri, Dec 14, 2007 at 12:56:00PM -0800, Scott Lamb [EMAIL PROTECTED] wrote: Tests and results here: http://www.slamb.org/svn/repos/trunk/projects/socket_tests/index.html The UNIX socket API has been standardized for a decade. But the standards are vague on a lot

[Libevent-users] [PATCH] benchmark chart generator

2007-12-29 Thread Scott Lamb
I was frustrated with the gap between bench.c and decent charts, so I made the attached patch. It adds a simple Python program to generate these with gnuplot. I've also attached sample output (one-active.png). Best regards, Scott -- Scott Lamb http://www.slamb.org/ inline: one-active.pngAdd

[Libevent-users] evhttp changes for large requests

2008-02-10 Thread Scott Lamb
be a simpler way, but I don't see it. Best regards, Scott -- Scott Lamb http://www.slamb.org/ evhttp: stream incoming responses, even if not chunked From: Scott Lamb [EMAIL PROTECTED] Signed-off-by: Scott Lamb [EMAIL PROTECTED] --- libevent/http.c | 19 ++- 1 files changed, 14

Re: [Libevent-users] evhttp changes for large requests

2008-02-10 Thread Scott Lamb
Scott Lamb wrote: (4) Detect while streaming that the client connection has been lost, so that we know to stop sending chunks. Patch attached to return error code in evhttp_send_reply_chunk(). (Wouldn't hurt to add error returns in other places, but this is my immediate need.) Hmm, my patch

Re: [Libevent-users] bug: handler called again after event_del()

2008-02-11 Thread Scott Lamb
Springande Ulv wrote: Has anyone else seen this problem on Mac OS X? Otherwise I'll try to debug more and come up with more specifics. Also I also see that libevent seems to enter a while-true loop, grab all CPU and freeze during handling of a write|timeout. I have a feeling this is related

Re: [Libevent-users] Keep Alive and POST

2008-08-10 Thread Scott Lamb
Derek Gottfrid wrote: I noticed an oddity and want to check and see if anybody else was seeing the same issue. If I call a eventlib http server w/ GET and Keep Alive and then follow it up with a POST on the same connection, then I see a 400 Bad Request message returned. If I just call the

Re: [Libevent-users] getting notification of an evhttp_request being freed unexpectedly

2008-08-12 Thread Scott Lamb
Alex Evans wrote: hello. I'm fairly new to libevent and especially evhttp, so I have a query whose solution may just be 'dont use evhttp that way'... the summary is: how can I know if an evhttp_request object is 'freed' behind my back, and avoid using it after it's dead? I'm writing a simple

Re: [Libevent-users] getting notification of an evhttp_request being freed unexpectedly

2008-08-17 Thread Scott Lamb
Jon Singler wrote: Alex Evans wrote: hello. I'm fairly new to libevent and especially evhttp, so I have a query whose solution may just be 'dont use evhttp that way'... the summary is: how can I know if an evhttp_request object is 'freed' behind my back, and avoid using it after it's dead? I'm

Re: [Libevent-users] HTTP proxy

2009-04-11 Thread Scott Lamb
mailing list Libevent-users@monkey.org http://monkeymail.org/mailman/listinfo/libevent-users -- Scott Lamb http://www.slamb.org/ ___ Libevent-users mailing list Libevent-users@monkey.org http://monkeymail.org/mailman/listinfo/libevent-users