support timeout on working socket. fixed #6