Re: [Cppcms-users] URI selection?, double call??
Brought to you by:
artyom-beilis
|
From: Lee E. <lee...@gm...> - 2013-03-13 11:52:44
|
The server listens on port 8080 - and will respond to any http request to that port the configuration provides the starting point for the URL dispatcher to find and call the correct code in your application in normal use - the hello world sample however does not use the dispatcher and instead bypass it by always returning the same response so you get this behavior - move on to work with app hierarchies and you will see much more use for that configuration On Wed, Mar 13, 2013 at 1:40 PM, Juan Carlos Borrás <jcb...@gm...>wrote: > Hi all, > Two behaviours I don't understand in the hello_world example: > > 1) It looks like any URI under localhost:8080 will be responded upon > while config.js explicitly states that the application lives under > localhost:8080/hello. Bug, feature or PBKAC? > > 2) As a lame execution tracking I dump to std::cout Boost's > local_time() but I get two printed lines by server request (as if > my_hello_world:main() would be called twice). Again, bug, feature or > or PBKAC? > > Code replicating the effect at: https://github.com/jcborras/cppwap > Clone with git clone gi...@gi...:jcborras/cppwap.git (but you all know > that) > > Thanks in advance, > Cheers, > jcb! > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- -- lee Lee Elenbaas lee...@gm... |