Quellcode durchsuchen

[Minor] Improve SSL connection error message

tags/1.8.2
Vsevolod Stakhov vor 5 Jahren
Ursprung
Commit
dcbfc96014
1 geänderte Dateien mit 6 neuen und 1 gelöschten Zeilen
  1. 6
    1
      src/libutil/http.c

+ 6
- 1
src/libutil/http.c Datei anzeigen

@@ -29,6 +29,8 @@
#include "libutil/regexp.h"
#include "libserver/url.h"

#include <openssl/err.h>

#define ENCRYPTED_VERSION " HTTP/1.0"

struct _rspamd_http_privbuf {
@@ -2327,7 +2329,10 @@ rspamd_http_connection_write_message_common (struct rspamd_http_connection *conn
priv->ptv, rspamd_http_event_handler,
rspamd_http_ssl_err_handler, conn)) {

err = g_error_new (HTTP_ERROR, errno, "ssl connection error");
err = g_error_new (HTTP_ERROR, errno,
"ssl connection error: ssl error=%s, errno=%s",
ERR_error_string (ERR_get_error (), NULL),
strerror (errno));
rspamd_http_connection_ref (conn);
conn->error_handler (conn, err);
rspamd_http_connection_unref (conn);

Laden…
Abbrechen
Speichern