On Thu, Jun 2, 2011 at 10:15 PM, Juan Pablo L
<jpablolorenze...@gmail.com> wrote:
> i m trying to avoid using start/stop or even ev_timer_again because the
> socket is considered busy when taken by a thread and thread will hold the
> socket for as long as clients have something to send which could be a lot of
> info
> or just a few bytes, i m trying to say that a thread may hold the socket
> longer than the
> idle time out so how can i manage
> to prevent the event loop from disconnecting a socket that is being used
> by another thread ?

Well, not knowing the rest of this design, my guess would be that when
a thread takes control of a socket, it should remove it from the idle
timer linked list, and when it's done it should re-add it at the end.

_______________________________________________
libev mailing list
libev@lists.schmorp.de
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to