fix performance issue

The sockets wasn't correctly passed to the pool and prematuraly closed. This
change fix it. While I'm here improve the socket pool handling to mot use more
sockets than the max wanted and remove premature optimisations. The default
max connections number have been increased to ease the change.

fix #104.