Changeset dfd5837 in mod_gnutls


Ignore:
Timestamp:
Jul 12, 2015, 2:26:09 PM (8 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
asyncio, debian/master, debian/stretch-backports, jessie-backports, main, master, proxy-ticket, upstream
Children:
a733a90
Parents:
50eab8e
Message:

Log possible error messages from gnutls_bye

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_io.c

    r50eab8e rdfd5837  
    639639                    ret = gnutls_bye(ctxt->session, GNUTLS_SHUT_WR);
    640640                } while (ret == GNUTLS_E_INTERRUPTED || ret == GNUTLS_E_AGAIN);
    641                 ap_log_cerror(APLOG_MARK, APLOG_DEBUG, ret, ctxt->c,
    642                               "%s: TLS %sconnection closed.",
    643                               __func__, IS_PROXY_STR(ctxt));
     641                if (ret != GNUTLS_E_SUCCESS)
     642                    ap_log_cerror(APLOG_MARK, APLOG_DEBUG, 0, ctxt->c,
     643                                  "%s: Error while closing TLS %sconnection: "
     644                                  "'%s' (%d)",
     645                                  __func__, IS_PROXY_STR(ctxt),
     646                                  gnutls_strerror(ret), (int) ret);
     647                else
     648                    ap_log_cerror(APLOG_MARK, APLOG_DEBUG, 0, ctxt->c,
     649                                  "%s: TLS %sconnection closed.",
     650                                  __func__, IS_PROXY_STR(ctxt));
    644651                /* De-Initialize Session */
    645652                gnutls_deinit(ctxt->session);
Note: See TracChangeset for help on using the changeset viewer.