Use select() before accept() to prevent infinite blocking. refs #117