Re: [Libevent-users] [nicholas.marri...@gmail.com: libevent and invalid fds]

2012-02-08 Thread Nick Mathewson
On Wed, Feb 8, 2012 at 12:19 PM, Nicholas Marriott wrote: > On Wed, Feb 08, 2012 at 11:37:45AM -0500, Nick Mathewson wrote: >> On Tue, Feb 7, 2012 at 1:47 PM, Nicholas Marriott >> wrote: >> > Forwarding this message to ML at Nick's request... >> > >> > Hi >> > >> > You may remember a few months a

[Libevent-users] Pull request

2012-02-08 Thread Ross Lagerwall
Hi, I have created a fix for the issue: http://sourceforge.net/tracker/?func=detail&aid=2808695&group_id=50884&atid=461325 Cheers Ross == The following changes since commit c00416f745955684a9034866c53357e93329b3b3: Merge remote-tracking branch 'origin/patches-2.0' (20

Re: [Libevent-users] [nicholas.marri...@gmail.com: libevent and invalid fds]

2012-02-08 Thread Nicholas Marriott
On Wed, Feb 08, 2012 at 11:37:45AM -0500, Nick Mathewson wrote: > On Tue, Feb 7, 2012 at 1:47 PM, Nicholas Marriott > wrote: > > Forwarding this message to ML at Nick's request... > > > > Hi > > > > You may remember a few months ago you fixed a problem with kqueue and > > EPIPE on pipes - I backpo

Re: [Libevent-users] [nicholas.marri...@gmail.com: libevent and invalid fds]

2012-02-08 Thread Nicholas Marriott
On Wed, Feb 08, 2012 at 11:37:45AM -0500, Nick Mathewson wrote: > On Tue, Feb 7, 2012 at 1:47 PM, Nicholas Marriott > wrote: > > Forwarding this message to ML at Nick's request... > > > > Hi > > > > You may remember a few months ago you fixed a problem with kqueue and > > EPIPE on pipes - I backpo

Re: [Libevent-users] [nicholas.marri...@gmail.com: libevent and invalid fds]

2012-02-08 Thread Nicholas Marriott
Well, fix libevent because we can't debug Google Chrome. Pretty sure libevent should try to be consistent here in what it does. Chrome is so big it makes our gdb freak out when built with symbols so it gets a little tricky... feel free to give it a go :-). On Wed, Feb 08, 2012 at 08:42:32AM -08

Re: [Libevent-users] [nicholas.marri...@gmail.com: libevent and invalid fds]

2012-02-08 Thread Adrian Chadd
.. wait, you mean "fix the OS because you can't debug google chrome" ? :-) Adrian *** To unsubscribe, send an e-mail to majord...@freehaven.net with unsubscribe libevent-usersin the body.

Re: [Libevent-users] [nicholas.marri...@gmail.com: libevent and invalid fds]

2012-02-08 Thread Nick Mathewson
On Tue, Feb 7, 2012 at 1:47 PM, Nicholas Marriott wrote: > Forwarding this message to ML at Nick's request... > > Hi > > You may remember a few months ago you fixed a problem with kqueue and > EPIPE on pipes - I backported this fix to 1.4 and recently applied it to > OpenBSD. > > However, this is

Re: [Libevent-users] How to avoid calling bufferevent_write on a freed bev efficiently?

2012-02-08 Thread Nick Mathewson
On Wed, Feb 8, 2012 at 5:37 AM, Wenliang Zhang wrote: > Hi, all, Personally, my first approach would be to do it with something closer to a reference count: in the data associated with each bufferevent, remember the number of messages it has outstanding, and don't actually free the bufferevent un

Re: [Libevent-users] compile libevent for android

2012-02-08 Thread Nick Mathewson
On Tue, Feb 7, 2012 at 5:18 PM, Lee Fisher wrote: >> Is it possible to provide a sample "Android.mk" so that I can build >> libevent.so for Android platform. > > Would it help if you looked at how Orbot (Tor GUI for Android) builds > libevent for Android? > > https://gitweb.torproject.org/orbot.gi

[Libevent-users] How to avoid calling bufferevent_write on a freed bev efficiently?

2012-02-08 Thread Wenliang Zhang
Hi, all, I'm using libevent for my project. But I can't find an easy way to make sure a bufferevent structure is still legal when I want to call bufferevent_write to send some info back to client. In my project, the event_base_dispatch() runs in main thread, and when it receiv