mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
@ -77,7 +77,7 @@ mut:
|
||||
}
|
||||
|
||||
[inline]
|
||||
fn setup_sock(fd int) ? {
|
||||
fn setup_sock(fd int) ! {
|
||||
flag := 1
|
||||
if C.setsockopt(fd, C.IPPROTO_TCP, C.TCP_NODELAY, &flag, sizeof(int)) < 0 {
|
||||
return error('setup_sock.setup_sock failed')
|
||||
|
Reference in New Issue
Block a user