Menu

#93 sessions don't work in asynchronous mode

cppcms-1.2
closed
nobody
None
1
2014-10-30
2013-02-23
Anonymous
No

When I use
booster::intrusive_ptr<gameServer> c = new gameServer(service);
service.applications_pool().mount(c);
instead of
service.applications_pool().mount(cppcms::applications_factory<gameServer>());
sessions vanish with each new request.
Is it a bug?

Discussion

  • Artyom Beilis

    Artyom Beilis - 2013-02-26
    • status: open --> closed
     
  • Artyom Beilis

    Artyom Beilis - 2013-02-26

    There are several differences between synchronous application and asynchronous ones.

    One of such a difference is session loading as it may be potentially blocking (depending on a backend) and stall entire event loop, so to use sessions in asynchronous application you need to load it explicitly.

    See: http://cppcms.com/cppcms_ref/1.0.0/classcppcms_1_1session__interface.html#details

    Closing this issue as it is invalid

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.