Re: [Cppcms-users] Is there a timeout?
Brought to you by:
artyom-beilis
|
From: Artyom <art...@ya...> - 2010-09-11 04:28:34
|
> hi,
>
> i just develop a longpoll server using cppcms, nginx and fastcgi. i
> relaxed the nginx timeout (fastcgi_read_timeout) to 600 seconds which
> helped against the closing of the connection after 60 seconds, but now
> the connection shuts down 180 seconds after establishing it. nginx
> states in the log:
>
> client closed prematurely connection, so upstream connection is closed
> too while sending request to upstream
>
> so this seems like cppcm closed the connection this time. is there any
> timeout imposed on cppcms side?
>
CppCMS does not apply any timeout, it leaves it as long as server holds
the connection.
So most likely the client closes it.
Now if you do want to apply timeouts you need to use
booster::aio::deadline_timer
and close connection manually when timer expires.
Artyom
|