Re: [Libevent-users] How does libevent deal with more events than a particular syscall can handle?

2006-11-18 Thread Nick Mathewson
of fds. Of course, as noted, select() is very inefficient, and isn't used when libevent can avoid it. Check the list archives for some IOCP discussion. (Generally, it's a good idea to check the archives before posting about anything.) yrs, -- Nick Mathewson pgpq2XTaKTZU8.pgp Description: PGP

[Libevent-users] [Patch] Fix a bug related to DNS timeout counting

2006-12-11 Thread Nick Mathewson
. This patch also changes the timeout threshold from 3 to 5 seconds. Probably, it should be easier to adjust. There may also be other issues that cause spurious nameserver timeouts: see the final comment in the bugtracker link above. yrs, -- Nick Mathewson === evdns.c

[Libevent-users] [Patch] Add dns server support, ipv6 support, and misc cleanups to evdns

2006-12-14 Thread Nick Mathewson
. This patch should not introduce bugs in code that doesn't use any of the new functions. yrs, -- Nick Mathewson === configure.in == --- configure.in(revision 11547) +++ configure.in(local) @@ -341,6 +341,7

[Libevent-users] [Patch] Avoid conflicts with platform strlcpy

2006-12-27 Thread Nick Mathewson
Hi, all! This patch renames the strlcpy defined in strlcpy.c so that it no longer messes with tests by other programs for the presence of a strlcpy function. This patch also fixes compilation on mingw, and fixes a warning in regress_http.c. cheers, -- Nick Mathewson === Makefile.am

[Libevent-users] [Patch] Add a regression test for DNS IPv6 records; fix two bugs in the AAAA record code.

2007-01-26 Thread Nick Mathewson
So, I saw that Niels had checked in my code to do IPv6 DNS lookups with the comment: support for DNS; from Nick Mathewson. unfortunately, no regression test Oh dear! I thought. I'd better write a regression test, just to prove that my code works. Turns out, it had a couple of bugs

[Libevent-users] [Patch] Install autoconf header file as evconfig.h

2007-02-16 Thread Nick Mathewson
applying this patch. I have not tested it on all platforms. yrs, -- Nick Mathewson pgpKRwfU00ruW.pgp Description: PGP signature ___ Libevent-users mailing list Libevent-users@monkey.org http://monkey.org/mailman/listinfo/libevent-users

Re: [Libevent-users] [Patch] Install autoconf header file as evconfig.h

2007-02-16 Thread Nick Mathewson
On Fri, Feb 16, 2007 at 06:24:34PM -0500, Nick Mathewson wrote: [...] This way, people on platforms like mingw and Solaris will be able to build projects that use mingw correctly. Oh dear. This is why I should proofread everything _three_ times, I guess. This sentence should read

Re: [Libevent-users] libevent-1.3 released

2007-02-16 Thread Nick Mathewson
On Thu, Feb 15, 2007 at 05:30:01PM -0800, Niels Provos wrote: Hi everyone, I just released libevent-1.3. It contains a ton of changes: - DNS server from Nick Mathewson Actually, the original DNS server code is by Adam Langley; I only cleaned it up a little. Adam definitely deserves

Re: [Libevent-users] [Patch] Install autoconf header file as evconfig.h

2007-02-16 Thread Nick Mathewson
On Fri, Feb 16, 2007 at 04:10:03PM -0800, William Ahern wrote: On Fri, Feb 16, 2007 at 06:24:34PM -0500, Nick Mathewson wrote: Hi, all! Now that Libevent 1.3 is out, it's time for Patches Less Obvious. One longstanding problems has been that it's not possible to include event.h

[Libevent-users] Sigprocmask vs pthread_sigprocmask

2007-02-21 Thread Nick Mathewson
some way to tell libevent, I'm going to use pthreads; use pthread_sigmask() instead of sigprocmask(). I don't know what that interface should be, but the corresponding code should be pretty simple to write. yrs, -- Nick Mathewson pgpjhJl3Tsp4y.pgp Description: PGP signature

Re: [Libevent-users] Re: No Date header in HTTP/1.1 response

2007-09-06 Thread Nick Mathewson
(), but that's okay since its gmtime() uses thread-local storage to achieve thread-safety. Hooray for cross-platform programming, such as it is.) Please try it out and let us know if there are any problems? yrs, -- Nick Mathewson pgpUjulZZdrDe.pgp Description: PGP signature

Re: [Libevent-users] [PATCH] Fix problems in evport.c

2007-09-15 Thread Nick Mathewson
using freed memory. 2. evport_dispatch does not handle a NULL-timval-pinter (no time-based events are active, wait for I/O). Thanks! I've applied this to trunk and to the 1.3 branch. yrs, -- Nick Mathewson pgpfSwvP7FH3h.pgp Description: PGP signature

[Libevent-users] Win32 signal handling (and other win32 issues)

2007-09-19 Thread Nick Mathewson
progress here, but so many of them require a working socketpair() that I'm going to hold off until the above issues are solved. Thoughts? -- Nick Mathewson Index: configure.in === --- configure.in(revision 440

Re: [Libevent-users] [PATCH] Do not call gettime in timeout_process if the timetree is empty

2007-09-20 Thread Nick Mathewson
annoying them ;-) I'm not one of those people, so I'm rewriting your patch to a simple if (RB_EMPTY(base-timetree)) return; and checking it in. ;) yrs, -- Nick Mathewson pgpweF3qLpscB.pgp Description: PGP signature ___ Libevent-users mailing list Libevent

Re: [Libevent-users] evdns C++ incompatibility

2007-10-02 Thread Nick Mathewson
int dns_question_class; #else int class; #endif /* ... */ }; so that we break absolutely no old code, and C++ starts working. Of course, this would give the field a different name in C than in C++, and that's not so great. yrs, -- Nick Mathewson pgpVc3QaMJg7s.pgp Description

Re: [Libevent-users] Question: Library naming

2007-10-02 Thread Nick Mathewson
lose backward compatibility. With any luck, it's as simple as messing with libevent_la_LDFLAGS in in Makefile.am. yrs, -- Nick Mathewson pgpzy9irhQOLc.pgp Description: PGP signature ___ Libevent-users mailing list Libevent-users@monkey.org http

Re: [Libevent-users] [patch] 1.3 revision strsep last i post have a mistake

2007-10-02 Thread Nick Mathewson
On Sun, Sep 30, 2007 at 10:52:50AM +0800, [EMAIL PROTECTED] wrote: I am pretty sorry that the last patch I posted is not correct. this one will sovlve it. Thanks; I've checked in a version of this patch. yrs, -- Nick Mathewson pgpDRflAW0nYw.pgp Description: PGP signature

Re: [Libevent-users] [PATCH] libevent/event.3: small cleanup and additional notes

2007-10-18 Thread Nick Mathewson
in trunk.) yrs, -- Nick Mathewson pgppm4ehXb07k.pgp Description: PGP signature ___ Libevent-users mailing list Libevent-users@monkey.org http://monkey.org/mailman/listinfo/libevent-users

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

2007-10-20 Thread Nick Mathewson
; } It's a little more bookkeeping, but I believe it would make us play better with linkers and applications. For more background, see the thread Question: Library Naming. yrs, -- Nick Mathewson pgpFaEybGoy1x.pgp Description: PGP signature ___ Libevent-users

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

2007-10-22 Thread Nick Mathewson
++ interface for the HTTP server part in the future. It's not www only: it's http, dns, and rpc. In the future, it might grow. I'm going to go with the name Niels gave, since it lets me make the changes sooner rather than later. :) yrs, -- Nick Mathewson pgp2u2EZmxbhH.pgp Description: PGP

Re: [Libevent-users] test/*.c files use installed header files not the ones from the package

2007-11-03 Thread Nick Mathewson
in the parent directory. This seems to confirm to me pretty well that, on my OS at least, things work okay. Marc, have you seen this problem you report in the wild? If so, can you give me some help reproducing it? As far as I can tell, Niels is right above. yrs, -- Nick Mathewson

Re: [Libevent-users] test/*.c files use installed header files not the ones from the package

2007-11-03 Thread Nick Mathewson
and effectively. Let's take this stuff off-list. It doesn't help make a better libevent to argue about it here. many thanks, and hopes for a better working relationship in the future, -- Nick Mathewson pgpC9hjwadsCf.pgp Description: PGP signature ___ Libevent

Re: [Libevent-users] Two questions...

2007-11-05 Thread Nick Mathewson
as a part of all source and binary distributions, and all documentation accompanying binary distributions. (I am not a lawyer; the summary above is not a substitute for reading the terms of the license.) yrs, -- Nick Mathewson pgpUde8Z376p4.pgp Description: PGP signature

Heap-based timer implementation (was Re: [Libevent-users] announcing libev, towards a faster and more featureful libevent)

2007-11-05 Thread Nick Mathewson
svn co https://levent.svn.sourceforge.net/svnroot/levent/trunk libevent-trunk yrs, -- Nick Mathewson pgph6MPLjfKJi.pgp Description: PGP signature ___ Libevent-users mailing list Libevent-users@monkey.org http://monkey.org/mailman/listinfo/libevent

[Libevent-users] Using the sourceforge.net bugtracker.

2007-11-05 Thread Nick Mathewson
me to enter your bugs/patches/feature ideas. I'll send another email when I'm done. I'm also creating a mailing list to get announcements of new tracker entries; I'll include that info in my mail too. many thanks, -- Nick Mathewson pgpr7gY6B7hdJ.pgp Description: PGP signature

[Libevent-users] [UPDATE] Using the sourceforge.net bugtracker.

2007-11-05 Thread Nick Mathewson
On Mon, Nov 05, 2007 at 02:58:27PM -0500, Nick Mathewson wrote: Hi, all! I've noticed that we're getting a lot more bug reports and patches than can easily be handled by the mailbox method of organization. Clearly, we need to do a better job. Fortunately, we have a sourceforge.net project

Re: [Libevent-users] libevent win32 issues

2007-11-06 Thread Nick Mathewson
On Tue, Nov 06, 2007 at 04:40:30PM -, Toby Douglass wrote: Nick Mathewson wrote: On Tue, Nov 06, 2007 at 05:09:07PM +0100, Marc Lehmann wrote: There are two factors that keep the select() implementation on win32 from using the same strategy/code as the one : 1) win32's select

Re: [Libevent-users] evdns C++ incompatibility

2007-11-06 Thread Nick Mathewson
if there are any remaining C++ issues with the header, or if you run into anything else like this? many thanks, -- Nick Mathewson pgp6lTrpfiTim.pgp Description: PGP signature ___ Libevent-users mailing list Libevent-users@monkey.org http://monkeymail.org/mailman

Building on MSVC [was Re: [Libevent-users] libevent win32 issues]

2007-11-07 Thread Nick Mathewson
On Tue, Nov 06, 2007 at 12:02:27PM -0500, Nick Mathewson wrote: On Tue, Nov 06, 2007 at 04:40:30PM -, Toby Douglass wrote: Nick Mathewson wrote: [...] I'd like to have everything work on win32. Trunk compiles on mingw fine. I would like it also to compile under MSVC, but I don't

Re: [Libevent-users] [PATCH] remove useless argument in bufferevent_read_pressure_cb

2007-11-08 Thread Nick Mathewson
users of the evbuffer API can and likely do. (The evbuffer API is, after all, exported in event.h.) I don't want to break existing code if I can help it. yrs, -- Nick Mathewson pgpd6GCXYCiDt.pgp Description: PGP signature ___ Libevent-users mailing

Re: [Libevent-users] [PATCH] remove useless argument in bufferevent_read_pressure_cb

2007-11-08 Thread Nick Mathewson
for how much data was just added. yrs, -- Nick Mathewson pgpXTmdhoZ8Tt.pgp Description: PGP signature ___ Libevent-users mailing list Libevent-users@monkey.org http://monkeymail.org/mailman/listinfo/libevent-users

Re: [Libevent-users] [PATCH] epoll.c: epoll_dispatch() clarity/simplification/branch reduction cleanups

2007-11-09 Thread Nick Mathewson
(working copy) @@ -209,36 +209,23 @@ The strategy in this patch looks like a clear win. Will apply once back to home computer. Thanks! yrs, -- Nick Mathewson pgp1ybKPQWOO2.pgp Description: PGP signature ___ Libevent-users mailing list Libevent-users

Re: [Libevent-users] [PATCH] epoll.c: epoll_dispatch() clarity/simplification/branch reduction cleanups

2007-11-09 Thread Nick Mathewson
On Fri, Nov 09, 2007 at 02:27:07AM -0800, Christopher Layne wrote: Regress checks out OK with both -O0 and -Os. Both size are with -O0. Applied; thanks! yrs, -- Nick Mathewson pgpGNOLeYC7MB.pgp Description: PGP signature ___ Libevent-users mailing

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 http

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 expertise with

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 be

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 windows person, so it's likely there are mistakes

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 some

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] 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 (.su,

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

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

[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.

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 able to

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 you

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

2008-04-23 Thread Nick Mathewson
be great. Otherwise, I'll try to hand-apply it with modifications as noted above, but since my x86 box is down at the moment, I can't fire up windows to test it out now, and things might go badly. many thanks, -- Nick Mathewson ___ Libevent-users mailing

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 application can

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

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 ___

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] 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 job to do it. Actually, I think I

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 written

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, the test

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

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] 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 someone

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] [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] 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 leopard

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 rodrig...@gmail.com wrote: On Wed, Dec 3, 2008 at 4:46 PM, Niels Provos pro...@gmail.com wrote: On Wed, Dec 3, 2008 at 10:28 AM, Rodrigo Campos rodrig...@gmail.com wrote: 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 been

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 for the

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()

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] bug in epoll.c ?

2009-03-08 Thread Nick Mathewson
. 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] 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 portable

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 interfaces,

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. Is there some kind of rough

[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

[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

[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-2.0.1-alpha.tar.gz

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

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 of one

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] 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 ni...@freehaven.net 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 Libevent

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/ ) that

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: [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 code to

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 from http://monkey.org/~provos

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

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 again, I guess I wasn't

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. But somebody besides me test out the code

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

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] 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

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 event

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

2009-07-24 Thread Nick Mathewson
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 Mathewson

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 nIJDVMjCu9oqc...@googlemail.com 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

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

[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 return values. What if instead

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_assign

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 anywhere?

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 patch? I've been threatening to do

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] 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 the better way to do it. Probably. Sorry

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

2009-10-02 Thread Nick Mathewson
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 Libevent-users@monkey.org

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 f...@hlrs.de 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

Re: [Libevent-users] Bufferevent throughput experiments

2011-01-19 Thread Nick Mathewson
On Sun, Jan 16, 2011 at 4:39 PM, Marcel Roelofs marcel.roel...@gmail.com 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

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 cost...@debian.org 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

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 cost...@debian.org 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 a backward compatible way

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 d...@kegel.com wrote: On Fri, Mar 8, 2013 at 1:05 PM, Dan Kegel d...@kegel.com wrote: On Fri, Mar 8, 2013 at 12:44 PM, Dan Kegel d...@kegel.com wrote: libevent master pulled as of Jan 11, fails tests for me. System details: OS: Ubuntu 12.04.2 64

  1   2   >