[iolib-devel] event-dispatch
Peter Keller
psilord at cs.wisc.edu
Wed Jan 20 06:18:45 UTC 2010
On Mon, Jan 18, 2010 at 12:19:09PM -0600, Peter Keller wrote:
> Under what conditions does event-dispatch return?
>
> For example, if I set up a read and write handler on one fd and through
> the course of the network protocol, one of the handlers decides to close
> the connection. If this handler calls remove-fd-handlers for the socket's
> underlying fd in question, is this sufficient to make event-dispath return?
After reading the source, I figured out the if you make-instance the
event-base and add :exit-when-empty t to it, then when there are zero
monitored fds, the event-dispatch loop will exit. For my purposes at this
time, this is good enough.
Thank you.
-pete
More information about the iolib-devel
mailing list