fixed ssl.c bug when ssl backend returns IO_BLOCKED but IO engine doesn't get informe...
[ircu2.10.12-pk.git] / ircd / ssl.c
index 2af08520bb953b1f70ba36a1d4447ead3d08abeb..489c143f4b632f23d9f2626c03a6659c168ca757 100644 (file)
@@ -1022,6 +1022,7 @@ const char *ssl_cipherstr(ssl_session_t *ssl) {
     }
     IOResult ssl_be_send(signed int fd, ssl_be_session_t *ssl, const char *buf, unsigned int *count_out) {
         signed int res;
+               ssl_msg(SSL_DEBUG, "SSL: gnutls ssl_be_send(): %s", buf);
         res = gnutls_record_send(*ssl, buf, *count_out);
         *count_out = 0;
         if(res == 0) {
@@ -1039,7 +1040,7 @@ const char *ssl_cipherstr(ssl_session_t *ssl) {
         }
         else {
             *count_out = res;
-                       ssl_msg(SSL_DEBUG, "SSL: gnutls ssl_be_send(): successful (IO_SUCCESS)");
+                       ssl_msg(SSL_DEBUG, "SSL: gnutls ssl_be_send(): successful (IO_SUCCESS) %d", res);
             return IO_SUCCESS;
         }
     }