On Wed, Aug 18, 2010 at 10:44 AM, Gilad Benjamini <gi...@altornetworks.com> 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 majord...@freehaven.net with unsubscribe libevent-users in the body.