better debugability

This commit is contained in:
Adam D. Ruppe 2025-05-20 09:56:44 -04:00
parent 039efe58d0
commit 479ff1f2e6
1 changed files with 5 additions and 0 deletions

View File

@ -4074,6 +4074,7 @@ version(use_openssl) {
OpenSSL.SSL_free(ssl); OpenSSL.SSL_free(ssl);
OpenSSL.SSL_CTX_free(ctx); OpenSSL.SSL_CTX_free(ctx);
ssl = null; ssl = null;
ctx = null;
} }
~this() { ~this() {
@ -5424,6 +5425,10 @@ class WebSocket {
unnexpectedCondition = 1011, unnexpectedCondition = 1011,
unverifiedCertificate = 1015, // not set by client unverifiedCertificate = 1015, // not set by client
} }
string toString() {
return cast(string) (arsd.core.toStringInternal(code) ~ ": " ~ reason);
}
} }
/++ /++