Re: [Libevent-users] mysql client with libevent

2011-08-31 Thread Mark Ellzey
On Wed, Aug 31, 2011 at 07:28:59PM -0700, William Ahern wrote: > FWIW, the PostgreSQL C client API works non-blocking. It's quite well > designed. > I wrote this years ago so mind the crappy code (not to mention pre levent2), but it's a good example of how to use libevent + nonblocking pgsql. h

Re: [Libevent-users] mysql client with libevent

2011-08-31 Thread gschen
On 2011/9/1 10:28, William Ahern wrote: On Wed, Aug 31, 2011 at 09:10:35PM -0500, Nulik Nol wrote: I have searched quickly what database engine supports asynchronous io and found quite a lot of good projects, one of them called Redis, it is a sort of replacement for memcachedb. Nice stuff! Chec

Re: [Libevent-users] mysql client with libevent

2011-08-31 Thread William Ahern
On Wed, Aug 31, 2011 at 09:10:35PM -0500, Nulik Nol wrote: > I have searched quickly what database engine supports asynchronous io > and found quite a lot of good projects, one of them called Redis, it > is a sort of replacement for memcachedb. Nice stuff! Check it out: > http://redis.io/ > > I th

Re: [Libevent-users] mysql client with libevent

2011-08-31 Thread Nulik Nol
> > Beware: once you read thru the MySQL code you'll never want to use MySQL > again ;) The apparent robustness of MySQL has little to do with the quality > of the code and everything to do with the millions of people banging on it > every day. > particular scenario. YMMV. Also, I'm not familiar w

Re: [Libevent-users] mysql client with libevent

2011-08-31 Thread William Ahern
On Wed, Aug 31, 2011 at 11:58:32AM -0500, Nulik Nol wrote: > Hi, > I was wondering if someone has managed it to adapt mysql client's C > API to work asynchronously ? > As far as I have checked, MySQL (5.6.2) uses libevent for server, but > not for the client. The only way to achieve sort of asynchr

[Libevent-users] mysql client with libevent

2011-08-31 Thread Nulik Nol
Hi, I was wondering if someone has managed it to adapt mysql client's C API to work asynchronously ? As far as I have checked, MySQL (5.6.2) uses libevent for server, but not for the client. The only way to achieve sort of asynchronous behaviour is to use pthreads and spawn one thread per connectio

[Libevent-users] ANN: Libevent 2.0.14-stable is released

2011-08-31 Thread Nick Mathewson
Hello, all! Announcing Libevent 2.0.14-stable = Libevent 2.0.14-stable is now tagged and released. The package is at Sourceforge at: https://sourceforge.net/projects/levent/files/libevent/libevent-2.0/libevent-2.0.14-stable.tar.gz/download and the signature fi

Re: [Libevent-users] https support within libevent

2011-08-31 Thread Mark Ellzey
On Tue, Aug 30, 2011 at 05:54:42PM -0400, Nick Mathewson wrote: > Neat! APIwise, is there also a way to just pass in an SSL_CTX or use > a factory function to create SSL objects? This kind of "config > structure" trick is neat, but a lot of time, I need to do some pretty > heavy unanticipated SS

Re: [Libevent-users] undefined reference to `bufferevent_get_input'

2011-08-31 Thread Mark Ellzey
On Wed, Aug 31, 2011 at 09:00:17PM +0800, lx wrote: > hello, i'm a new one , begin to use libevent. i've installed it in ubuntu10. > > by ./configure, make , sudo make install. > but when i complie a example, it can't work.* the errors is:* > > ---

[Libevent-users] undefined reference to `bufferevent_get_input'

2011-08-31 Thread lx
hello, i'm a new one , begin to use libevent. i've installed it in ubuntu10. by ./configure, make , sudo make install. but when i complie a example, it can't work.* the errors is:* ---