protocol_socket: Retry if BlockingIOError occurs in reset_input_buffer.
diff --git a/serial/urlhandler/protocol_socket.py b/serial/urlhandler/protocol_socket.py
index a35cf75..f68fcde 100644
--- a/serial/urlhandler/protocol_socket.py
+++ b/serial/urlhandler/protocol_socket.py
@@ -239,6 +239,9 @@
             ready, _, _ = select.select([self._socket], [], [], 0)
             try:
                 self._socket.recv(4096)
+            except BlockingIOError:
+                # Try again in case of windows WSAEWOULDBLOCK error.
+                pass
             except OSError as e:
                 # this is for Python 3.x where select.error is a subclass of
                 # OSError ignore EAGAIN errors. all other errors are shown