fix and uprade socket_engine