[Libevent-users] Query regarding bufferevent_read_buffer

2011-05-30 Thread deepak jain
Hello, I am a new user of libevent and new to asynchronous I/O , so the question may seem quite naive. I am building an application based on libevent on linux using epoll backend. Sometime clients of my application can write a huge data to my application say 100K bytes. I am using buffer_read_bu

Re: [Libevent-users] Query regarding bufferevent_read_buffer

2011-05-31 Thread deepak jain
11 at 5:03 AM, deepak jain > wrote: > > Hello, > > I am a new user of libevent and new to asynchronous I/O , so the > question > > may seem quite naive. > > I am building an application based on libevent on linux using epoll > backend. > > Sometime c

Re: [Libevent-users] Query regarding bufferevent_read_buffer

2011-06-01 Thread deepak jain
I got it. Thanks a lot for clarification. :-) DJ On Wed, Jun 1, 2011 at 8:50 PM, Nick Mathewson wrote: > On Tue, May 31, 2011 at 1:40 PM, deepak jain > wrote: > > Hi Nick, > > Thanks a lot for your reply. > > One more doubt about bufferevent. > > As in socket net

Re: [Libevent-users] How to activate read callback when not all data was read

2012-04-10 Thread deepak jain
Hi, I was having similar kind of problem. in order to resolve it, I stopped processing my commands in read callback. I read commands in read callback and pushed them to my synchronized queue where threads are waiting on that queue for commands to process them. This approach reduced burden on read