I just added this code line in the beginning and the program doesn't exit anymore and my event callback is called with BEV_EVENT_ERROR:
signal( SIGPIPE, SIG_IGN );

But this is another problem because my client and my server were called with BEV_EVENT_ERROR without actually closing the socket by myself. My server says "Broken pipe" but my client doesn't close the socket..
Maybe this is due to the fact that I am using OpenSSL.
Anyways, I can't figure out what is happening and why the pipe is broken.
***********************************************************************
To unsubscribe, send an e-mail to [email protected] with
unsubscribe libevent-users    in the body.

Reply via email to