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

net: allow more fine grained control over socket shutdowns

This commit is contained in:
Delyan Angelov
2023-01-25 12:32:05 +02:00
parent b34c55ffd6
commit d2e5c721a0
7 changed files with 49 additions and 33 deletions

View File

@ -454,7 +454,8 @@ pub fn (mut s TcpSocket) bind(addr string) ! {
}
fn (mut s TcpSocket) close() ! {
return shutdown(s.handle)
shutdown(s.handle)
return close(s.handle)
}
fn (mut s TcpSocket) @select(test Select, timeout time.Duration) !bool {