Fixed socket descriptor detection method used by nodelay option