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

[Libevent-users] how to properly shutdown openssl filter?



Greetings all,

I have read through Diwaker's and Nick's past email relating to
bufferevent_openssl, but can't find the answer I'm looking for - if
it's been answered before, please point me to it.

What is the proper way to shutdown a bufferevent_openssl filter?
Specifically in the case where my app is a server, and the client
suddenly disconnects?

I have followed the lazy shutdown recommendation at
http://www.wangafu.net/~nickm/libevent-book/Ref6a_advanced_bufferevents.html
but

 bufferevent_openssl_filter_new(bufferevent_get_base(relaycfg->theclient->client),
relaycfg->theclient->client, self->ssl[0], BUFFEREVENT_SSL_ACCEPTING,
0&BEV_OPT_DEFER_CALLBACKS);
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.