Re: [Cppcms-users] URI selection?, double call??
Brought to you by:
artyom-beilis
|
From: Juan C. B. <jcb...@gm...> - 2013-03-13 12:36:44
|
Thanks mate! Moving on to the dispatcher as I type this. Cheers, jcb! On Wed, Mar 13, 2013 at 1:52 PM, Lee Elenbaas <lee...@gm...> wrote: > 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... > > ------------------------------------------------------------------------------ > 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 > -- Cheers, jcb! _______________________ http://twitter.com/jcborras |