[Cppcms-users] SSE keep-alive
Brought to you by:
artyom-beilis
|
From: Christian G. <chr...@gm...> - 2013-04-01 18:37:51
|
HI all, I am trying to understand the keep-alive mechanism used in the SSE classes. I have the following problem: For test purposes I lowered the http timeout to 10 seconds, see keep-live is set to 1 second and the session timeout is set to 20 seconds. Now a client opens the sse stream /sse/get and gets a "ping" message. Now in theory every second the see keep-alive worker should do its work, but it looks like long_pollers_ and streamers_ are empty. void event_source::keep_alive(char const *comment) gets called every seconds but as long_pollers_ and streamers are empty no keep alive is send. There are two places where streamers_.insert is called: class post_send and void event_source::accept(booster::shared_ptr<cppcms::http::context> ctx). Maybe somebody can help me to under stand it! thanks -- Christian Gmeiner, MSc |