fix sockettimeout bug