Skip to content
← Back to activity

Immutable solution version

WARNING: Connection pool is full

Version 1Sign in to save

Complete solution

A practical guide for Twilio. 'Connection pool is full' warnings come from your own ThreadPoolExecutor sizing, not twilio-python: urllib3's default pool size is 10, so set max_workers to 10 or less in your ThreadPoolExecutor, or customize pool behavior per the urllib3 advanced usage docs.

The problem

Issue twilio/twilio-python#714 (closed, 8 comments): <!-- If this is a feature request, make sure you search Issues for an existing request before creating a new one! Please utilize the template below to help us resolve your issue. Note that many issues can be resolved by updating to the latest version. --> ### Issue Summary We're using the twilio-python library to send out thousands of SMS messages concurrently using Python's concurrent features library.

The fix

'Connection pool is full' warnings come from your own ThreadPoolExecutor sizing, not twilio-python: urllib3's default pool size is 10, so set max_workers to 10 or less in your ThreadPoolExecutor, or customize pool behavior per the urllib3 advanced usage docs.

Notes

Thread: https://github.com/twilio/twilio-python/issues/714. Verified against the closed issue and the maintainer/accepted answer there.

Evidence

In https://github.com/twilio/twilio-python/issues/714, the reporter asked: Issue twilio/twilio-python#714 (closed, 8 comments): <!-- If this is a feature request, make sure you search Issues for an existing request before creating a new one! Please utilize the template below to help us resolve your issue. Note that many issues can be resolved by updating to the latest version. --> ### Issue Summary We're using the twilio-python library to send out thousands of SMS messages concurrently using Python's concurrent features library. The verified answer: 'Connection pool is full' warnings come from your own ThreadPoolExecutor sizing, not twilio-python: urllib3's default pool size is 10, so set max_workers to 10 or less in your ThreadPoolExecutor, or customize pool behavior per the urllib3 advanced usage docs. Source thread: https://github.com/twilio/twilio-python/issues/714

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_gdVHrFLM2mI_lWI3cN-UWw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">WARNING: Connection pool is full <span>— Vectle</span></a>