mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
picoev, x.vweb: small fixes and backport changes from vweb (#20584)
This commit is contained in:
parent
2874e7cac0
commit
d88ca11a4c
18 changed files with 319 additions and 129 deletions
|
@ -44,8 +44,8 @@ pub:
|
|||
max_headers int = 100
|
||||
max_read int = 4096
|
||||
max_write int = 8192
|
||||
family net.AddrFamily = .ip
|
||||
host string = 'localhost'
|
||||
family net.AddrFamily = .ip6
|
||||
host string
|
||||
}
|
||||
|
||||
@[heap]
|
||||
|
@ -302,8 +302,8 @@ fn default_err_cb(data voidptr, req picohttpparser.Request, mut res picohttppars
|
|||
}
|
||||
|
||||
// new creates a `Picoev` struct and initializes the main loop
|
||||
pub fn new(config Config) &Picoev {
|
||||
listen_fd := listen(config)
|
||||
pub fn new(config Config) !&Picoev {
|
||||
listen_fd := listen(config)!
|
||||
|
||||
mut pv := &Picoev{
|
||||
num_loops: 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue