RUBY-788 Check pool accounting after socket error
Merge pull request #476 from estolfo/pool-test

RUBY-788 Check pool accounting after socket error