diff --git a/vlib/veb/veb.v b/vlib/veb/veb.v index b2e23c3041..2c2daa8ca9 100644 --- a/vlib/veb/veb.v +++ b/vlib/veb/veb.v @@ -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 {