Fix bug #1211. Ensure accept socket is in non-blocking state in case of network