Re: [Cppcms-users] How to combine SSE with the url dispatcher
Brought to you by:
artyom-beilis
|
From: Lucile Q. <luc...@sa...> - 2014-02-24 20:57:20
|
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 |