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

[Libevent-users] libevent & SCTP

2013-04-25 Thread Alexander Drozdov
Hello! Are there any plans or ideas to add extra support of SCTP protocol to libevent? I mean something like bufferevents but - message-oriented - with SCTP streams support - with support of other features described in rfc6458 - with DTLS support (as a filter)

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

2013-01-19 Thread ssod
Thanx Sashan for your answer. I did it in the way you pointed out, but the application stops once the evtimer is on : segmentation fault. Nick, this is how I did it : 1. create the bufferevent with bufferevent_socket_new() 2. set the callback with bufferevent_setcb() 3. enable the bufferevent f

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
able to find an example. Regards, Steve. - Mail d'origine - De: s...@free.fr À: libevent-users@seul.org Envoyé: Sun, 13 Jan 2013 13:53:39 +0100 (CET) Objet: [Libevent-users] libevent client tries to reconnect to a lost server What I need : a libevent client which tries to

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

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

2013-01-13 Thread ssod
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 server is lost. The evtimer callback calls bufferevent_socket_connect(), but this function returns

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

2013-01-13 Thread ssod
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 server is lost. The evtimer callback calls bufferevent_socket_connect(), but this function returns

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

2012-12-17 Thread Thomas Dial
letely non-portable. From: Haseeb Abdul Qadir To: "libevent-us...@freehaven.net" Sent: Monday, December 17, 2012 10:31 AM Subject: [Libevent-users] libevent in Windows App Store app Hi, Has anyone managed to use libevent in a Windows App Store a

[Libevent-users] libevent in Windows App Store app

2012-12-17 Thread Haseeb Abdul Qadir
Hi, Has anyone managed to use libevent in a Windows App Store app? From speaking to Microsoft it looks like Windows App Store apps can use a subset of the Win32 apis. WinSock unfortunately is not in the allowed list of Win32 apis. Apps are required to use the new Windows.Networking.Sockets api

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

[Libevent-users] libevent + curl

2012-10-22 Thread John Dunn
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 figured this would be a better place to ask since the questions are more

[Libevent-users] libevent-2.0.20 on AIX 6.1 TL07 SP03

2012-10-17 Thread Perry Smith
Hi, I just blindly pulled over libevent, did the usual configure && make && make check and started to get errors. ... > Running tests: > EVPORT > Skipping test > KQUEUE > Skipping test > EPOLL > Skipping test > EPOLL (changelist) > Skipping test > DEVPOLL > Skipping test > POLL > test-eof: OK

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

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

2012-06-25 Thread Julian Bui
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_callbacks::supported_locktypes() documentations says "Note that RECURSIV

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

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

2012-05-29 Thread Shahid
Hi We have developed a Comet Server using "libevent-2.0.19". It was working fine on the LAN but when tried on the WAN it started to increase the file handles actually (TCP/IP sockets). After investigating, we have found out that it is not closing the sockets on the server. We have tried s

[Libevent-users] libevent 1.4.14b evhttp keep-alive leak

2012-05-11 Thread Pierce Lopez
Hi libevent devs, My company has been using libevent 1.4.14b and evhttp for a minimal http interface for some daemon processes (a simple queue, a simple database, etc). I was tracking down some memory issues and found that HTTP/1.1 requests without the "Connection: close" header, or HTTP/1.0 reque

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

[Libevent-users] Libevent not working...

2012-05-08 Thread Shahid
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 2.0.14" for basic event handling and for http support.

[Libevent-users] [LibEvent-users] Help on “evhttp_send_reply_chunk”

2012-04-20 Thread Alap Kumar Sinha
Hi,   I am seeing the a random behavior with persistent http connection. Any help on this would be appreciated.   The scenario:   1.   Got a http server implemented using libevent in C++ 2.   There is a http client using Java Script. 3.   The Javascript creates an EventSource (Which int

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

[Libevent-users] libevent with Windows IOCP

2012-03-01 Thread Henk Goosen
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. Is this accurate? Should I look elsewhere? Is IOCP support a hi

[Libevent-users] libevent + libpthread_workqueue = EV_PARALLEL

2012-01-09 Thread Mark Heily
See attached for an experimental patch that adds a new flag EV_PARALLEL for the ev_events field of 'struct event'. If this flag is turned on, the callback will be invoked asynchronously using a threadpool. The caller is responsible for ensuring that the callback function can safely be executed

Re: [Libevent-users] Libevent

2011-11-08 Thread Raine Fan
om" To: libevent-us...@freehaven.net Sent: Tuesday, November 8, 2011 12:09 PM Subject: [Libevent-users] Libevent Libevent This is an amazing opportunity that anyone can doxx *** To unsubscribe, send an e-mail to maj

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

[Libevent-users] libevent http and lost requests

2011-08-11 Thread about bus
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 timed out) while reading response header from upstream" Timeout value

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

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

2011-08-03 Thread zhihua che
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 "ready" situation: the socket is ready for reading when the receiving bu

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

[Libevent-users] Libevent memory leak?

2011-07-11 Thread Andrei Chirila
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. Valgrind reports: achirila@virtual-machine:~/src/tests$ valgrind --leak-check=full --show-reachable=yes ./test_event.ex

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,

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

2011-07-01 Thread Juan Pablo Fernandez
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, I'm confused reading the documentation, saying: 1, It's experimental (o

[Libevent-users] Libevent hackers: I need your help.

2011-05-06 Thread Nick Mathewson
Hi, all! Right now I am under a pile of patches that need help and review. I have two problems here right now: 1. They are scattered all around. Some are github pull requests, some are emails to the list, some are personal emails, some are sourceforge patch tickets. 2. There are not enough peo

[Libevent-users] libevent http long pooling - request stuck

2011-03-09 Thread Quentin Ambard
Hi, I have a strange behaviour using libevent for long pooling. I'd like to store a list of all the evhttp_request I receive for a specific url, without sending an answer to the client (I'ts long pooling, so I keep the connection open for x seconds). The problem is that the very first request seem

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

[Libevent-users] libevent-config script?

2011-01-02 Thread Harlan Stenn
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 libgcrypt-config libpng-config Anyway, I was wondering if libevent could insta

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

[Libevent-users] libevent with non standard ssl directory

2010-12-06 Thread Sanjeev Kulkarni
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 compile/link against that copy and not the standard system openssl. Th

[Libevent-users] libevent doxygen

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

[Libevent-users] libevent-2.0.8-rc/evdns.c:2672: Assertion (req)->handle && (req)->handle->current_req == (req) failed in evdns_cancel_request

2010-11-02 Thread Denis Bilenko
I've been working on making gevent use libevent's getaddrinfo and occasionally get the above message in one of the test cases. What could trigger it? How can I avoid it? I don't call evdns_getaddrinfo_cancel if the callback was already executed, so I wonder how could I arrive at invalid request?

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

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

2010-10-25 Thread bottig...@gmail.com
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 ] [warn] evthread_make_base_notifiable: socketpair: Successful WSAStar

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,

[Libevent-users] Libevent 2.0.6-rc libtool

2010-09-03 Thread Ralph Castain
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, those of us who have updated to libtool 2.2.10 get an error. I

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

[Libevent-users] libevent with python segfaulting

2010-08-01 Thread Michael Gale
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 server segfaults between 500 and 600 connections. If I do not a

[Libevent-users] Libevent HTTP and pipeline mode

2010-07-30 Thread Anton Zem
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_connection_done(evcon); return; } in pipeline mode

  1   2   >