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:
parent
603319e30b
commit
17800b4bca
6
vlib/net/openssl/openssl_test.v
Normal file
6
vlib/net/openssl/openssl_test.v
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import net.openssl
|
||||||
|
|
||||||
|
fn test_openssl_compiles() {
|
||||||
|
assert openssl.is_used == 1
|
||||||
|
assert true
|
||||||
|
}
|
@ -58,7 +58,7 @@ pub fn (mut s SSLConn) shutdown() ! {
|
|||||||
}
|
}
|
||||||
if err_res == .ssl_error_want_read {
|
if err_res == .ssl_error_want_read {
|
||||||
for {
|
for {
|
||||||
ready := @select(s.handle, .read, s.duration)?
|
ready := @select(s.handle, .read, s.duration)!
|
||||||
if ready {
|
if ready {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
@ -66,7 +66,7 @@ pub fn (mut s SSLConn) shutdown() ! {
|
|||||||
continue
|
continue
|
||||||
} else if err_res == .ssl_error_want_write {
|
} else if err_res == .ssl_error_want_write {
|
||||||
for {
|
for {
|
||||||
ready := @select(s.handle, .write, s.duration)?
|
ready := @select(s.handle, .write, s.duration)!
|
||||||
if ready {
|
if ready {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user