connection/poolable: defer expiry of timed out connections
commitfef1fe7dcd44d17e5c8e3c0fe3c2698a8aac038e
authorEric Wong <e@80x24.org>
Sat, 1 Feb 2014 02:07:50 +0000 (1 02:07 +0000)
committerdormando <dormando@rydia.net>
Tue, 16 Dec 2014 06:45:40 +0000 (15 22:45 -0800)
treeee0db83e80980034e8052d82d54ca9fc924197ed
parent828ed8e00cf242f0ac1e42449d011563be29e0b9
connection/poolable: defer expiry of timed out connections

The timeout check may run on a socket before epoll_wait/kevent has
a chance to run, giving the application no chance for any readiness
callbacks to fire.

This prevents timeouts in the monitor if the database is slow during
synchronous UPDATE device calls (or there are just thousands of active
connections).
lib/MogileFS/Connection/Poolable.pm