diff --git a/src/oatpp/core/provider/Pool.hpp b/src/oatpp/core/provider/Pool.hpp index a5ff11b2..5252ef68 100644 --- a/src/oatpp/core/provider/Pool.hpp +++ b/src/oatpp/core/provider/Pool.hpp @@ -353,10 +353,11 @@ public: static std::shared_ptr createShared(const std::shared_ptr>& provider, v_int64 maxResources, - const std::chrono::duration& maxResourceTTL) + const std::chrono::duration& maxResourceTTL, + const std::chrono::duration& timeout) { /* "new" is called directly to keep constructor private */ - auto ptr = std::shared_ptr(new PoolTemplate(provider, maxResources, maxResourceTTL.count())); + auto ptr = std::shared_ptr(new PoolTemplate(provider, maxResources, maxResourceTTL.count(), timeout)); startCleanupTask(ptr); return ptr; }