mirror of
https://github.com/vlang/v.git
synced 2025-09-08 14:51:53 -04:00
parent
9490115c9a
commit
c2d96c33b3
@ -266,9 +266,10 @@ fn handle_write_file(mut pv picoev.Picoev, mut params RequestParams, fd int) {
|
||||
}
|
||||
|
||||
mut conn := &net.TcpConn{
|
||||
sock: net.tcp_socket_from_handle_raw(fd)
|
||||
handle: fd
|
||||
is_blocking: false
|
||||
sock: net.tcp_socket_from_handle_raw(fd)
|
||||
handle: fd
|
||||
is_blocking: false
|
||||
write_timeout: params.timeout_in_seconds * time.second
|
||||
}
|
||||
|
||||
params.file_responses[fd].file.read_into_ptr(data, bytes_to_write) or {
|
||||
|
Loading…
x
Reference in New Issue
Block a user