Re: [Cppcms-users] Issues with resubmitting context in v1.2
Brought to you by:
artyom-beilis
|
From: Artyom B. <art...@gm...> - 2016-06-25 13:29:02
|
Because when you call submit_to_pool you provide already parsed path -
you don't submit it to general selection as you already know what pool
you submit too.
So you give the value that should be given to application::main
so you need to call ctx->submit_to_pool(poo,"abc");
>
> I am attaching new sample program. Hopefully it is the correct version I
> intend to use to illustrate my remaining question:
>
> Why
> part2::main(std::string url)
> gets string "up2/abc" instead of "abc"?
>
> It appears that regex group catching mechanism
> cppcms::mount_point("/up2/(.+)",1)
> is not invoked.
>
> Best Regards,
> CN
>
> if(!request().is_ready()){
> //Do some pre-verification.
> }
> else{
> booster::shared_ptr<cppcms::application_specific_pool>
> pool=app_specific_pool.lock();
> if(pool){
> booster::shared_ptr<cppcms::http::context>
> ctx=release_context();
> ctx->submit_to_pool(pool,"up2/abc");
> }
> }
|