do select() function socket read status check working