Subject: | timeout option is ignored |
The timeout option is currently ignored, whether it is set or not, brick uses 5s timeout.
To fix, I believe, it would suffice to replace
Timeout => 5,
with
Timeout => $self->{timeout} || 5,
(or ensure self->timeout is set by the constructor).
PS Until it is fixed, the following workaround works:
HTTP::Server::Brick->new(
port => 9997,
# This does not work:
timeout => 1,
# ... but this works:
daemon_args => [ Timeout => 1 ],
);