Subject: | cb_connect_fail not called when successful connected socket fails |
cb_connect_fail not called when successful connected socket fails, it's is
instead called on the next connection attempt which prevents any retry or
proper error reporting logic
Steps to reproduce:
1. run memcached server
2. create a script which will periodically check for certain value set
cb_connect_fail handler
3. After at least one successful request to the server, kill memcache
server
4. Next request which will detect dead socket will not call the
cb_connect_fail handler, the request after it will call it