Implement a cleaner and more efficient solution for the EAGAIN bug