You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kg...@apache.org on 2013/11/01 17:18:23 UTC
svn commit: r1537972 - /qpid/proton/trunk/proton-c/src/ssl/openssl.c
Author: kgiusti
Date: Fri Nov 1 16:18:23 2013
New Revision: 1537972
URL: http://svn.apache.org/r1537972
Log:
PROTON-446: manually set the proper shutdown state on SSL failure
Modified:
qpid/proton/trunk/proton-c/src/ssl/openssl.c
Modified: qpid/proton/trunk/proton-c/src/ssl/openssl.c
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/src/ssl/openssl.c?rev=1537972&r1=1537971&r2=1537972&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/src/ssl/openssl.c (original)
+++ qpid/proton/trunk/proton-c/src/ssl/openssl.c Fri Nov 1 16:18:23 2013
@@ -184,6 +184,8 @@ static int ssl_failed(pn_ssl_t *ssl)
{
ssl->ssl_closed = true;
ssl->app_input_closed = ssl->app_output_closed = PN_ERR;
+ // fake a shutdown so the i/o processing code will close properly
+ SSL_set_shutdown(ssl->ssl, SSL_SENT_SHUTDOWN|SSL_RECEIVED_SHUTDOWN);
// try to grab the first SSL error to add to the failure log
char buf[128] = "Unknown error.";
unsigned long ssl_err = ERR_get_error();
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org