fork from 1.1.2a with reconnection patch for connection pooling