Refactor (simple) connection pool to make it generic.
switch net2 connection pool to use resource pool