File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
typed-protocols-examples/test/Network/TypedProtocol Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -349,7 +349,11 @@ prop_namedPipePipelined_IO (NonNegative n) = ioProperty $ do
349349prop_socketPipelined_IO :: NonNegative Int
350350 -> Property
351351prop_socketPipelined_IO (NonNegative n) = ioProperty $ do
352- ai : _ <- Socket. getAddrInfo Nothing (Just " 127.0.0.1" ) Nothing
352+ ai : _ <- Socket. getAddrInfo (Just Socket. defaultHints
353+ { Socket. addrFamily = Socket. AF_INET ,
354+ Socket. addrFlags = [Socket. AI_PASSIVE ],
355+ Socket. addrSocketType = Socket. Stream })
356+ (Just " 127.0.0.1" ) Nothing
353357 bracket
354358 ((,) <$> Socket. openSocket ai
355359 <*> Socket. openSocket ai)
Original file line number Diff line number Diff line change @@ -265,7 +265,11 @@ prop_namedPipePipelined_IO f xs = ioProperty $ do
265265prop_socketPipelined_IO :: (Int -> Int -> (Int , Int )) -> [Int ]
266266 -> Property
267267prop_socketPipelined_IO f xs = ioProperty $ do
268- ai : _ <- Socket. getAddrInfo Nothing (Just " 127.0.0.1" ) Nothing
268+ ai : _ <- Socket. getAddrInfo (Just Socket. defaultHints
269+ { Socket. addrFamily = Socket. AF_INET ,
270+ Socket. addrFlags = [Socket. AI_PASSIVE ],
271+ Socket. addrSocketType = Socket. Stream })
272+ (Just " 127.0.0.1" ) Nothing
269273 bracket
270274 ((,) <$> Socket. openSocket ai
271275 <*> Socket. openSocket ai)
You can’t perform that action at this time.
0 commit comments