fixed perf on invalid sokcket