[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] how to properly shutdown openssl filter?
- To: libevent-users@xxxxxxxx
- Subject: [Libevent-users] how to properly shutdown openssl filter?
- From: Sasha Limanov <szlimanov@xxxxxxxxx>
- Date: Fri, 25 Jan 2013 03:19:31 +0100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Thu, 24 Jan 2013 21:19:38 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=GFstPZuW+FJdOiOzw1+Mo1no/56rFEUx1uhZIGx5dJ8=; b=G92AIzPUKucfnb0TZSoAELX3f58R2HmyCr76uHG9Ht4GHHr9PGVkBY6AYM/l+inwUx wc6tSwysNmZimUYPVmIUrtTrjotC5KMFnq4es8WcRSUuRUicFHT06KXyMxdAUaBjpnEx 3acqJj1lvI7oqRpnl0giJdggdmRXp0/+pFZp9plDwbYwfKSKEiCCDbBFqZ6utXi5L4Jw XlrPvSoefuEp0xcvrrsd2VTAQv4adHkMGRNbKfNmc9brdHzZJp8ejotd0/tXrWWwK5Mu Mc6LC4RX7Wz+BnX7f00IDG7Kih9MX3tibiGulhRkImyYLqsR/J+QY3E02TvEILgSJQ8/ 9vXA==
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
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.