1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: fix net.openssl, ensure that it is at least compiled, to avoid future regressions on sweeping vlib changes

This commit is contained in:
Delyan Angelov 2022-10-16 20:59:04 +03:00
parent 603319e30b
commit 17800b4bca
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
2 changed files with 8 additions and 2 deletions

View File

@ -0,0 +1,6 @@
import net.openssl
fn test_openssl_compiles() {
assert openssl.is_used == 1
assert true
}

View File

@ -58,7 +58,7 @@ pub fn (mut s SSLConn) shutdown() ! {
}
if err_res == .ssl_error_want_read {
for {
ready := @select(s.handle, .read, s.duration)?
ready := @select(s.handle, .read, s.duration)!
if ready {
break
}
@ -66,7 +66,7 @@ pub fn (mut s SSLConn) shutdown() ! {
continue
} else if err_res == .ssl_error_want_write {
for {
ready := @select(s.handle, .write, s.duration)?
ready := @select(s.handle, .write, s.duration)!
if ready {
break
}