Re: [Cppcms-users] How to combine SSE with the url dispatcher
Brought to you by:
artyom-beilis
|
From: eric m. <mid...@gm...> - 2014-02-24 21:25:03
|
Hi Lucile, thanks for your comment. I figured it out already myself yesterday and do have a working example now. I might upload if later this week for others to benefit from. Thanks again! On Mon, Feb 24, 2014 at 9:37 PM, Lucile Quirion < luc...@sa...> wrote: > > Le 2014-02-22 11:47, eric middelkoop a écrit : > > Can you explain why the SyncApp supersedes and how I can make the > > AsyncApp react on the streamrequest? It must be possible to implement > > the ticker example using a dynamically created page right because > > that's what I'm after. > > > > Anyone who has a clue, please react. > > > When you look at applications_pool::get(..) in applications_pool.cpp : > you can see that a first iteration is performed on synchronious > applications to find the application witch mount_point match > HOST/SCRIPT_NAME/PATH_INFO then a second iteration is performed on > asynchronious applications. The first application found is returned. > > As you use the default mount_point SCRIPT_NAME is not checked and > SyncApp is returned instead of AsyncApp. > > You should use a mount point that checks SCRIPT_NAME, and passes > PATH_INFO for dispatching, see [0] for more information. > > Greetings, > Lucile > > [0] http://cppcms.com/cppcms_ref/latest/classcppcms_1_1mount__point.html > > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- Groetjes, Eric http://www.lightandmagicphotography.nl http://www.lightandmagicphotography.com On Mon, Feb 24, 2014 at 9:37 PM, Lucile Quirion < luc...@sa...> wrote: > > Le 2014-02-22 11:47, eric middelkoop a écrit : > > Can you explain why the SyncApp supersedes and how I can make the > > AsyncApp react on the streamrequest? It must be possible to implement > > the ticker example using a dynamically created page right because > > that's what I'm after. > > > > Anyone who has a clue, please react. > > > When you look at applications_pool::get(..) in applications_pool.cpp : > you can see that a first iteration is performed on synchronious > applications to find the application witch mount_point match > HOST/SCRIPT_NAME/PATH_INFO then a second iteration is performed on > asynchronious applications. The first application found is returned. > > As you use the default mount_point SCRIPT_NAME is not checked and > SyncApp is returned instead of AsyncApp. > > You should use a mount point that checks SCRIPT_NAME, and passes > PATH_INFO for dispatching, see [0] for more information. > > Greetings, > Lucile > > [0] http://cppcms.com/cppcms_ref/latest/classcppcms_1_1mount__point.html > > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- Groetjes, Eric http://www.lightandmagicphotography.nl http://www.lightandmagicphotography.com |