fix bug: upload timeout socket close