bug 870 and modify socket connectpool for listen