Re: [Cppcms-users] SSE keep-alive
Brought to you by:
artyom-beilis
|
From: Artyom B. <art...@ya...> - 2013-04-04 19:22:27
|
Actually I think I need to add a good tutorial about it. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Markus Raab <us...@ma...> >To: cpp...@li... >Sent: Thursday, April 4, 2013 9:37 PM >Subject: Re: [Cppcms-users] SSE keep-alive > >Hello! > >Artyom Beilis wrote: >> I don't really understand why do you have mutex... >> >> You may not write to the event stream from a thread that is not the event >> loop thread. >> >> If you want to notify the asynchronous SSE on anything you need to use >> cppcms::service::post() with a callback that would be executed in the >> event loop. > >It would be a good idea to say that clearly on the very top of >http://cppcms.com/cppcms_ref/latest/classcppcms_1_1http_1_1context.html >http://cppcms.com/cppcms_ref/latest/classcppcms_1_1http_1_1response.html >(it would be the best if you use \warning or \note to make the pitfall more >visible) > >It is otherwise not obvious that this limitation exists. > >best regards >Markus > > >------------------------------------------------------------------------------ >Minimize network downtime and maximize team effectiveness. >Reduce network management and security costs.Learn how to hire >the most talented Cisco Certified professionals. Visit the >Employer Resources Portal >http://www.cisco.com/web/learning/employer_resources/index.html >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |