Hi, I currently see a problem of which I am not really sure what's the actual reason, but I think it is related to multiple threads in my application. I do use bufferevents to communicate over a http connection (not using evhttp as I need different features - streaming actually). I create the socket and add an event handler for actions on that socket in my main thread which afterwards calls event_dispatch. The actual feed in of data is done in a seperate thread though. This thread does nothing but monitoring a ringbuffer and write data to the socket with bufferevent_write_buffer. Soem data is actually transmitted to the client, but it is garbled. Also after a while of running the app I get errors like this one: [err] event_queue_insert: 0x9c9d724(fd 13) already on queue 2
I do only call event_init once in the main thread. So there shouldn't be multiple event_bases existing, but maybe I still have to do something specific in the other threads? - Wouldn't that threads use the current_base from the mainthread normally? I'd be glad if someone has an idea on this issue... Regards, Julian _______________________________________________ Libevent-users mailing list Libevent-users@monkey.org http://monkeymail.org/mailman/listinfo/libevent-users