There are two types of application, synchronous and asynchronous.
Synchronous are created multiple time and kept in a pool. They handle one request at a time and for performance use thread pool.
Asynchronous run as single instance and can handle multiple connections via release_context()
Further reading:
http://cppcms.com/wikipp/en/page/cppcms_1x_chat
http://cppcms.com/wikipp/en/page/cppcms_1x_event_loop
http://cppcms.com/wikipp/en/page/cppcms_1x_application_lifetime
http://cppcms.com/wikipp/en/page/thread_safety
Artyom Beilis
--------------
CppCMS - C++ Web Framework: http://cppcms.com/
CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/
--------------------------------------------
On Wed, 10/16/13, Christian Mattar <chr...@va...> wrote:
Subject: [Cppcms-users] Multiple concurrent HTTP requests
To: cpp...@li...
Date: Wednesday, October 16, 2013, 4:08 PM
Hi Artyom,
first of all: thank you for developing CPPCMS. I'm currently
integrating it
into a project of mine.
However, I ran into the following issue: Apparently, CPPCMS
only supports
processing of one concurrent HTTP request. If I launch a
second request
while another one is still being processed, it stalls until
the first
request is completed.
Is this normal behavior? Do I need to manually store/release
the
http_context in a different thread for better concurrent
performance?
I'm using an asynchronous application (which itself is
thread-safe) on Windows.
Many thanks for any advice you can give.
Best regards
Christian
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application
performance.
Explore tips for MPI, OpenMP, advanced profiling, and more.
Get the most from
the latest Intel processors and coprocessors. See abstracts
and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Cppcms-users mailing list
Cpp...@li...
https://lists.sourceforge.net/lists/listinfo/cppcms-users
|