[Cppcms-users] sessions::format violation data
Brought to you by:
artyom-beilis
From: CN <cn...@fa...> - 2016-06-01 15:09:27
|
Hi! Three browsers made the same requests to the same URL but the third one causes the following errors: 2016-06-01 22:37:20; cppcms, error: Caught exception [sessions::format violation data] 0x7fac3f2edc13: cppcms::session_interface::load_data(std::map<std::string, cppcms::session_interface::entry, std::less<std::string>, std::allocator<std::pair<std::string const, cppcms::session_interface::entry> > >&, std::string const&) + 0x653 in /usr/local/lib/libcppcms.so.1 0x7fac3f2edf8e: cppcms::session_interface::load() + 0x13e in /usr/local/lib/libcppcms.so.1 0x7fac3f272908: cppcms::http::context::dispatch(booster::intrusive_ptr<cppcms::application> const&, std::string const&, bool) + 0x188 in /usr/local/lib/libcppcms.so.1 0x7fac3f27378e: cppcms::http::context::dispatch(booster::shared_ptr<cppcms::application_specific_pool> const&, booster::shared_ptr<cppcms::http::context> const&, std::string const&) + 0x7e in /usr/local/lib/libcppcms.so.1 0x7fac3f2756c3: cppcms::impl::thread_pool::worker() + 0xc3 in /usr/local/lib/libcppcms.so.1 0x7fac3f66a52a: booster_thread_func + 0x1a in /usr/local/lib/libbooster.so.0 0x7fac3d8f50a4: ??? + 0x3d8f50a4 in /lib/x86_64-linux-gnu/libpthread.so.0 0x7fac3dbf287d: clone + 0x6d in /lib/x86_64-linux-gnu/libc.so.6 (http_context.cpp:336) The first possible cause coming to my mind is that the third browser sends cookie to server, and that cookie is either broken or created by server with outdated keys. If my guess is correct, is it possible to stop such exception by enclosing the code in question with "try{...}"? Best Regards, CN -- http://www.fastmail.com - Send your email first class |