support timeout on working socket. fixed #6

timeout both on working sockets and free sockets.