[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] Event after close



On Wed, Aug 18, 2010 at 10:44 AM, Gilad Benjamini
<gilad@xxxxxxxxxxxxxxxxx> wrote:
> I have a read event on a socket. At some point I realize the connection is
> broken.
> I delete the event and close the socket.
> If the socket had pending data at that point, is there a chance that I will
> get a read event ? I.e. an event on a socket that's already closed ?

If you have deleted the event, you should never get it.  Only events
that are "pending" (i.e., added) can get their callbacks called.

-- 
Nick
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.