Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: commits

[6836] cherokee/trunk/cherokee/cryptor_libssl.c: Extends a few TRACE entries to make clear that no information was sent

 

 

Cherokee commits RSS feed   Index | Next | Previous | View Threaded


cherokee at cherokee-project

Sep 5, 2011, 11:38 AM

Post #1 of 1 (92 views)
Permalink
[6836] cherokee/trunk/cherokee/cryptor_libssl.c: Extends a few TRACE entries to make clear that no information was sent

Revision: 6836
http://svn.cherokee-project.com/changeset/6836
Author: alo
Date: 2011-09-05 20:38:03 +0200 (Mon, 05 Sep 2011)
Log Message:
-----------
Extends a few TRACE entries to make clear that no information was sent
to the client when a libSSL error is caught and reported.

Modified Paths:
--------------
cherokee/trunk/cherokee/cryptor_libssl.c

Modified: cherokee/trunk/cherokee/cryptor_libssl.c
===================================================================
--- cherokee/trunk/cherokee/cryptor_libssl.c 2011-09-05 18:37:46 UTC (rev 6835)
+++ cherokee/trunk/cherokee/cryptor_libssl.c 2011-09-05 18:38:03 UTC (rev 6836)
@@ -836,38 +836,38 @@
switch (re) {
case SSL_ERROR_WANT_READ:
case SSL_ERROR_WANT_WRITE:
- TRACE (ENTRIES",write", "write len=%d, EAGAIN\n", buf_len);
+ TRACE (ENTRIES",write", "write len=%d (written=0), EAGAIN\n", buf_len);
return ret_eagain;

case SSL_ERROR_SYSCALL:
switch (error) {
case EAGAIN:
- TRACE (ENTRIES",write", "write len=%d, EAGAIN\n", buf_len);
+ TRACE (ENTRIES",write", "write len=%d (written=0), EAGAIN\n", buf_len);
return ret_eagain;
#ifdef ENOTCONN
case ENOTCONN:
#endif
case EPIPE:
case ECONNRESET:
- TRACE (ENTRIES",write", "write len=%d, EOF\n", buf_len);
+ TRACE (ENTRIES",write", "write len=%d (written=0), EOF\n", buf_len);
return ret_eof;
default:
LOG_ERRNO_S (error, cherokee_err_error,
CHEROKEE_ERROR_SSL_SW_DEFAULT);
}

- TRACE (ENTRIES",write", "write len=%d, ERROR: %s\n", buf_len, ERR_error_string(re, NULL));
+ TRACE (ENTRIES",write", "write len=%d (written=0), ERROR: %s\n", buf_len, ERR_error_string(re, NULL));
return ret_error;

case SSL_ERROR_SSL:
- TRACE (ENTRIES",write", "write len=%d, ERROR: %s\n", buf_len, ERR_error_string(re, NULL));
+ TRACE (ENTRIES",write", "write len=%d (written=0), ERROR: %s\n", buf_len, ERR_error_string(re, NULL));
return ret_error;
}

LOG_ERROR (CHEROKEE_ERROR_SSL_SW_ERROR,
SSL_get_fd(cryp->session), (int)len, ERR_error_string(re, NULL));

- TRACE (ENTRIES",write", "write len=%d, ERROR: %s\n", buf_len, ERR_error_string(re, NULL));
+ TRACE (ENTRIES",write", "write len=%d (written=0), ERROR: %s\n", buf_len, ERR_error_string(re, NULL));
return ret_error;
}

Cherokee commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.