[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [Libevent-users] How to set "allow_dirty_shutdown" for SSL?
- To: libevent-users@xxxxxxxxxxxxx
- Subject: Re: [Libevent-users] How to set "allow_dirty_shutdown" for SSL?
- From: Jardel Weyrich <jweyrich@xxxxxxxxx>
- Date: Mon, 11 Jan 2010 16:45:10 -0200
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Mon, 11 Jan 2010 13:45:33 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=Wn+ivC51TwRoRaAAKOBc0HP16nkZI2X/e7s8+SQDEfE=; b=Y6eQVAb2tNMJDymRfGWlBoNWPCu1kz+jgp59C1OLCLroHvzJveD5H/h5GS8f431CmP FW54YigH8tKM5GIyNzQdqVm5egxNDXRDuHtxR8VoKX0gHz+ER9kUQjbwVg+krG0AbdXR 8XLHdMWrE2o/TC4MgWvDK5GlY6y9I+XwR0Hf4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=QS9823Uily9s53Zy7L7HVbWb5/MxJCiGRIgO4hSwFFHLlw33sm3E/lLOXMYePYEocW qwf4NHXNo/D7obW/jF2HE8r8ykawfvYppnR8hjmRZ++Mfp3q81Edb178l92eOedI65W4 0QPdrRaw9hYfoAfZrUr/gmqBSM2/ubW54TthU=
- In-reply-to: <4B4B5FD2.7080508@xxxxxxxxxxx>
- References: <4B4B5FD2.7080508@xxxxxxxxxxx>
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
Indeed, currently there are no means to change this flag. IMO,
however, that shouldn't be needed if the shutdown process properly
occurs.
In a quick look, conn_closed() seems to be handling it correctly,
which means libevent will invoke the event callback with BEV_EVENT_EOF
upon a *clean* shutdown.
So, I would blame your client(s) for not properly disconnecting, but
it's much easier to set a breakpoint on conn_closed() and check the
following:
- errcode value must be 6 (SSL_ERROR_ZERO_RETURN);
- the "if" statement with SSL_get_shutdown(), must evaluate true;
Please, let us know how it goes.
Best,
Jardel
On Mon, Jan 11, 2010 at 3:28 PM, Joachim Bauch <jojo@xxxxxxxxxxx> wrote:
> Hello,
>
> I have a SSL-aware server using libevent 2.0.3. For most clients
> that are disconnecting, "be_openssl_eventcb" is called with an event
> of "BEV_EVENT_EOF", triggering a "BEV_EVENT_ERROR" in my application
> callback due to "allow_dirty_shutdown" being empty.
>
> There seems to be no way to set this flag from anywhere (application
> or inside libevent), is this intentional or just a missing feature?
>
> Best regards,
> Joachim Bauch
>
> ***********************************************************************
> To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
> unsubscribe libevent-users in the body.
>
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.