[Cppcms-users] stop accepting incoming connections
Brought to you by:
artyom-beilis
From: Andrey <par...@gm...> - 2016-11-22 12:48:10
|
Hello,Artyom. cppcms allows applications to use central event loop and many useful functionality within booster::aio, but all of this stuff depends on the main function - to accept client connections. If we want to stop accepting new connections, all of our functionality breaks. I have asynchronouse application, which utilize pool of workers, curl (multi interface) thread within libev, and I want to apply async database work within one of exising loops - libev or cppcms. I can't move all of my asynchronouse tasks to libev, because i need to send client response inside cppcms loop. There should be a way to stop accepting incoming connections, process all the tasks within event loop, send all responces for the array of detached http contexts and finally exit. Thanks. Andrey L |