fix import socket;fix worker timeout when timeout=1