Ruby on Rails: Connection Pool Fixes and Upload Security
Two connection-pool leak fixes merged November 19th to stop stranded connections from starving small pools, with follow-ups flagging a deadlock on JRuby and TruffleRuby. Rack multipart encoding patches and a bypass fix for write-prevention round out the security and correctness work.
Duration: PT2M41S
Episode overview
This episode is a short developer briefing from Ruby on Rails.
It explains recent repository work in plain language.
- Show: Ruby on Rails
- Published: 2026-11-20T14:13:46Z
- Audio duration: PT2M41S
Transcript excerpt
This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.
Hello, it's Friday, November 20th, 2026.
The headline is connection pool resilience: two fixes are now merged that stop leaked connections from starving small pools, but they triggered a follow-up regression on non-MRI rubies.
First theme, database connections. Pull request 59843, merged as commit 9f2a064, removes a reaped connection when its reset fails, instead of leaving it checked out to a request or job thread. Pull request 59844, merged as commit e22f32a, preserves leases across a disconnect during checkout, so a thread waiting on a…
Second, upload security. Merged pull requests 59874 and 59873 patch the Rack multipart parser on the 8 point 0 and 8 point 1 branches to block arbitrary filename encodings, with pull request 59881 extending the same behavior to older Rack versions, and pull request 59888 plus backports 59894 and 59895 fixing a…
Finally, guardrails. Pull request 59890 tightens the read-query check used while preventing writes, to reject data-modifying common table expressions and stacked statements starting with WITH or SELECT. Duplicate proposals 59893 and 59892 clear the job from the execution context after perform now, so later queries…
Expect decisions soon on…
Nearby episodes from Ruby on Rails
- Regression Sweep, Leaked State Fixes, and Security Guide Rewrite
- Request Hardening and Data Correctness
- Active Record Cleanup and Connection Fixes
- Association Safety Fixes and Postgres Index Handling
- Scoped Association Fixes and Query Casting
- Weekly Recap - Through Associations, Query Safety and Performance
- Performance Sweep and Shared Connection Fix
- Active Record Query Fixes and Safer Scaling