Re: [Libevent-users] libevent test failure: FAIL test/regress_http.c:3092: assert(req)

2013-03-08 Thread Nick Mathewson
On Fri, Mar 8, 2013 at 6:47 PM, Dan Kegel wrote: > On Fri, Mar 8, 2013 at 1:05 PM, Dan Kegel wrote: >> On Fri, Mar 8, 2013 at 12:44 PM, Dan Kegel wrote: >>> libevent master pulled as of Jan 11, >>> fails tests for me. System details: >>> OS: Ubuntu 12.04.2 64 bits >>> >>> Here's one failure lo

Re: [Libevent-users] SONAME in 2.0.12

2011-06-20 Thread Nick Mathewson
On Fri, Jun 17, 2011 at 12:11 PM, Leo 'costela' Antunes wrote: > On 17/06/11 17:42, Nick Mathewson wrote: >>   * AGE: With how many previous versions of the ABI is "Current" >> version backward-compatible? This increments whenever the ABI changes >> in

Re: [Libevent-users] SONAME in 2.0.12

2011-06-17 Thread Nick Mathewson
On Fri, Jun 17, 2011 at 6:25 AM, Leo 'costela' Antunes wrote: > Hi, > > In the process of building the Debian package for 2.0.12, I noticed > Makefile.am contains VERSION_INFO=6:1:1, but the generated libs have all > SONAME=*.so.5 > > I'm still parsing through the build-system (I'm the new guy hel

Re: [Libevent-users] Bufferevent throughput experiments

2011-01-19 Thread Nick Mathewson
On Sun, Jan 16, 2011 at 4:39 PM, Marcel Roelofs wrote: Hi, Marcel! Thanks for the I'd like to see a lot more optimization work in Libevent 2.1. One thing that this really needs IMO is more work on benchmarking and profiling. Chris Davis started work on a benchmarking tool last year; his site

Re: [Libevent-users] structure redefinition in _libevent_time.h and winsock2.h

2010-02-11 Thread Nick Mathewson
On Fri, Feb 5, 2010 at 10:30 AM, Shiqing Fan wrote: > > Hi, > > When using libevent 1.4.13 in another project on Windows, we found some > structure are redefined in _libevent_time.h and winsock2.h, for example > 'struct timeval'. > > I made a patch to solve this problem, but I'm not sure if it's c

Re: [Libevent-users] How to clean up timeout event?

2009-11-20 Thread Nick Mathewson
On Fri, Nov 20, 2009 at 05:17:22PM -0800, Dan Kegel wrote: > On Fri, Nov 20, 2009 at 5:05 PM, Haiping Zhao wrote: > > When I call event_base_loopexit() with a timeout, and say it?s not > > triggered, because event_base_loopbreak() breaks out of the loop before > > timeout is reached, I saw a memor

Re: [Libevent-users] Encryption

2009-10-23 Thread Nick Mathewson
On Thu, Oct 22, 2009 at 04:40:01PM -0400, Alex wrote: > I have a protocol which needs to secure outgoing packets like so: > > FROM: > [n bytes protocol data] > > TO: > [j bytes padded/encrypted data][16 bytes IV][12 bytes HMAC] > > What is the most clean/efficient way of using evbuffers for this

[Libevent-users] Moving the libevent-users mailing list to freehaven.net

2009-10-02 Thread Nick Mathewson
s from wherever they have wound up.] Niels, could you please update the website to point to the new list, and either disable the old one or make it forward? Thanks for your patience, everyone! yrs, -- Nick Mathewson ___ Libevent-users mailing list Libev

Re: [Libevent-users] API compatibility (was Re: patch to use different return value for event_base_loop())

2009-10-01 Thread Nick Mathewson
On Tue, Sep 29, 2009 at 11:39:59AM -0700, Ka-Hing Cheung wrote: > On Sun, 2009-08-16 at 10:39 -0700, Nick Mathewson wrote: > > > but I am willing to submit another patch (the one with > > > accessor to base->event_gotterm/event_break) if you think that's

Re: [Libevent-users] Problems when compiling asciidoc of libevent reference manual book

2009-09-20 Thread Nick Mathewson
On Sun, Sep 20, 2009 at 07:45:08PM -0700, Raine Fan wrote: > Hi, yesterday I 'git cloned' the reference manual book from > git://git.torproject.org/~nickm/git/lebook and I'm having problems when > compiling it. Here is the output: > > ERROR: 01_intro.txt: line 270: missing listing block closing

Re: [Libevent-users] Must delete events before closing the socket handle

2009-09-17 Thread Nick Mathewson
On Fri, Sep 18, 2009 at 11:09:52AM +0800, Adrian Chadd wrote: > On Thu, Sep 17, 2009, Nick Mathewson wrote: > > > > Nick, is this actually documented anywhere? > > > > Not that I recall, and it really ought to be. Anybody want to write the > > documentation pat

Re: [Libevent-users] Must delete events before closing the socket handle

2009-09-17 Thread Nick Mathewson
On Fri, Sep 18, 2009 at 10:57:25AM +0800, Adrian Chadd wrote: > Well, the order of which you can do this depends on what the underlying OS > will > "do for you". > > I'd suggest sticking to "delete event, close socket" usage. Anything else > isn't portable. > > Nick, is this actually documented

Re: [Libevent-users] Infinite loop in event_process_active()

2009-09-17 Thread Nick Mathewson
On Thu, Sep 17, 2009 at 02:56:59PM +0200, nicolas dumont wrote: > Hi, > > I'm using events in 1.4.12-stable. [...] > Finnaly, to prevent to go in the infinite loop , > do I have to run event_del(&ev) each time before using event_set(&ev) ? This is exactly so. You can't call event_set or event_

Re: [Libevent-users] epoll.c:166: epoll_dispatch: Assertion `res < epollop->nevents' failed

2009-09-16 Thread Nick Mathewson
On Wed, Sep 16, 2009 at 08:11:07PM +0200, Tommy van Leeuwen wrote: > Hello, > > After upgrading from 2.0.2 to the latest 2.0.3 (r1431) i got this assertion. > > epoll.c:166: epoll_dispatch: Assertion `res < epollop->nevents' failed Just fixed it this morning in r1432, thanks to another helpful u

Re: [Libevent-users] Unable to use event_base_loopexit on another thread's event base

2009-08-17 Thread Nick Mathewson
On Thu, Jul 30, 2009 at 06:21:03PM +0200, Bas Verhoeven wrote: [...] > > But, I gather from that note that it should be possible now? Indeed it should be! Did you set up threading on the event_base before running it? Is the base notifiable? You might want to try poking through event.c in the

[Libevent-users] API compatibility (was Re: patch to use different return value for event_base_loop())

2009-08-16 Thread Nick Mathewson
On Thu, Aug 13, 2009 at 11:04:52AM -0700, Ka-Hing Cheung wrote: > On Thu, 2009-08-13 at 09:16 -0700, Nick Mathewson wrote: > > On Wed, Aug 12, 2009 at 11:42:47AM -0700, Ka-Hing Cheung wrote: > > [...] > > > I do realize that this breaks existing assumptions about retu

Re: [Libevent-users] patch to use different return value for event_base_loop()

2009-08-13 Thread Nick Mathewson
On Wed, Aug 12, 2009 at 11:42:47AM -0700, Ka-Hing Cheung wrote: [...] > I do realize that this breaks existing assumptions about return values. > What if instead of using a different return value, we don't reset > base->event_gotterm and base->event_break when triggered? We can reset > them at the

Re: [Libevent-users] libevent cmake scripts

2009-07-24 Thread Nick Mathewson
On Sat, Jul 25, 2009 at 01:07:40PM +0900, Brodie Thiesfield wrote: > On Fri, Jul 24, 2009 at 9:42 PM, q6Yr7e0o > nIJDVMjC wrote: > > Would it be possible to create cmake scripts for 2.x, too since they > > will much likely be included into the release > > I'll look into it, but at the moment I'm u

[Libevent-users] ANN: Libevent 2.0.2-alpha is released

2009-07-24 Thread Nick Mathewson
ports zero-copy much better. - About a zillion fixes for tricky bugs in the new Libevent 2.0.1-alpha code. Special thanks to everybody who helped find bugs and improve the code, especially James Mansion, Zack Weinberg, and Joachim Bauch. yrs, -- Nick Math

[Libevent-users] ANN: Libevent 1.4.12-stable released

2009-07-24 Thread Nick Mathewson
everyone who reported bugs or supplied patches. My apologies if I've forgotten to credit any patches in the ChangeLog; let me know and I'll fix it. Many thanks, -- Nick Mathewson ___ Libevent-users mailing list Libevent-users@monkey.or

Re: [Libevent-users] How to schedule a plain event

2009-07-13 Thread Nick Mathewson
On Mon, Jul 13, 2009 at 02:29:21PM +0200, q6Yr7e0o nIJDVMjC wrote: > Hi, > > > how is it possible to schedule a callback in the next eventloop > iteration? Of course i could add a timer event with timeout 0 but this > seems like a lot of overhead. I just want a function to be called in > the next

Re: [Libevent-users] HAVE_CONFIG_H usage in buffer.c

2009-07-03 Thread Nick Mathewson
On Thu, Jul 02, 2009 at 07:00:46PM -0700, Ka-Hing Cheung wrote: > In buffer.c:28 an include "event-config.h" is wrapped by HAVE_CONFIG_H, > but on line 85 there's a bare include "event-config.h". Should the 2nd > include and the HAVE_CONFIG_H check removed? IMO, pretty much all of the '#ifdef HAVE

Re: [Libevent-users] order of timers when attached inside a callback

2009-07-01 Thread Nick Mathewson
On Wed, Jul 01, 2009 at 01:05:33PM +0300, Marko Kreen wrote: [...] > Hm. How about this - keep using min-heap, but let each slot contain > doubly-linked list of events. So equal (abs) timeout values would > share the same slot. This would bring minimal additional complexity > to codebase. Sorr

Re: [Libevent-users] order of timers when attached inside a callback

2009-06-30 Thread Nick Mathewson
On Tue, Jun 30, 2009 at 01:00:13PM +0300, Marko Kreen wrote: [...] > The timeouts are kept in min-heap structure, whose goal is to make easy > to find smallest timeout. It does not store the event addition order > in a way that works 100% of the time, although it may happen to work 90% > of the t

Re: [Libevent-users] Example IOCP application?

2009-06-23 Thread Nick Mathewson
On Tue, Jun 23, 2009 at 05:50:00PM -0400, Alex wrote: > On Tue, 23 Jun 2009 22:09:26 +0100 > James Mansion wrote: > > > Is there any example of the libevent2 support for IOCP being used to > > provide a scalable custom socket server? > > > > I would give http://www.wangafu.net/~nickm/libevent-

Re: [Libevent-users] How libevent works

2009-06-05 Thread Nick Mathewson
On Fri, Jun 05, 2009 at 06:31:35PM -0400, Alex wrote: [...] > > Hey, great book! I checked it out of git about an hour ago and have > been reading it ever since. Since I am decrypting data from the TCP > stream I might also want to look in to filtering with the BEV_NEED_MORE > flag as well as the

Re: [Libevent-users] How libevent works

2009-06-05 Thread Nick Mathewson
On Fri, Jun 05, 2009 at 03:17:00PM -0400, Alex wrote: > Hey there. When working with bufferevents, in what order does libevent > execute callbacks? Does it fill all the buffers first and then call the > CBs, or does it fill a buffer and call its corresponding CB, one at a > time? > > From what I un

Re: [Libevent-users] regress application

2009-06-05 Thread Nick Mathewson
On Fri, Jun 05, 2009 at 10:19:46PM +0100, James Mansion wrote: [...] > >(While some Windows people consider Unix's fork() call a mistake, Unix > >people generally consider CreateProcess() to be an odd hybrid of > >fork(), exec*(), and a few other syscalls. _De gustibus non est > >disputandum_, I

Re: [Libevent-users] regress application

2009-06-05 Thread Nick Mathewson
On Mon, Jun 01, 2009 at 09:21:20PM +0100, James Mansion wrote: > The WIN32 code path execs a copy of the tester as a subprocess to > isolate it. > > Why isn't that the norm? In the presence of pthreads you pretty much > have to do > the same thing, and it can hardly be worth having a special ca

Re: [Libevent-users] Libevent 2.0.1-alpha is released

2009-06-05 Thread Nick Mathewson
be a fine thing. (One of the reasons that tinytest runs each test case in a subprocess is so that old tests can fail by calling exit() or assert() without bringing the entire testing process to a halt.) -- Nick Mathewson ___ Libevent-users mailing list L

Re: [Libevent-users] Libevent 2.0.1-alpha is released

2009-06-05 Thread Nick Mathewson
On Mon, Jun 01, 2009 at 05:38:58PM +0100, James Mansion wrote: > Nick Mathewson wrote: > >Good morning, evening, night, or afternoon! > > > >The first alpha release in the long-promised Libevent 2.0 series > >is finally out. You can download Libevent 2.0.1-alpha f

Re: [Libevent-users] Libevent 2.0.1-alpha is released

2009-05-26 Thread Nick Mathewson
On Fri, May 22, 2009 at 08:29:01PM +0100, James Mansion wrote: > Nick Mathewson wrote: > >"A private type"? What kind of thing do you mean here? > > > The struct just has a couple of integer fields and won't vary by > platform, so > having a libevent s

Re: [Libevent-users] Libevent 2.0.1-alpha is released

2009-05-22 Thread Nick Mathewson
On Fri, May 22, 2009 at 07:44:36PM +0100, James Mansion wrote: > Nick Mathewson wrote: [...] > >So reading that message again, I guess I wasn't as explicit as I > >should have been. Short version: "yes, I think the next release will > >build okay with visual C. B

Re: [Libevent-users] Libevent 2.0.1-alpha is released

2009-05-19 Thread Nick Mathewson
On Tue, May 19, 2009 at 06:03:18PM -0400, Nick Mathewson wrote: [...] > With respect to building it with Visual C, please see my message to > this very list from last Thursday: > > http://monkeymail.org/archives/libevent-users/2009-May/001650.html So reading that message agai

Re: [Libevent-users] Simple Echo server with libevent 2.0

2009-05-19 Thread Nick Mathewson
On Mon, May 18, 2009 at 07:10:47PM +0200, q6Yr7e0o nIJDVMjC wrote: > Hi > > > > For one example of how to use the 2.0.1-alpha API, you could have a > > look at chapter 1 of > > ? ? ?http://www.wangafu.net/~nickm/libevent-book/ . > > Would it be possible to link that book on > http://monkey.org/~

Re: [Libevent-users] Libevent 2.0.1-alpha is released

2009-05-19 Thread Nick Mathewson
On Tue, May 19, 2009 at 10:46:03PM +0100, James Mansion wrote: > Nick Mathewson wrote: > >Good morning, evening, night, or afternoon! > > > >The first alpha release in the long-promised Libevent 2.0 series > >is finally out. You can download Libevent 2.0.1-alpha f

Re: [Libevent-users] libevent boehm gc

2009-05-19 Thread Nick Mathewson
On Tue, May 19, 2009 at 10:20:08PM +1000, Peter Ross wrote: > Hi, > > I've been tracking down a bug with boehm gc prematurely collecting the > bufferevent callback arg value. This occurs when one is the middle of > processing another bufferevent in the read callback. > > I've tried to grok the c

Re: [Libevent-users] Simple Echo server with libevent 2.0

2009-05-18 Thread Nick Mathewson
On Mon, May 18, 2009 at 05:26:04PM +0200, q6Yr7e0o nIJDVMjC wrote: > Hi, > > > can somebody guide me how to write a simple echo server using libevent 2.0? > I've read into the sources of libevent (especially http.c) because i wanted > to know how to bind to a socket, accept new connections and re

Re: [Libevent-users] Building with Visual Studio

2009-05-16 Thread Nick Mathewson
On Fri, May 15, 2009 at 12:01:30PM +1000, Peter Ross wrote: > On Fri, May 15, 2009 at 11:41 AM, Nick Mathewson wrote: > > (Also, once 2.0.2-alpha is out, somebody needs to work on decent > > project files for the 2.0.x series. ?The ones we have now are kind of > > stupid and

Re: [Libevent-users] Building with Visual Studio

2009-05-14 Thread Nick Mathewson
On Thu, May 14, 2009 at 04:58:02PM -0700, Rush Manbert wrote: > Hi, > > I have done some searching and have read a couple of posts on this > subject, but nothing that quite answers my questions. > > I am writing a Windows port of the Thrift RPC library > (http://incubator.apache.org/thrift/ )

Re: [Libevent-users] Libevent 2.0.1-alpha is released

2009-05-03 Thread Nick Mathewson
On Fri, Apr 24, 2009 at 10:32:46AM -0700, Dan Kegel wrote: > On Sat, Apr 18, 2009 at 11:24 AM, Nick Mathewson wrote: > > Libevent 2.0 is intended to be backward compatible with the Libevent > > 1.4 APIs[*]. ?Any program that worked with Libevent 1.4 should still > > work with

Re: [Libevent-users] About libevent-2.0 documentation

2009-05-03 Thread Nick Mathewson
On Fri, May 01, 2009 at 08:46:51PM -0700, Raine Fan wrote: > Hi Nick/Niels/Libevent staff! > > > Meanwhiloe reading the great documentation of Libevent-2.0 > (http://wangafu.net/~nickm/libevent-book/) I was a bit confused on > some warnings. Could explain in more details, if possible? > I've trie

Re: [Libevent-users] [PATCH] Fix handling of EVENT_BASE_FLAG_IGNORE_ENV flag.

2009-04-28 Thread Nick Mathewson
On Sat, Apr 25, 2009 at 12:08:02PM -0700, hop...@omnifarious.org wrote: > # HG changeset patch > # User Eric Hopper > # Date 1240605517 25200 > # Node ID 97768cd771be8ea7a4db8bd46998030dcd8c6650 > # Parent 07c00814a3436ebd1d8628fa8c3c1d921523d1e5 > Properly detect sense of should_check_environmen

[Libevent-users] Libevent tutorial and reference manual

2009-04-23 Thread Nick Mathewson
Hi, all. I've started work on a tutorial and reference manual for Libevent. Right now, they're far from complete: the tutorial only has a few examples, and the reference manual has nothing but instructions on how to create and use an event_base. You can get the latest version from http://wan

Re: [Libevent-users] epoll keyed wakeups - Patch merged on 2.6.30-rc1

2009-04-23 Thread Nick Mathewson
On Wed, Apr 08, 2009 at 08:33:58AM -0700, Raine Fan wrote: > Hi! I'm just curious if libevent 1.5/2.0 will be carrying this > improvements (epoll keyed wakeups - see article on LWN.net: > http://lwn.net/Articles/317489/) from epoll patch set that was > merged recently on kernel 2.6.30-rc1 this week

Re: [Libevent-users] epoll_wait problems

2009-04-23 Thread Nick Mathewson
On Mon, Mar 23, 2009 at 02:23:37PM +0100, Richter, J??rg wrote: > Hi, > > Not really libevent specific, but perhaps someone here has seen this before > and can help me with this one. > > The problem is that epoll_wait hangs longer than requested. > This is a "strace -t -T -e epoll_wait" output

Re: [Libevent-users] Libevent 1.4.9-stable slower than 1.3c?

2009-04-23 Thread Nick Mathewson
On Tue, Apr 14, 2009 at 11:23:24PM -0700, Haiping Zhao wrote: [...] > Anyways, I'll have to re-think our model. At the same time, may I > ask why the change? Was that for calling gettimeofday() less number > of times to be more efficient? But the code only updates > base->tv_cache once per loop,

Re: [Libevent-users] bug in min_heap

2009-04-22 Thread Nick Mathewson
On Wed, Apr 15, 2009 at 08:00:39PM +0300, Marko Kreen wrote: [...] > Well, I attached a draft of it, but its totally untested and the > minheap code is not very parseable for me. So somebody with > has better understanding of the code should review it. (Maxim?) > > Basic idea - if you replace an

[Libevent-users] Re: Libevent 2.0.1-alpha is released

2009-04-19 Thread Nick Mathewson
On Sat, Apr 18, 2009 at 02:24:15PM -0400, Nick Mathewson wrote: > Good morning, evening, night, or afternoon! > > The first alpha release in the long-promised Libevent 2.0 series > is finally out. You can download Libevent 2.0.1-alpha from >http://monkey.org/~provos

[Libevent-users] What's new in Libevent 2.0

2009-04-18 Thread Nick Mathewson
Here's the current draft "What's new in Libevent 2.0" document. What's New In Libevent 2.0 so far: 1. About this document This document describes the key differences between Libevent 1.4 and Libevent 2.0, from a user's point of vie

[Libevent-users] Libevent 2.0.1-alpha is released

2009-04-18 Thread Nick Mathewson
Good morning, evening, night, or afternoon! The first alpha release in the long-promised Libevent 2.0 series is finally out. You can download Libevent 2.0.1-alpha from http://monkey.org/~provos/libevent-2.0.1-alpha.tar.gz To make sure that you're getting the real Libevent source and no other

Re: [Libevent-users] bug in min_heap

2009-04-15 Thread Nick Mathewson
On Wed, Apr 15, 2009 at 01:01:00PM +0300, Marko Kreen wrote: > Given heap shape of: > > 1 >/ \ > / \ > 10 3 >/ \ / \ > 11 12 5 6 > > And now deleting '11', it seems to fail to keep heap property. > > The bug is probably hard to notice in pra

Re: [Libevent-users] accessing a bufferevent's evbuffer directly

2009-04-08 Thread Nick Mathewson
On Wed, Apr 08, 2009 at 11:06:37AM -0700, Ka-Hing Cheung wrote: > On Mon, 2009-04-06 at 11:17 -0700, Nick Mathewson wrote: > > If you want to try 0-copy stuff with bufferevents, you'll need to wait > > for Libevent 2.0. Libevent 1.4 doesn't really support that so well. &

Re: [Libevent-users] accessing a bufferevent's evbuffer directly

2009-04-06 Thread Nick Mathewson
On Mon, Apr 06, 2009 at 01:38:44PM -0700, Phoenix Sol wrote: > Thanks, Nick. > > Is zero-copy possible at all with the current libevent? (I already assumed > it wouldn't work with bufferevent) If you mean, just using the regular event_base interface, without any bufferevent or evbuffer interface

Re: [Libevent-users] accessing a bufferevent's evbuffer directly

2009-04-06 Thread Nick Mathewson
On Mon, Apr 06, 2009 at 11:12:10AM -0700, Phoenix Sol wrote: > Is it alright to call evbuffer_readline() on a buffevent's evbuffer? > ( Or any of the other evbuffer functions for that matter? ) You can do nearly anything with the evbuffers. I think the only limitations right now are that you shou

Re: [Libevent-users] busy waiting on AIX (timercmp bug)

2009-03-09 Thread Nick Mathewson
On Mon, Mar 09, 2009 at 01:57:46PM +0100, Richter, J?rg wrote: [...] > Note that the Linux definition has the same comment about the > compare operator as the AIX one. But the comment seems to predate > the Linux definition. I'd guess that the comment is there because, if you're writing a portabl

Re: [Libevent-users] bug in epoll.c ?

2009-03-08 Thread Nick Mathewson
on Linux and OS X, and IIRC Niels is pretty eclectic about his OS choices. It would be neat to have a regression test for this case, if you have the time to write one. Yrs, -- Nick Mathewson ___ Libevent-users mailing list Libevent-users@monkey.org http://monkeymail.org/mailman/listinfo/libevent-users

Re: [Libevent-users] Multiple identical events on same fd in same loop

2009-03-08 Thread Nick Mathewson
On Sat, Mar 07, 2009 at 01:45:21PM -0500, Thor Lancelot Simon wrote: [...] > I see two ways to handle this. One is with very, very nasty application > logic, and the other is to simply set two separate events with the SSL > fd, each waiting on EV_WRITE. So when the SSL fd comes ready for write -

Re: [Libevent-users] UDP and TCP Communications

2009-03-06 Thread Nick Mathewson
On Fri, Mar 06, 2009 at 09:16:26AM -0500, Brian wrote: > Thanks Guillaume for the feedback. Unfortunately malloc/calloc method > didn't work for me. I think I will just go back to how it was. Does > anyone know if there is an inherent flaw, perhaps, with doing the > event_init()/event_dispatch() wi

Re: [Libevent-users] dumb question

2009-02-19 Thread Nick Mathewson
On Fri, Feb 20, 2009 at 01:35:07AM +0900, Adrian Chadd wrote: [...] > I raised the possibility of breaking out the non-"event" code into > separate libraries with enforced API boundaries. We were talking > about various directions 2.0 can go in (in the context of doing > sensible async IO that wil

Please check svn trunk before you write feature patches [was Re: [Libevent-users] [PATCH] Add callback for raw read/write]

2009-02-19 Thread Nick Mathewson
On Thu, Feb 19, 2009 at 08:09:18AM -0500, jamal wrote: > olla, > > I dont know what the process for submitting patches here, > but this is against version 1.4.9. > > This makes it easier to integrate libraries that provide their own > read/write functions (such as openssl). Hi, Jamal! Thanks fo

Re: [Libevent-users] Failed regression tests

2009-02-09 Thread Nick Mathewson
On Mon, Feb 09, 2009 at 02:26:36PM -0500, Mark Seger wrote: > I've seen a few of these over the years via google but didn't really see > anything that described the fix. > I'm running on RHEL5.3 and downloaded libevent-1.4.9-stable. I did: > ./configure > make > make install > make verify > > al

Re: [Libevent-users] Compile error in regress_http.c on Cygwin

2009-01-26 Thread Nick Mathewson
On Sun, Jan 25, 2009 at 01:56:22PM -, Richard Brice wrote: > I am getting the following compile error in regress_http.c on a Cygwin > platform > > make[4]: Entering directory > `/home/rbrice/curl-loader-0.47/build/libevent/libevent-1.4.4-stable/test' > gcc -DHAVE_CONFIG_H -I. -I..-I.. -

Re: [Libevent-users] About what's coming to libevent 1.5/2.0

2009-01-17 Thread Nick Mathewson
On Sat, Jan 17, 2009 at 01:11:17PM -0800, Raine Fan wrote: [...] > What make me post here to ask if it's possible to you (libevent > staff) to share what it's coming (features and > theorical-release-date) on the next release (dunno if will be called > 1.5 or 2.0). The easiest way to see what's b

Re: [Libevent-users] Access struct event callback argument

2008-12-12 Thread Nick Mathewson
On Fri, Dec 12, 2008 at 08:54:03PM -0200, Rodrigo Campos wrote: > On Wed, Dec 3, 2008 at 5:15 PM, Rodrigo Campos wrote: > > On Wed, Dec 3, 2008 at 4:46 PM, Niels Provos wrote: > >> On Wed, Dec 3, 2008 at 10:28 AM, Rodrigo Campos > >> wrote: > >>> I wanted to know how public is the "struct event

Re: [Libevent-users] unable to read from stdin on os x leopard

2008-12-09 Thread Nick Mathewson
On Tue, Dec 09, 2008 at 11:43:32AM +0100, Rapsey wrote: > This program works normally on ubuntu, but on os x leopard it immediately > exits with errno: "Operation not supported". Why does it not work on > os x? Short version: You're using stdin, and it looks like the backend libevent uses on leopa

Re: [Libevent-users] segfault in trunk

2008-09-26 Thread Nick Mathewson
On Fri, Sep 26, 2008 at 03:03:34PM +0200, Malek Hadj-Ali wrote: > Hi all, > > > It seems there's a small bug in libevent-trunk (1.5?, 2.0?) when > passing a 'wrong' event_config to event_base_new_with_config. > By 'wrong' I mean a configuration that doesn't make sense, like > avoiding epoll and r

Re: [Libevent-users] Add non-blocking connect support for libevent IOCP backend

2008-09-10 Thread Nick Mathewson
On Wed, Sep 10, 2008 at 08:16:21PM +0100, James Mansion wrote: > [EMAIL PROTECTED] wrote: > > Hi, all > > > > http://spserver.googlecode.com/files/libevent-1.4.5-stable-iocp-2.zip > > > Is there any likelihood of this code being merged, either with or > without a config option to enable it? See

Re: [Libevent-users] [err] event_queue_insert: 0xb6a4517c(fd 17) already on queue 2

2008-06-14 Thread Nick Mathewson
On Fri, Jun 13, 2008 at 10:01:33AM +0200, Ron Arts wrote: > Hello, > > I get this error on libevent 1.3e on CentOS5. Upgrading to > a higher version is not easy to push through, to say the least, > so that's why I am asking the list first. The error message looks like an event that's already been

Re: [Libevent-users] files and libevent

2008-06-14 Thread Nick Mathewson
On Thu, Jun 12, 2008 at 07:59:45AM -0700, Teunis Peters wrote: > I've not found any code to work with - but is there any reason that > libevent would not work with standard files? > > I keep getting permission denied > > more or less: > > fd = open(filename, O_RDONLY) > event_set(&ev, EV_READ |

Re: [Libevent-users] patch for building libevent with vs2008

2008-06-14 Thread Nick Mathewson
On Thu, Jun 12, 2008 at 11:00:28PM +0800, liusifan wrote: > Hi, all > > Libevent svn main trunk cannot build with vs2008. > > The patch is in attachment. > Changes: Rename INPUT to EVRPC_INPUT and OUTPUT to EVRPC_INPUT Hi! This patch has the same problem as the last three patches that did this

Re: [Libevent-users] libevent on windows: select() fails

2008-06-03 Thread Nick Mathewson
On Tue, Jun 03, 2008 at 07:08:57PM +0200, Shiqing Fan wrote: > Hi all, > > I'm testing Libevent 1.3 with VS2005 on Windows. > > The same problem below there happens on my machine, select() always > returns -1. Does anyone know the reason? Sorry for polling this old > mail up, I just found some

Re: [Libevent-users] Integrate Windows I/O Completion Port into Libevent

2008-06-02 Thread Nick Mathewson
On Sun, Jun 01, 2008 at 01:51:53PM +0800, liusifan wrote: [...] > Integrate Windows I/O Completion Port into Libevent > > IOCP is true async i/o model, and libevent is event-driven i/o model. > > 1. How to emulate event-driven recv/send ? > It is possible to use IOCP to emulate event-driven mode

Re: [Libevent-users] Support for Edge-Triggered behaviour

2008-05-30 Thread Nick Mathewson
On Fri, May 30, 2008 at 10:18:24AM +0200, Valery Kholodkov wrote: > > Below is the new version of file test_et.c. The resulting > executable should return 1 whenever ET works, 0 otherwise. Applied to trunk; thanks! -- Nick ___ Libevent-users mailing l

Re: [Libevent-users] Support for Edge-Triggered behaviour

2008-05-29 Thread Nick Mathewson
On Thu, May 29, 2008 at 08:02:18PM +0200, Valery Kholodkov wrote: > > For the convenience I'll answer to Nick's questions from > SF's patch tracker in this list. > > > A few initial questions: > > - How exactly does the test_et.c file test the edge-triggered behavior? > > As near as I can tell,

Re: [Libevent-users] Support for Edge-Triggered behaviour

2008-05-29 Thread Nick Mathewson
On Thu, May 29, 2008 at 05:40:16PM +0200, Valery Kholodkov wrote: > Greetings! > > Since discovering libevent for myself I've been wondering > why where is still no support for Edge-Triggered behaviour, which > from my point of view could be easily implemented. Basically, because nobody had writt

Re: [Libevent-users] Success compile libevent 1.4.3 with VC6

2008-05-16 Thread Nick Mathewson
On Wed, Apr 23, 2008 at 07:37:32PM -0400, Nick Mathewson wrote: > On Wed, Apr 23, 2008 at 05:34:04PM +0400, Eugene 'HMage' Bujak wrote: [...] > > * Winsock library needs to be initialized and freed explicitly on win32. > > This is true, but it's not libevent's

Re: [Libevent-users] patch for "realtime signal" events in libevent-1.4.3-stable

2008-05-15 Thread Nick Mathewson
On Mon, May 12, 2008 at 05:39:51PM -0400, Phil Budne wrote: > I needed to do apples-to-apples comparison between rtsignals and epoll > for a client, so I fixed rtsig.c from 1.3e (see an earlier post) to > compile, then fixed it to work, and ported that to 1.4.3-stable. > > NOTE WELL! Used only for

Re: [Libevent-users] libevent 1.4.4 when?

2008-05-13 Thread Nick Mathewson
On Tue, May 13, 2008 at 11:03:26AM +0100, Lyes Amazouz wrote: > Hello everybody! > > I want to know when the version 1.4.4 of the libevent will be released, I > asked a question about a cygwin compilation problem last Thursday, and Nick > said that this new version may resolve it. He also said th

Re: [Libevent-users] Success compile libevent 1.4.3 with VC6

2008-05-08 Thread Nick Mathewson
On Wed, Apr 23, 2008 at 05:34:04PM +0400, Eugene 'HMage' Bujak wrote: > Hi, > > I want to submit a more complete patch for VC6. > > This one makes all elements of the code compilable and this code is > being used on a production-level project at work. > > The patch is in attachment. Compiles and

Re: [Libevent-users] FYI: libevent/libev benchmark updated for libevent-1.4.3

2008-05-08 Thread Nick Mathewson
On Thu, May 08, 2008 at 05:05:20PM -0500, Dan wrote: > > > Its to bad when people write emails like this, clearly no social skills. Dan, please take this off-list. This kind of flamewar does not help libevent, libev, or anybody. yrs, -- Nick ___ Lib

Re: [Libevent-users] how to compile under cygwin

2008-05-08 Thread Nick Mathewson
On Thu, May 08, 2008 at 05:23:27PM +0200, Lyes Amazouz wrote: > Hello list, > I want to make running my application, which is a sipmle file server, under > cygwin. It compiles well and I can run it. But when I try to make a request > on it, it makes a "segementation fault" error. > Have I missed s

Re: [Libevent-users] Patch: useful sendfile for HTTP servers (1.4.3-stable)

2008-05-08 Thread Nick Mathewson
On Wed, May 07, 2008 at 11:47:09PM -0700, Niels Provos wrote: > Hi Manual, > > this is a good suggestion. Nick and I are currently working on how > buffers and http work in libevent 2.0. You might want to check out > trunk to see some of the progress there. In any case, it seems that > your s

Re: [Libevent-users] Success compile libevent 1.4.3 with VC6

2008-04-29 Thread Nick Mathewson
On Sun, Apr 27, 2008 at 02:01:44PM +0100, James Mansion wrote: > > >Also, I think this change will double-initialize winsock on all > >programs that use multiple event bases, and double-shutdown winsock > >whenever the bases are closed on those programs. > > > From the MSDN docs: > > An applica

Re: [Libevent-users] Success compile libevent 1.4.3 with VC6

2008-04-23 Thread Nick Mathewson
on older compilers, so we can't add C++-style comments to libevent. Otherwise, though, this looks like solid work, and I'm quite glad that somebody has a copy of VC6 and the willingness to do it! If you can send in a revised patch, that'd b

Re: [Libevent-users] libevent and autotools

2008-04-22 Thread Nick Mathewson
On Tue, Apr 22, 2008 at 11:00:29PM -0300, Daniel Morales wrote: > Hi all, > > Since libevent doesn't have a *.pc file to use with pkg-config, i need to > add some manual check to a configure.in. Hm! pkg-config! Yes, that's a good idea; we should support that in libevent 2.0 and later. Would yo

Re: [Libevent-users] [patch] replace linear search in evdns with hashed list and add support of listening on unix sockets for evhttp

2008-04-17 Thread Nick Mathewson
On Mon, Feb 18, 2008 at 06:58:32PM +0300, Vsevolod Stakhov wrote: [...] > >I've made some modifications to patch to attract your wishes, thought > >I've not tested it in production yet. > > Sorry, attached reversed diff. > Hi, and sorry about the delay! Now that libevent 1.4 is stable, I'm ab

[Libevent-users] What's New in Libevent 1.4

2008-04-07 Thread Nick Mathewson
What's New In Libevent 1.4: 0. About this document This document describes the key differences between Libevent 1.3 and Libevent 1.4, from a user's point of view. It was most recently updated based on features from libevent 1.4.2-rc. 1. Packaging Issues. 1.1. The great library division.

[Libevent-users] ANN: Libevent 1.4.3-stable released

2008-04-07 Thread Nick Mathewson
terface here: https://sourceforge.net/projects/levent many thanks, -- Nick Mathewson ___ Libevent-users mailing list Libevent-users@monkey.org http://monkeymail.org/mailman/listinfo/libevent-users

Re: [Libevent-users] dns server availability check / google.com

2008-02-28 Thread Nick Mathewson
On Wed, Feb 27, 2008 at 07:17:50AM +0100, Florian Lohoff wrote: > > Hi, > while looking into an async dns solution i found the code to recheck > dns servers in libevent. I dont think checking for google.com is a very > good choice. In the past even ccTLDs have disappeared or start to > disappear

Re: [Libevent-users] thread-safety bug report with patch

2008-02-26 Thread Nick Mathewson
On Tue, Feb 26, 2008 at 10:12:08AM -0800, Tani Hosokawa wrote: > These are four broken functions that didn't make it into the latest > release -- I noticed that one of them is even marked as not being > thread-safe. Thanks! I've checked your patch into trunk and into the 1.4 branch. __

Re: [Libevent-users] libevent (svn revision 651) segfaults on linux 2.6.12, ARM little endian architecture

2008-02-23 Thread Nick Mathewson
On Fri, Feb 22, 2008 at 10:54:57AM +0100, Frank Schaeckermann wrote: > I have installed transmission-daemon (a Bittorrent client) svn revision > 5051 on my Maxtor Shared Storage II (ARM little endian) with Linux > 2.6.12. Very soon after starting the daemon it segfaults. Hi, Frank! Here are som

Re: [Libevent-users] hi, i install libevent1.3 and 1.4beta on freebsd7 beta, and it cant' run the test normal

2007-12-31 Thread Nick Mathewson
On Fri, Dec 28, 2007 at 07:16:45PM +0800, wenew zhang wrote: > when i try to run test.sh, > it's skip all include kqueue, > and then: > make clean, > make > i got a message:regress.c1242 error:'from_name' undeclared(first use in this > function) > .. > > i get the same message in libevent1.41

Re: [Libevent-users] LibEvent 1.3e - Compiling for Windows using VS2005

2007-12-30 Thread Nick Mathewson
On Sun, Dec 30, 2007 at 04:37:49PM +0200, Eran Sandler wrote: > Nick Mathewson wrote: > > > >It should all be checked in to the subversion repository. I added a > >.sln file and a .vcproj file; is there anything else? > > > >As noted, I'm not much of a wi

Re: [Libevent-users] LibEvent 1.3e - Compiling for Windows using VS2005

2007-12-27 Thread Nick Mathewson
On Mon, Dec 17, 2007 at 08:40:28AM +0200, Eran Sandler wrote: [...] > Any chance you can simply check in your VS2005 project files. I think > its about time we can start using VS2005 and leave MSVC (unless there is > anything specific in VS2005 that is preventing us from doing so). It should all

[Libevent-users] ANN: Libevent 1.4.1-beta released

2007-12-24 Thread Nick Mathewson
de Charles Kerr, Ilya Martynov, and others on sourceforge. To report a bug, make a feature request, or submit code, you can use our sourceforge interface here: https://sourceforge.net/projects/levent Peace on earth, and good will to everyone!

Re: [Libevent-users] LibEvent 1.3e - Compiling for Windows using VS2005

2007-12-16 Thread Nick Mathewson
On Tue, Dec 11, 2007 at 07:29:02PM +0200, Eran Sandler wrote: > Hello Niels, > > I've spoken with Dormando, one of the memcached maintainers and they > haven't test it with LibEvent 1.4.0. They do, however work with 1.3e on > memcached 1.2.4 and the first tests of memcached 1.3.0. I hope they g

Re: [Libevent-users] evhttp supporting virtual hosts

2007-11-22 Thread Nick Mathewson
On Thu, Nov 22, 2007 at 08:39:47AM +0100, [EMAIL PROTECTED] wrote: > > For my python binding to evhttp (temporarily called fapws2 > http://www.opensource4you.com/cgi-bin/gitweb.cgi?p=fapws2;a=summary), I > would like to implement the concept of virtual host. > > > Is there anyone having expertis

Re: [Libevent-users] [PATCH] sample/Makefile.am: additional include

2007-11-09 Thread Nick Mathewson
On Fri, Nov 09, 2007 at 11:12:49PM -0800, Christopher Layne wrote: > Separate build dir issue. Applied to trunk. yrs, -- Nick Mathewson pgppVzvy8jLzH.pgp Description: PGP signature ___ Libevent-users mailing list Libevent-users@monkey.org h

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

2007-11-09 Thread Nick Mathewson
On Fri, Nov 09, 2007 at 07:46:53PM -0800, Christopher Layne wrote: > On Fri, Nov 09, 2007 at 06:23:33PM -0500, Nick Mathewson wrote: > > On Fri, Nov 09, 2007 at 06:27:04AM -0800, Christopher Layne wrote: > > > [ Warning: this is long and detailed, but includes details of a pr

  1   2   >