handle socket idle for long time situation