net.http: clarify error message in Request.ssl_do

pull/13698/head
Delyan Angelov 2022-03-08 18:17:34 +02:00
parent 137fade014
commit 10474f35f6
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ fn (req &Request) ssl_do(port int, method Method, host_name string, path string)
res = C.SSL_set_tlsext_host_name(voidptr(ssl), host_name.str)
res = C.BIO_do_connect(web)
if res != 1 {
return error('http: openssl: BIO_do_connect failed, res: $res')
return error('http: openssl: BIO_do_connect failed, res: $res (potential network issue?)')
}
res = C.BIO_do_handshake(web)
pcert := C.SSL_get_peer_certificate(voidptr(ssl))