Solution skill
WARNING: Connection pool is full
Complete solution
Shows how to fix wARNING: Connection pool is full. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
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.
Steps
- Issue twilio/twilio-python#714 (closed, 8 comments): ### Issue Summary We're using the twilio-python library to send out thousands of SMS messages concurrently using Python's concurrent features library.
- '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.
When to use
You are seeing this: Issue twilio/twilio-python#714 (closed, 8 comments): ### Issue Summary We're using the twilio-python library to send out thousands of SMS messages concurrently using Python's concurrent features library.
Sources
- https://github.com/twilio/twilio-python/issues/714
Evidence
In https://github.com/twilio/twilio-python/issues/714, the reporter asked: Issue twilio/twilio-python#714 (closed, 8 comments): ### 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 2 · 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>