Re: [Libevent-users] libevhtp beginnings API

2011-05-23 Thread Kevin Bowling
On Mon, May 23, 2011 at 8:55 AM, Mark Ellzey wrote: >> On Mon, May 16, 2011 at 10:30 PM, Mark Ellzey wrote: >> Are you the copyright holder?  If so, why not stick to BSD to keep >> things simple. >> >> Kevin > > As an FYI, Libevent already does a good job of keeping track of all > non-BSD specifi

Re: [Libevent-users] libevhtp beginnings API

2011-05-17 Thread Kevin Bowling
On Mon, May 16, 2011 at 10:30 PM, Mark Ellzey wrote: > Since libevhtp uses a MIT clause license, it is compatible with our > current BSD license AFIAK. Would be nifty to see, once stable, if we > can have this feature as an option in libevent. Are you the copyright holder? If so, why not stick

[Libevent-users] Chicken and Egg when disconnecting users from a threaded base

2011-03-06 Thread Kevin Bowling
Having a bit of trouble handling disconnects with libevent Right now, we disable the event from a worker and call bufferevent_free from there. However, as seen in the included back trace, there is a race between the event base trying to acquire another reference. In general, how should this prob

Re: [Libevent-users] Up to date documentation for libevent

2011-01-21 Thread Kevin Bowling
On Fri, Jan 21, 2011 at 3:58 PM, Harlan Stenn wrote: > I second what Niels said - I have found Nick's (online) book to be > *very* helpful. > Indeed, I don't think I'd be using libevent without Nick's book. Thanks Nick!

Re: [Libevent-users] libevent-config script?

2011-01-02 Thread Kevin Bowling
On Sun, Jan 2, 2011 at 6:48 PM, Harlan Stenn wrote: > Kevin wrote: > > On Sun, Jan 2, 2011 at 5:54 AM, Harlan Stenn wrote: > > > > > A number of different packages will install foo-config in the PATH to > > > make it easy to figure out if the package installed and what options > > > should be us

Re: [Libevent-users] libevent-config script?

2011-01-02 Thread Kevin Bowling
On Sun, Jan 2, 2011 at 5:54 AM, Harlan Stenn wrote: > A number of different packages will install foo-config in the PATH to > make it easy to figure out if the package installed and what options > should be used. > > Examples include: > > autoopts-config > cups-config > curl-config > libgcryp

Re: [Libevent-users] Buffer event race condition

2010-12-23 Thread Kevin Bowling
On Tue, Dec 21, 2010 at 10:57 AM, Mark Ellzey wrote: > On Mon, Dec 20, 2010 at 01:32:50AM -0500, Kevin Bowling wrote: > > I'm at wit's end with a libevent threading bug. As part of a disconnect > > client routine, I manually call the errorcb with EVENT_ERROR_EOF. The &

Re: [Libevent-users] Offline for a couple of weeks

2010-12-22 Thread Kevin Bowling
On Tue, Dec 21, 2010 at 2:58 PM, Nick Mathewson wrote: > Hi, all! > > I'm going to be away on vacation for a few days starting soon, and off > the internet in general for pretty much the rest of 2010 to spend time > paying attention to my family. I don't ordinarily send vacation > notices, but th

[Libevent-users] Buffer event race condition

2010-12-19 Thread Kevin Bowling
I'm at wit's end with a libevent threading bug. As part of a disconnect client routine, I manually call the errorcb with EVENT_ERROR_EOF. The idea was to keep all the cleanup code in one callback but I'm beginning to think this was ill-conceived. Somehow, libevent is entering a condition wait an

[Libevent-users] Threaded event bases

2010-12-18 Thread Kevin Bowling
One of the ideas I saw floating around for libevent 2.1 was threaded event bases to ease thread pool programming. This seems like a pretty challenging project and probably beyond my abilities at the moment but if we can hash some specs out I'd be interested in helping see it through to completion.

Re: [Libevent-users] Plan for backporting bugfixes to stable releases

2010-12-10 Thread Kevin Bowling
On Fri, Dec 10, 2010 at 8:45 PM, Nick Mathewson wrote: > Hi, all! Here's a thing I wrote up to try to explain a proposed > policy for what to backport to 2.0.x once it's stable, and what to > backport to 1.4.x after 2.0.x is released. Absent major problems with > it, the current Libevent core d

Re: [Libevent-users] How do I get the client IP address?

2010-12-10 Thread Kevin Bowling
On Fri, Dec 10, 2010 at 5:10 AM, Christian Dahlqvist wrote: > I am unfortunately not doing HTTP, so that approach will not work for me. > > I am building my code on a bufferevent sample for a custom protocol, > and I guess I could try to get it based on the raw socket, but am > reluctant to do so

Re: [Libevent-users] libevent with non standard ssl directory

2010-12-07 Thread Kevin Bowling
On Tue, Dec 7, 2010 at 2:07 PM, William Ahern wrote: > On Tue, Dec 07, 2010 at 02:03:18PM -0500, Nick Mathewson wrote: > > On Mon, Dec 6, 2010 at 6:53 PM, Sanjeev Kulkarni > wrote: > > > Hey guys, > > > I'm a relative newbee to libevent so apologies if this is already > answered. > > > How to con

[Libevent-users] libevent doxygen

2010-11-24 Thread Kevin Bowling
I've uploaded doxygen of the current git master here, http://mc.kev009.com/libevent/. It syncs up a bit better with Nick's book. I'll try and keep it reasonably up to date with master. Regards, Kevin

Re: [Libevent-users] What is the best way to detect a client socket disconnect?

2010-11-23 Thread Kevin Bowling
On Tue, Nov 23, 2010 at 10:53 PM, Ken Feng wrote: > Within libevent, of course. As a point of reference, let's say we > start up the TCP Echo server that is in Nick's book here: > http://www.wangafu.net/~nickm/libevent-book/Ref8_listener.html

Re: [Libevent-users] IRIX build failure in regress_util.c

2010-11-23 Thread Kevin Bowling
On Tue, Nov 23, 2010 at 8:16 PM, Kevin Bowling wrote: > On Mon, Nov 22, 2010 at 8:43 PM, Nick Mathewson wrote: > >> On Mon, Nov 22, 2010 at 6:59 PM, Kevin Bowling >> wrote: >> > On Mon, Nov 22, 2010 at 9:54 AM, Nick Mathewson >> wrote: >> >> >>

Re: [Libevent-users] IRIX build failure in regress_util.c

2010-11-23 Thread Kevin Bowling
On Mon, Nov 22, 2010 at 8:43 PM, Nick Mathewson wrote: > On Mon, Nov 22, 2010 at 6:59 PM, Kevin Bowling > wrote: > > On Mon, Nov 22, 2010 at 9:54 AM, Nick Mathewson > wrote: > >> > >> On Mon, Nov 22, 2010 at 4:06 AM, Kevin Bowling < > kevin.bowl...@kev

Re: [Libevent-users] IRIX build failure in regress_util.c

2010-11-22 Thread Kevin Bowling
On Mon, Nov 22, 2010 at 9:54 AM, Nick Mathewson wrote: > On Mon, Nov 22, 2010 at 4:06 AM, Kevin Bowling > wrote: > > IRIX 6.5.29, latest MIPSpro compiler and various GNU utilities from > Nekochan > > repository. libevent-2.0.8rc. I don't see anything wrong with the c

[Libevent-users] IRIX build failure in regress_util.c

2010-11-22 Thread Kevin Bowling
IRIX 6.5.29, latest MIPSpro compiler and various GNU utilities from Nekochan repository. libevent-2.0.8rc. I don't see anything wrong with the code, especially a line termination one. Any ideas? Regards, Kevin Bowling make all-am source='regress_util.c'

Re: [Libevent-users] Using evbuffer_peek

2010-11-11 Thread Kevin Bowling
On Thu, Nov 11, 2010 at 9:00 PM, Nick Mathewson wrote: > On Thu, Nov 11, 2010 at 10:42 PM, Kevin Bowling > wrote: > > Hi, > > > > I've seen a few mails talking about evbuffer_peek, but no solid usage of > > it. The doxygen on the libevent page doesn't c

[Libevent-users] Using evbuffer_peek

2010-11-11 Thread Kevin Bowling
Hi, I've seen a few mails talking about evbuffer_peek, but no solid usage of it. The doxygen on the libevent page doesn't cover it generating my own from 2.0.8 has shed little light on its use to me. Basically, for my test case I have two bytes in network order that make up a short. These are o

[Libevent-users] Autoconf macros

2010-11-03 Thread Kevin Bowling
Hello, Is there a recommended means of testing for libevent2 from within autoconf? I'm wondering if anybody else has written an m4 macro that can check for an adequate system copy, look in an argument passed to configure, or build a bundled version (since many distros are on 1.x). Regards,