Hi,
> Hmm, that should help. I have several send_reply_chunk() though. Are you > suggesting they should form nested callback chains? Afaik it's the only threadsafe way of ensuring to not call reads and writes on already closed descriptors. Although i know it's highly unportable i use gcc's nested functions [1] for such kind of callbacks; it's just extremly nice to read. As long as GCC's your compiler nested functions are great for callbacks. Just never reference data outside the function's scope :-) [1] http://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html _______________________________________________ Libevent-users mailing list Libevent-users@monkey.org http://monkeymail.org/mailman/listinfo/libevent-users