On 10/30/06, cwinl <[EMAIL PROTECTED]> wrote:
i also suspect my usage of bufferevent_write. can you illustrate an example ?
(Sorry if I mess this up; my first real mailing list post...) When I wrote a simple chat proxy using bufferevents, I added a bufferevent_enable(EV_WRITE) in my read callback after writing data, and then my write callback consisted of just a bufferevent_disable(EV_WRITE), because otherwise the write callback will keep firing because the buffer is empty, and it thinks you want to write more. This was my thinking, anyway; I never actually profiled it or anything because I wrote it in an afternoon and then didn't touch it after that. _______________________________________________ Libevent-users mailing list Libevent-users@monkey.org http://monkey.org/mailman/listinfo/libevent-users