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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user