Re: [Libevent-users] help about an error message

2013-03-26 Thread sven falempin
On Tue, Mar 26, 2013 at 10:44 AM, Nick Mathewson wrote: > On Tue, Mar 26, 2013 at 10:41 AM, sven falempin > wrote: > > Never saw > > i was used to libevent 1 > > when i switch to 2 > > My guess is that you're setting up these events before constructing an > event_base or calling event_init. That

Re: [Libevent-users] help about an error message

2013-03-26 Thread Nick Mathewson
On Tue, Mar 26, 2013 at 10:41 AM, sven falempin wrote: > Never saw > i was used to libevent 1 > when i switch to 2 My guess is that you're setting up these events before constructing an event_base or calling event_init. That might have worked with libevent 1, but in libevent 2, you need to make s

Re: [Libevent-users] help about an error message

2013-03-26 Thread sven falempin
On Tue, Mar 26, 2013 at 10:04 AM, Azat Khuzhin wrote: > Hi, > > On Tue, Mar 26, 2013 at 2:22 AM, sven falempin > wrote: > > using libevent2 (libevent-2.0.21-stable) i create this log: > > > > [warn] event_del: event has no event_base set. > > [err] event_assign called on an already added event 0x

Re: [Libevent-users] help about an error message

2013-03-26 Thread Azat Khuzhin
Hi, On Tue, Mar 26, 2013 at 2:22 AM, sven falempin wrote: > using libevent2 (libevent-2.0.21-stable) i create this log: > > [warn] event_del: event has no event_base set. > [err] event_assign called on an already added event 0x84de9e4 (events: 0x0, > fd: 0, flags: 0x0) > > using this code: > > vo

[Libevent-users] help about an error message

2013-03-25 Thread sven falempin
using libevent2 (libevent-2.0.21-stable) i create this log: [warn] event_del: event has no event_base set. [err] event_assign called on an already added event 0x84de9e4 (events: 0x0, fd: 0, flags: 0x0) using this code: void connection::listen_write_event() { int rc = 0; if (fd == -1) return;

Re: [Libevent-users] Help understanding the evbuffer and its chains

2012-06-09 Thread Nick Mathewson
On Sat, Jun 9, 2012 at 5:11 AM, Filipe Miguel Campos Santos wrote: > Hey Everyone, > > i did use Libevent in my master thesis to programm a multithreaded > websocket server and while i know *how to use* Libevent now, i dont really > know how Libevent works internally. Everything i did know was tha

[Libevent-users] Help understanding the evbuffer and its chains

2012-06-09 Thread Filipe Miguel Campos Santos
Hey Everyone, i did use Libevent in my master thesis to programm a multithreaded websocket server and while i know *how to use* Libevent now, i dont really know how Libevent works internally. Everything i did know was that it relies on multiplexing-IO-mechanisms like epoll. So in order to be able

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

2010-11-17 Thread Mark Ellzey
On Tue, Nov 16, 2010 at 10:26:59AM -0600, Steven Veneralle wrote: > whenever I did my make I got he following > /sizes: error while loading shared libraries: libevent-1.4.so.2: cannot open > shared object file: No such file or directory > make: *** [test] Error 127 > > abd this error after it trie

: [Libevent-users] help

2010-11-16 Thread Steven Veneralle
whenever I did my make I got he following /sizes: error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory make: *** [test] Error 127 abd this error after it tried running a mem chache command. any pointers please? memcached: error while lo

Re: [Libevent-users] Help with progress thread

2010-11-12 Thread Nick Mathewson
On Sat, Nov 13, 2010 at 12:06 AM, Ralph Castain wrote: > Email is frequently a horrid method of communication, I fear. Let me dig > deeper into this and see what I can find, rather than continuing to draw on > your time. > > Putting all the notes together, it looks like libevent does internally

Re: [Libevent-users] Help with progress thread

2010-11-12 Thread Ralph Castain
Email is frequently a horrid method of communication, I fear. Let me dig deeper into this and see what I can find, rather than continuing to draw on your time. Putting all the notes together, it looks like libevent does internally exactly what we were doing externally, so the duplication may wel

Re: [Libevent-users] Help with progress thread

2010-11-12 Thread Nick Mathewson
On Fri, Nov 12, 2010 at 10:47 AM, Ralph Castain wrote: > Hi Nick > > Appreciate the help. Shame on me for the buglet re open. > > Using your revisions, I was able to get this to work with our integration > (i.e., using the opal abstractions). I'm a little puzzled by the procedure, > though, so i

Re: [Libevent-users] Help with progress thread

2010-11-12 Thread Ralph Castain
Hi Nick Appreciate the help. Shame on me for the buglet re open. Using your revisions, I was able to get this to work with our integration (i.e., using the opal abstractions). I'm a little puzzled by the procedure, though, so if you don't mind my tasking your patience, I do have a question. I

Re: [Libevent-users] Help with progress thread

2010-11-11 Thread Nick Mathewson
On Thu, Nov 11, 2010 at 8:00 PM, Ralph Castain wrote: > Afraid I am hitting a brick wall, Nick. I can't make the threaded code work. > Perhaps you have some further advice? > > I have attached my test code. Basically, it initializes the event lib, calls > use_threads, creates a new base, and the

Re: [Libevent-users] Help with progress thread

2010-11-11 Thread Ralph Castain
Afraid I am hitting a brick wall, Nick. I can't make the threaded code work. Perhaps you have some further advice? I have attached my test code. Basically, it initializes the event lib, calls use_threads, creates a new base, and then spawns a progress thread that calls event_loop (you'll see th

Re: [Libevent-users] Help with progress thread

2010-11-10 Thread Nick Mathewson
On Wed, Nov 10, 2010 at 9:58 AM, Ralph Castain wrote: > > On Nov 9, 2010, at 9:57 PM, Nick Mathewson wrote: > >> On Tue, Nov 9, 2010 at 11:47 PM, Ralph Castain wrote: >>> >>> On Nov 9, 2010, at 9:03 PM, Nick Mathewson wrote: >> [...] So I'm assuming that you've got all the threading callback

Re: [Libevent-users] Help with progress thread

2010-11-10 Thread Ralph Castain
On Nov 9, 2010, at 9:57 PM, Nick Mathewson wrote: > On Tue, Nov 9, 2010 at 11:47 PM, Ralph Castain wrote: >> >> On Nov 9, 2010, at 9:03 PM, Nick Mathewson wrote: > [...] >>> So I'm assuming that you've got all the threading callbacks set up >>> (probably via evthread_use_pthreads()) before you

Re: [Libevent-users] Help with progress thread

2010-11-09 Thread Nick Mathewson
On Tue, Nov 9, 2010 at 11:47 PM, Ralph Castain wrote: > > On Nov 9, 2010, at 9:03 PM, Nick Mathewson wrote: [...] >> So I'm assuming that you've got all the threading callbacks set up >> (probably via evthread_use_pthreads()) before you created the event >> base, so that evthread_make_base_notifi

Re: [Libevent-users] Help with progress thread

2010-11-09 Thread Ralph Castain
On Nov 9, 2010, at 9:03 PM, Nick Mathewson wrote: > On Tue, Nov 9, 2010 at 3:28 PM, Ralph Castain wrote: >> Hi folks >> >> I'm running into a problem that probably results from my ignorance. So I >> figured I would ask if someone can tell me what I'm doing wrong. >> >> I have a thread that lo

Re: [Libevent-users] Help with progress thread

2010-11-09 Thread Nick Mathewson
On Tue, Nov 9, 2010 at 3:28 PM, Ralph Castain wrote: > Hi folks > > I'm running into a problem that probably results from my ignorance. So I > figured I would ask if someone can tell me what I'm doing wrong. > > I have a thread that loops the event library with the following call: > >        even

[Libevent-users] Help with progress thread

2010-11-09 Thread Ralph Castain
Hi folks I'm running into a problem that probably results from my ignorance. So I figured I would ask if someone can tell me what I'm doing wrong. I have a thread that loops the event library with the following call: events += event_loop(mca_oob_tcp_component.event_base, EVLOOP_ONCE);

[Libevent-users] help with debugging

2010-09-16 Thread Mihai Draghicioiu
Hi, i've received a http/dns related crash inside libevent code, and i'm not sure if it's a libevent bug or my application's bug. I'm using 2.0.7-rc on linux. The code that uses the http code is here http://github.com/vampirefrog/frogmod-justice/blob/master/fpsgame/server.cpp#L746 Lines 746-790.

[Libevent-users] [HELP] How to safely free a defer callback bufferevent in readcb

2010-05-31 Thread Zhuang Yuyao
Hi, I am working on a http proxy program based on le-proxy. the proxy has a feature to block requests to some special urls, then return to the client a 403 forbidden or 302 redirect response. I tried to do it in bufferevent readcb, here are the code sample i wrote: static void readcb(struct buff