Re: [Libevent-users] libevent & SCTP

2013-04-25 Thread Nick Mathewson
On Thu, Apr 25, 2013 at 5:22 AM, Alexander Drozdov wrote: > Hello! > > Are there any plans or ideas to add extra support of SCTP protocol to > libevent? Hi! I'd like to add a UDP-based bufferevent-like thing at some point; I believe there's a thread about that from a little while back. Adding a

Re: Re : [Libevent-users] libevent client tries to reconnect to a lost server

2013-01-14 Thread Sashan Govender
On Tue, Jan 15, 2013 at 9:52 AM, wrote: > It serms that this is not the way it should be done. The whole buffer > event should be removed and created again, until the server starts to > respond. Unfortunately this method causes a segmentation fault. I had no > idea of how such a simple problem ca

Re: Re : [Libevent-users] libevent client tries to reconnect to a lost server

2013-01-14 Thread Nick Mathewson
On Mon, Jan 14, 2013 at 5:52 PM, wrote: > It serms that this is not the way it should be done. The whole buffer event > should be removed and created again, until the server starts to respond. > Unfortunately this method causes a segmentation fault. I had no idea of how > such a simple problem

Re : [Libevent-users] libevent client tries to reconnect to a lost server

2013-01-14 Thread ssod
It serms that this is not the way it should be done. The whole buffer event should be removed and created again, until the server starts to respond. Unfortunately this method causes a segmentation fault. I had no idea of how such a simple problem can be solved with libevent. I couldn't be able t

Re: [Libevent-users] libevent client tries to reconnect to a lost server

2013-01-13 Thread Yutong Wu
use getsocketopt to get socket error no or use tcpdump to check what happened 2013/1/13 > What I need : a libevent client which tries to reconnect periodically > after loosing connection with the server. > > To solve this problem I add evtimer that becomes active once the > connection with the s

Re: [Libevent-users] libevent in Windows App Store app

2012-12-17 Thread Thomas Dial
IIRC, the Windows libevent code uses WinSock, and select() or I/O completion ports for dealing with events.  A cursory grep through the code confirms no references to "Windows.Networking."  Unfortunately, I doubt there would be serious interest in this as that group of APIs is completely non-por

RE: [Libevent-users] libevent + curl

2012-10-23 Thread John Dunn
From: owner-libevent-us...@freehaven.net [mailto:owner-libevent-us...@freehaven.net] On Behalf Of Mark Ellzey Sent: Monday, October 22, 2012 6:06 PM > Post the resulting code somewhere. I've posted the code here - http://pastebin.com/REca0BTq. I've modified the original allow me to add multiple

Re: [Libevent-users] libevent + curl

2012-10-22 Thread Stef Bon
2012/10/23 Mark Ellzey : > On Mon, Oct 22, 2012 at 11:08:23PM +, John Dunn wrote: >> I'm trying to modify the hiperfifo.c example included in libcurl >> (http://curl.haxx.se/libcurl/c/hiperfifo.html ) to use libevent 2.0.20 and >> had a few questions. I know the originator of this code is the

Re: [Libevent-users] libevent + curl

2012-10-22 Thread Mark Ellzey
On Mon, Oct 22, 2012 at 11:08:23PM +, John Dunn wrote: > I'm trying to modify the hiperfifo.c example included in libcurl > (http://curl.haxx.se/libcurl/c/hiperfifo.html ) to use libevent 2.0.20 and > had a few questions. I know the originator of this code is the libcurl people > but I figur

Re: [Libevent-users] libevent custom thread library: Recursive mutexes and wait conditions

2012-06-26 Thread Nick Mathewson
On Mon, Jun 25, 2012 at 5:21 PM, Julian Bui wrote: > Hello libevent, > > I am writing to see if I could get clarification on wait conditions and > their use with recursive locks. > > My first issue is understanding how a custom evthread_lock is supposed to be > implemented.  evthread_lock_callback

Re: [Libevent-users] Libevent evhttp File handles increase issue resolved

2012-05-30 Thread Mark Ellzey
On Wed, May 30, 2012 at 09:36:07AM +0500, Shahid wrote: > We have tried some use cases and found out that it is due to the fact that > we are holding the requests to send the response when available. The default > holding time is 60 seconds after that we send a TIMEOUT response. > > These kind of

Re: [Libevent-users] Libevent not working...

2012-05-08 Thread Mina Naguib
Have you accounted for the possibility of clients falling off the map / buffers overflowing ? Can you reduce the code to the simplest possible example that reliably demonstrates the problem and post it somewhere ? On 2012-05-08, at 7:48 AM, Shahid wrote: > I have been using libevent in all m

Re: [Libevent-users] Libevent not working...

2012-05-08 Thread Nick Mathewson
On Tue, May 8, 2012 at 7:48 AM, Shahid wrote: > I have been using libevent in all my linux networking projects due to its > features and AIO handling. > > > > I have a situation here and need your help. > > I have developed a PUSH (Comet) server using longpolling over http. I have > used "libevent

Re: [Libevent-users] libevent-2.0.18-stable.tar.gz can not build on win32

2012-03-30 Thread Nick Mathewson
2012/3/29 Savg He : > yes, I put "# define int mode_t" modified "# define mode_t int", it > compiled successfully, no errors. Great! I have committed the fix to the git repository. Many thanks for reporting this. *** To unsubscr

Re: [Libevent-users] libevent-2.0.18-stable.tar.gz can not build on win32

2012-03-29 Thread Savg He
yes, I put "# define int mode_t" modified "# define mode_t int", it compiled successfully, no errors. Also, forgive my English, I use google the translate. 在 2012年3月30日 上午3:18,Sebastian Hahn 写道: > > On Mar 28, 2012, at 5:36 PM, Nick Mathewson wrote: >> 2012/3/28 Sebastian Hahn : >>> +#define int

Re: [Libevent-users] libevent-2.0.18-stable.tar.gz can not build on win32

2012-03-29 Thread Sebastian Hahn
On Mar 28, 2012, at 5:36 PM, Nick Mathewson wrote: > 2012/3/28 Sebastian Hahn : >> +#define int mode_t >> #endif >> >> int > > Surely that's reversed; did you mean "#define mode_t int" ? I sure did. Thanks for spotting that -.- **

Re: [Libevent-users] libevent-2.0.18-stable.tar.gz can not build on win32

2012-03-28 Thread Nick Mathewson
2012/3/28 Savg He : > add code "#define int mode_t",but ... : > Try "#define mode_t int" instead? *** To unsubscribe, send an e-mail to majord...@freehaven.net with unsubscribe libevent-usersin the body.

Re: [Libevent-users] libevent-2.0.18-stable.tar.gz can not build on win32

2012-03-28 Thread Savg He
add code "#define int mode_t",but ... : C:\Documents and Settings\qs\My Documents\Downloads\Compressed\libevent-2.0.18-s table>nmake /f Makefile.nmake Microsoft (R) Program Maintenance Utility Version 8.00.50727.762 Copyright (C) Microsoft Corporation. All rights reserved. cl /IWIN32-Co

Re: [Libevent-users] libevent-2.0.18-stable.tar.gz can not build on win32

2012-03-28 Thread Nick Mathewson
2012/3/28 Sebastian Hahn : > > On Mar 28, 2012, at 4:41 PM, Savg He wrote: > >> My build environment: win xp of sp3 + visual c + + 2005 command line: >> >> >> C:\Documents and Settings\qs\My >> Documents\Downloads\Compressed\libevent-2.0.18-s >> table>nmake /f Makefile.nmake > > Can you see if thi

Re: [Libevent-users] libevent-2.0.18-stable.tar.gz can not build on win32

2012-03-28 Thread Sebastian Hahn
On Mar 28, 2012, at 4:41 PM, Savg He wrote: > My build environment: win xp of sp3 + visual c + + 2005 command line: > > > C:\Documents and Settings\qs\My > Documents\Downloads\Compressed\libevent-2.0.18-s > table>nmake /f Makefile.nmake Can you see if this patch fixes the problem for you? di

Re: [Libevent-users] libevent with Windows IOCP

2012-03-02 Thread Nick Mathewson
On Thu, Mar 1, 2012 at 7:58 PM, Henk Goosen wrote: > Hi there, > > I am looking into using libevent for a high performance cross-platform > networking application. From the documentation and searching around I get the > feeling that IOCP is still not well supported and/or stable in libevent. > >

Re: [Libevent-users] Libevent

2011-11-08 Thread Raine Fan
Sorry guys, i'm not sending this kind of message. I think it's spam... Anyway, changed my account password. Don't know if someone has my email account password and use it from a spam bot net... Rgds, Raine From: "raine...@ymail.com" To: libevent-us...@freeha

Re: [Libevent-users] libevent http and lost requests

2011-08-12 Thread about bus
On Fri, Aug 12, 2011 at 11:28 PM, Mark Ellzey wrote: > I have a hunch that nginx is sending some type of query that libevent > can't parse. Can you paste the entire packet for the get request from > nginx to your server? > > tcpdump -n -s0 -X, and just paste the full packet for the GET request. >

Re: [Libevent-users] libevent http and lost requests

2011-08-12 Thread Mark Ellzey
On Fri, Aug 12, 2011 at 06:36:18PM +0300, about bus wrote: > On Fri, Aug 12, 2011 at 4:57 PM, Leonid Evdokimov wrote: > > > What libevent version do you use? > > Can you reproduce the issue with ab (apache benchmark) instead of nginx? > > > > -- > > > > Libevent from sources: libevent-2.0.12-sta

Re: [Libevent-users] libevent http and lost requests

2011-08-12 Thread about bus
On Fri, Aug 12, 2011 at 4:57 PM, Leonid Evdokimov wrote: > What libevent version do you use? > Can you reproduce the issue with ab (apache benchmark) instead of nginx? > > -- > Libevent from sources: libevent-2.0.12-stable I did not tried ab, I've tried to use http_load tool instead of real use

Re: [Libevent-users] libevent http and lost requests

2011-08-12 Thread Leonid Evdokimov
On Fri, Aug 12, 2011 at 13:43, about bus wrote: > On Fri, Aug 12, 2011 at 8:13 AM, Mark Ellzey wrote: > I can't post source code. Maybe later I will make simple version of server, > which can reproduce timeout errors. What libevent version do you use? Can you reproduce the issue with ab (apache

Re: [Libevent-users] libevent http and lost requests

2011-08-12 Thread about bus
On Fri, Aug 12, 2011 at 1:14 PM, Jain, Deepak (GE Healthcare) < deepakj...@ge.com> wrote: > Try to use valgrind’s callgrind tool for investigating where the time has > been use. > > > The 75 seconds were lost between network (tcpdump shows what packet with GET query was successfully sent from ngin

RE: [Libevent-users] libevent http and lost requests

2011-08-12 Thread Jain, Deepak (GE Healthcare)
t: Re: [Libevent-users] libevent http and lost requests On Fri, Aug 12, 2011 at 8:13 AM, Mark Ellzey wrote: Can you post the source? If not you can try ltrace/strace'ing your server or enable event debugging by recompiling libevent with -DUSE_DEBUG I can't post source code. May

Re: [Libevent-users] libevent http and lost requests

2011-08-12 Thread about bus
On Fri, Aug 12, 2011 at 8:13 AM, Mark Ellzey wrote: > > Can you post the source? If not you can try ltrace/strace'ing your > server or enable event debugging by recompiling libevent with > -DUSE_DEBUG > I can't post source code. Maybe later I will make simple version of server, which can reprodu

Re: [Libevent-users] libevent http and lost requests

2011-08-11 Thread Mark Ellzey
On Thu, Aug 11, 2011 at 09:19:41PM +0300, about bus wrote: > Hello! > > I have a simple my own libevent-based http server written on C, use evhttp.h > functions. > I use it like backend with nginx server (about ~2K requests per second). > Sometimes in nginx error log appears error: "(60: Operation

Re: [Libevent-users] [libevent-usr] When is a [regular file descriptor] readable or writable?

2011-08-03 Thread zhihua che
Hi, William Thanks for your quotation. It's really helpful and provide official proof of Andrew's opinion. I'll check it out further. Thanks for reply. Harvey 2011/8/4 William Ahern > On Wed, Aug 03, 2011 at 03:39:34PM +0800, zhihua che wrote: > > Hi, everyone, > > > > I'm reading lib

Re: [Libevent-users] [libevent-usr] When is a [regular file descriptor] readable or writable?

2011-08-03 Thread zhihua che
Hi Andrew, Thanks for your prompt. Moments ago, I wrote a client to open the .fifo file and write data to it and finally drive the event-loop run! I guess I must further my research into the kernel before I completely understand how epoll/select etc cooperate with file descriptor:( Thank

Re: [Libevent-users] [libevent-usr] When is a [regular file descriptor] readable or writable?

2011-08-03 Thread William Ahern
On Wed, Aug 03, 2011 at 03:39:34PM +0800, zhihua che wrote: > Hi, everyone, > > I'm reading libevent-2.0 code and have made certain progress:). However, > I'm still confused with some basic concepts like "ready" for reading or > writing. In the context of sockets, I think I can imagine this "r

Re: [Libevent-users] [libevent-usr] When is a [regular file descriptor] readable or writable?

2011-08-03 Thread Andrew W. Nosenko
On Wed, Aug 3, 2011 at 15:57, zhihua che wrote: > Hi, Adrian, >     Thanks for your reply. However, what you said makes me more confused:( >     You mean the mechanism behind libevent like epoll doesn't support > regular file descriptor? I'm not sure whether you're right, but looking into poll/se

Re: [Libevent-users] [libevent-usr] When is a [regular file descriptor] readable or writable?

2011-08-03 Thread zhihua che
Hi, Adrian, Thanks for your reply. However, what you said makes me more confused:( You mean the mechanism behind libevent like epoll doesn't support regular file descriptor? I'm not sure whether you're right, but looking into the application sample given by the libevent official website, h

Re: [Libevent-users] [libevent-usr] When is a [regular file descriptor] readable or writable?

2011-08-03 Thread Leonid Evdokimov
On Wed, Aug 3, 2011 at 11:39, zhihua che wrote: > Imagine I was monitoring a local regular file descriptor. I can't figure out > what actions or > conditions can cause the descriptor readable or writable. You probably want to look at AIO: man 3 aio_read Beware, this interface may have unexpected

Re: [Libevent-users] [libevent-usr] When is a [regular file descriptor] readable or writable?

2011-08-03 Thread Adrian Chadd
That's because it doesn't work that way for file backed file descriptors. There's no way to know a file is or isn't ready for writing, unless you had some way of defining (say) how much data is in the write buffer for that FD. Linux/FreeBSD at least don't supply this to you. Similarly, there's no

Re: [Libevent-users] Libevent memory leak?

2011-07-12 Thread Mark Ellzey
On Tue, Jul 12, 2011 at 12:20:16AM -0400, Nick Mathewson wrote: > On Mon, Jul 11, 2011 at 2:40 PM, Mark Ellzey wrote: > Looks like a good start; see the comments on your pull request. Updated per request. *** To unsubscribe, s

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Nick Mathewson
On Mon, Jul 11, 2011 at 2:40 PM, Mark Ellzey wrote: > Nick, > > Are the github repo's out of sync? I can't seem to find the most recent > branch, libevent/master libevent/patches-2.0, nmathewson/* all seem to > be out of sync. Yeah. The canonical location for master/patches-2.0 is still sourcefo

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Mark Ellzey
Nick, Are the github repo's out of sync? I can't seem to find the most recent branch, libevent/master libevent/patches-2.0, nmathewson/* all seem to be out of sync. In any case, patch for the global locks issue attached. On Mon, Jul 11, 2011 at 08:10:02PM +0200, Andrei Chirila wrote: > Hi Mark

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Andrei Chirila
Hi Mark, Thank you for your interest in this issue. Best regards, Andrei On Mon, Jul 11, 2011 at 7:33 PM, Mark Ellzey wrote: > Yeah I see it now - not a huge issue but I will submit a patch here > soon. > > *** > To unsubscrib

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Mark Ellzey
Yeah I see it now - not a huge issue but I will submit a patch here soon. *** To unsubscribe, send an e-mail to majord...@freehaven.net with unsubscribe libevent-usersin the body.

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Andrei Chirila
Hi Mark, I tried the following: ./configure --disable-debug-mode make clean all copy my libs to the right places and compile test_event.c This is the result: $ valgrind --leak-check=full --show-reachable=yes ./test_event.exe ==28671== Memcheck, a memory error detector ==28671== Copyright (C) 20

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Mark Ellzey
int event_global_setup_locks_(const int enable_locks) { #ifndef _EVENT_DISABLE_DEBUG_MODE EVTHREAD_SETUP_GLOBAL_LOCK(_event_debug_map_lock, 0); #endif is your issue. so yeah, --disable-debug-mode will fix that problem. On Mon, Jul 11, 2011 at 11:26:28AM -0500, Mark Ellzey wrote: > On Mon,

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Mark Ellzey
On Mon, Jul 11, 2011 at 06:06:22PM +0200, Andrei Chirila wrote: > Hello, > > I just tried with the latest: > Try compiling with --disable-debug-mode *** To unsubscribe, send an e-mail to majord...@freehaven.net with unsubscribe

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Andrei Chirila
It's no big issue, I was just wondering if this was in my usage or it's generic libevent. I have some programs which get tested under valgrind, and valgrind complains about libevent, so maybe a global event_library_cleanup() would be enough. I don't have enough knowledge of the internals, but if a

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Mark Ellzey
Ah, this is a global lock. Unfortunately there doesn't seem to be a way to free that, is it a big issue? this is small, one time allocat, and handled by dtor's. *** To unsubscribe, send an e-mail to majord...@freehaven.net with

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Andrei Chirila
Hello, I just tried with the latest: $ git describe release-2.0.12-stable-162-g7d08a28 Valgrind still reports memory leaks: $ valgrind --leak-check=full --show-reachable=yes ./test_event.exe ==2705== Memcheck, a memory error detector ==2705== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Se

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Mark Ellzey
On Mon, Jul 11, 2011 at 10:55:16AM -0500, Mark Ellzey wrote: > On Mon, Jul 11, 2011 at 10:35:46AM +0200, Andrei Chirila wrote: > > Hello, > > > > I'm using libevent in some programs and I came across a memory leak in > > libevent. I'm wondering if I'm the one doing something wrong or it's really >

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Andrei Chirila
Hello, Thank you for your interest. $ git describe release-2.0.12-stable-125-g3312403 Andrei On Mon, Jul 11, 2011 at 5:55 PM, Mark Ellzey wrote: > On Mon, Jul 11, 2011 at 10:35:46AM +0200, Andrei Chirila wrote: > > Hello, > > > > I'm using libevent in some programs and I came across a memory

Re: [Libevent-users] Libevent memory leak?

2011-07-11 Thread Mark Ellzey
On Mon, Jul 11, 2011 at 10:35:46AM +0200, Andrei Chirila wrote: > Hello, > > I'm using libevent in some programs and I came across a memory leak in > libevent. I'm wondering if I'm the one doing something wrong or it's really > something in libevent. > What version are you using? I just browsed

Re: [Libevent-users] libevent + bufferevent + IOCP = confused

2011-07-08 Thread Nick Mathewson
On Sun, Jul 3, 2011 at 3:27 AM, Juan Pablo Fernandez wrote: > Thanks Nick. > > You know of any projects using buffevents + IOCP succesfully? > I've read about memcached + libevent, but I don't think they use bufferevents. Tor has some code that tries to do this, but we're still shaking out some b

Re: [Libevent-users] libevent + bufferevent + IOCP = confused

2011-07-03 Thread Juan Pablo Fernandez
Thanks Nick. You know of any projects using buffevents + IOCP succesfully? I've read about memcached + libevent, but I don't think they use bufferevents. /Juan 2011/7/3 Nick Mathewson : > On Fri, Jul 1, 2011 at 11:26 AM, Juan Pablo Fernandez > wrote: >> Hi, >> >> I've been experimenting with l

Re: [Libevent-users] libevent + bufferevent + IOCP = confused

2011-07-02 Thread Adrian Chadd
On Sat, Jul 02, 2011, Nick Mathewson wrote: > The select-based backend is still used for the event interface > provided by event_add, event_del, etc. It turns out that you can't > emulate that using IOCP, as far as I can tell.[*] If you want to use > IOCP, you need to use bufferevents: the buffe

Re: [Libevent-users] libevent + bufferevent + IOCP = confused

2011-07-02 Thread Nick Mathewson
On Fri, Jul 1, 2011 at 11:26 AM, Juan Pablo Fernandez wrote: > Hi, > > I've been experimenting with libevent on windows. I want to use IOCP, > worker threads filling a queue layer in a server application. > Bufferevents is a nice fit! And I've written a small server using > bufferevents.  However,

Re: [Libevent-users] Libevent edge trigger support for udp in Solaris

2011-02-07 Thread Rita Sarathy
Thank you Nick. Sarita On Mon, Feb 7, 2011 at 9:27 AM, Nick Mathewson wrote: > On Fri, Feb 4, 2011 at 9:52 PM, Sarita Sarathy wrote: >> >> Hi, > > > Hello, Sarita!  The libevent-users mailing list isn't at monkey.org > any more; see http://archives.seul.org/libevent/users/ for info on > subscri

Re: [Libevent-users] Libevent edge trigger support for udp in Solaris

2011-02-07 Thread Nick Mathewson
On Fri, Feb 4, 2011 at 9:52 PM, Sarita Sarathy wrote: > > Hi, Hello, Sarita! The libevent-users mailing list isn't at monkey.org any more; see http://archives.seul.org/libevent/users/ for info on subscribing to the current location. > We would like to use UDP connections asynchronously in Sola

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

2011-01-02 Thread Harlan Stenn
Kevin wrote: > 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

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 Harlan Stenn
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 used. > > > > Anyway, I was wondering if libevent could install som

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] libevent with non standard ssl directory

2010-12-07 Thread William Ahern
On Tue, Dec 07, 2010 at 03:56:44PM -0700, Kevin Bowling wrote: > On Tue, Dec 7, 2010 at 2:07 PM, William Ahern > wrote: > > That means that the pkg-config in one tree has no idea about the pkg-config > > config in the other trees. I have to hack every dumb package that relies on > > pkg-config in

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

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

2010-12-07 Thread William Ahern
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 configure libevent to use a non-standard installation path of > > op

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

2010-12-07 Thread Nick Mathewson
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 configure libevent to use a non-standard installation path of > openssl. Basically my project has openssl included and I want libevent to > com

Re: [Libevent-users] Libevent 2.0.8 crashes on Windows without WSAStartup

2010-10-26 Thread Matthew Weigel
On Oct 26, 2010, at 8:48 PM, Nick Mathewson wrote: On Mon, Oct 25, 2010 at 11:02 PM, bottig...@gmail.com wrote: I've compiled libevent on windows 7 32bit with Mingw successfully. Unfortunately when I run a few test programs, some of them will print: [warn] evsig_init: socketpair: Successf

Re: [Libevent-users] Libevent 2.0.8 crashes on Windows without WSAStartup

2010-10-26 Thread Dan Kegel
On Tue, Oct 26, 2010 at 6:48 PM, Nick Mathewson wrote: > People more experienced than I am about Windows can probably weigh in > on what the right thing is here. I think the expectation was that each DLL that uses winsock would call WSAStartup before using it, and WSACleanup when done. That's sa

Re: [Libevent-users] Libevent 2.0.8 crashes on Windows without WSAStartup

2010-10-26 Thread Nick Mathewson
On Mon, Oct 25, 2010 at 11:02 PM, bottig...@gmail.com wrote: > I've compiled libevent on windows 7 32bit with Mingw successfully. > Unfortunately when I run a few test programs, some of them will print: > > [warn] evsig_init: socketpair: Successful WSAStartup not yet performed > [WSANOTINITIALISED

Re: [Libevent-users] Libevent HTTP and pipeline mode

2010-10-26 Thread Nick Mathewson
On Fri, Jul 30, 2010 at 9:23 AM, Anton Zem wrote: > I found that libebvent's HTTP Server cannot work properly in pipelined mode. > The problem is in code >    if (req->ntoread == 0) { >         bufferevent_disable(evcon->bufev, EV_READ); >         /* Completed content length */ >         evhttp_co

Re: [Libevent-users] Libevent 2.0.6-rc libtool

2010-09-03 Thread Ralph Castain
Sorry about the typo - yes, it is indeed -ivf On Sep 3, 2010, at 10:08 AM, Nick Mathewson wrote: > On Fri, Sep 3, 2010 at 11:59 AM, Ralph Castain wrote: >> Hi folks >> >> I've been working on integrating 2.0.6-rc into the Open MPI code base and >> ran across an issue. You distribute an acloca

Re: [Libevent-users] Libevent 2.0.6-rc libtool

2010-09-03 Thread Nick Mathewson
On Fri, Sep 3, 2010 at 11:59 AM, Ralph Castain wrote: > Hi folks > > I've been working on integrating 2.0.6-rc into the Open MPI code base and ran > across an issue. You distribute an aclocal.m4 that was generated by libtool > 2.2.6b, and you don't whack it at the beginning of autogen.sh. Thus,

Re: [Libevent-users] libevent with python segfaulting

2010-08-03 Thread Nick Mathewson
On Sun, Aug 1, 2010 at 3:01 PM, Michael Gale wrote: > Hello, >     I am using the latest release of libevent-python and the latest release > of libevent-1.4. > After I am done writing data and close the socket I attempt to remove the > write event callback from the event loop. If I do this the ser

Re: [Libevent-users] libevent with EV_WRITE question

2010-06-03 Thread Sherif Fanous
Thank you for an excellent explanation Cheers On Thu, Jun 3, 2010 at 4:26 PM, Nick Mathewson wrote: > On Sat, May 29, 2010 at 6:44 AM, Sherif Fanous > wrote: > > Hi > > I have the following scenario, and want to verify the expected outcome > > pthread_wrlock_rdlock(&(server->lock)); > > if (se

Re: [Libevent-users] libevent with EV_WRITE question

2010-06-03 Thread Nick Mathewson
On Sat, May 29, 2010 at 6:44 AM, Sherif Fanous wrote: > Hi > I have the following scenario, and want to verify the expected outcome > pthread_wrlock_rdlock(&(server->lock)); > if (server->is_connected) { >     struct send_packets_args *send_packets_args; >     send_packets_args = malloc(sizeof (st

Re: [Libevent-users] libevent 2.0.4: Segmentation fault with BEV_OPT_THREADSAFE set

2010-04-02 Thread David M. Irvine
I've had no problems using BEV_OPT_THREADSAFE on macos (10.6.3) and libevent 2.0.4. It doesn't look like you're calling evthread_use_pthreads() which you probably should be. dave On Apr 2, 2010, at 2:53 AM, Jarod Liu wrote: > My demo code works fine without the BEV_OPT_THREADSAFE option. > W

Re: [Libevent-users] libevent-2.0.3-alpha released

2009-11-21 Thread Niels Provos
On Sat, Nov 21, 2009 at 2:54 AM, Clint Webb wrote: > Is that link correct? That's pretty funny. Her is the correct link. http://monkey.org/~provos/libevent-2.0.3-alpha.tar.gz Thanks for noticing, Niels. *** To unsubscribe,

Re: [Libevent-users] libevent-2.0.3-alpha released

2009-11-21 Thread Clint Webb
Is that link correct? On Sat, Nov 21, 2009 at 1:23 PM, Niels Provos wrote: > It has been a while since the last alpha release of libevent-2.0. > Yesterday, we released 2.0.3-alpha which can be downloaded from > > > http://monkey.org/~provos/libevent-1.4.13-stable.tar.gz