We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3726bfb commit 9680834Copy full SHA for 9680834
uhttp/client.py
@@ -1025,11 +1025,14 @@ def wait(self, timeout=None):
1025
1026
# SSL may have buffered data that select() can't see
1027
select_timeout = 0 if self._has_ssl_pending() else remaining
1028
- r, w, _ = _select.select(
+ r, w, x = _select.select(
1029
self.read_sockets,
1030
self.write_sockets,
1031
- [], select_timeout
+ self.write_sockets, select_timeout
1032
)
1033
+ # Windows signals connect errors via except set
1034
+ if x:
1035
+ w = list(set(w) | set(x))
1036
1037
# Always call process_events to check request timeout
1038
response = self.process_events(r, w)
0 commit comments