Re: [Cppcms-users] @pool_size passed to cppdb::connection
Brought to you by:
artyom-beilis
From: Artyom B. <art...@gm...> - 2015-12-27 08:27:52
|
On Sun, Dec 27, 2015 at 9:27 AM, CN <cn...@fa...> wrote: > Suppose each synchronous application establishes exact one > cppdb::connection passed with @pool_size=3. Imagine now there are 3 > synchronous applications concurrently running in 3 threads. > > What will happen if a synchronous application is launched to run as the > 4th thread? Will it be blocked at > No the connection will be created but when on attempt to recycle it into the pool the "full pool" will be detected and the connection will be deleted. i.e. @pool_size=3 means that no more than 3 connections are kept for reuse. Artyom |