File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,9 @@ module Network.Socket.Internal
34
34
, throwSocketErrorIfMinus1Retry
35
35
, throwSocketErrorIfMinus1Retry_
36
36
, throwSocketErrorIfMinus1RetryMayBlock
37
+ #if defined(mingw32_HOST_OS)
37
38
, throwSocketErrorIfMinus1ButRetry
38
-
39
+ #endif
39
40
-- ** Guards that wait and retry if the operation would block
40
41
-- | These guards are based on 'throwSocketErrorIfMinus1RetryMayBlock'.
41
42
-- They wait for socket readiness if the action fails with @EWOULDBLOCK@
@@ -183,6 +184,9 @@ throwSocketErrorIfMinus1ButRetry exempt name act = do
183
184
else throwSocketError name
184
185
else return r
185
186
187
+ throwSocketErrorIfMinus1Retry
188
+ = throwSocketErrorIfMinus1ButRetry (const False )
189
+
186
190
throwSocketErrorCode name rc = do
187
191
pstr <- c_getWSError rc
188
192
str <- peekCString pstr
@@ -216,9 +220,6 @@ throwSocketErrorCode loc errno =
216
220
217
221
#endif
218
222
219
- throwSocketErrorIfMinus1Retry
220
- = throwSocketErrorIfMinus1ButRetry (const False )
221
-
222
223
-- | Like 'throwSocketErrorIfMinus1Retry', but if the action fails with
223
224
-- @EWOULDBLOCK@ or similar, wait for the socket to be read-ready,
224
225
-- and try again.
You can’t perform that action at this time.
0 commit comments