@@ -358,8 +358,8 @@ prop_mux_snd_recv (DummyRun messages) = ioProperty $ do
358
358
359
359
serverMux <- Mx. new [serverApp]
360
360
361
- withAsync (Mx. run clientTracer clientMux clientBearer) $ \ clientAsync ->
362
- withAsync (Mx. run serverTracer serverMux serverBearer) $ \ serverAsync -> do
361
+ withAsync (Mx. run clientTracer 0 clientMux clientBearer) $ \ clientAsync ->
362
+ withAsync (Mx. run serverTracer 0 serverMux serverBearer) $ \ serverAsync -> do
363
363
364
364
r <- step clientMux clientApp serverMux serverApp messages
365
365
Mx. stop serverMux
@@ -434,10 +434,10 @@ prop_mux_snd_recv_bi (DummyRun messages) = ioProperty $ do
434
434
435
435
436
436
clientMux <- Mx. new clientApps
437
- clientAsync <- async $ Mx. run clientTracer clientMux clientBearer
437
+ clientAsync <- async $ Mx. run clientTracer 0 clientMux clientBearer
438
438
439
439
serverMux <- Mx. new serverApps
440
- serverAsync <- async $ Mx. run serverTracer serverMux serverBearer
440
+ serverAsync <- async $ Mx. run serverTracer 1 serverMux serverBearer
441
441
442
442
r <- step clientMux clientApps serverMux serverApps messages
443
443
Mx. stop clientMux
@@ -541,7 +541,7 @@ prop_mux_snd_recv_compat messages = ioProperty $ do
541
541
)
542
542
543
543
-- Wait for the first MuxApplication to finish, then stop the mux.
544
- withAsync (Mx. run clientTracer clientMux clientBearer) $ \ aid -> do
544
+ withAsync (Mx. run clientTracer 0 clientMux clientBearer) $ \ aid -> do
545
545
_ <- atomically res
546
546
Mx. stop clientMux
547
547
wait aid
@@ -559,7 +559,7 @@ prop_mux_snd_recv_compat messages = ioProperty $ do
559
559
)
560
560
561
561
-- Wait for the first MuxApplication to finish, then stop the mux.
562
- withAsync (Mx. run serverTracer serverMux serverBearer) $ \ aid -> do
562
+ withAsync (Mx. run serverTracer 1 serverMux serverBearer) $ \ aid -> do
563
563
_ <- atomically res
564
564
Mx. stop serverMux
565
565
wait aid
@@ -719,7 +719,7 @@ runMuxApplication initApps initBearer respApps respBearer = do
719
719
respMux <- Mx. new $ map (\ (pn,_) ->
720
720
MiniProtocolInfo (Mx. MiniProtocolNum pn) Mx. ResponderDirectionOnly defaultMiniProtocolLimits)
721
721
respApps'
722
- respAsync <- async $ Mx. run serverTracer respMux respBearer
722
+ respAsync <- async $ Mx. run serverTracer 1 respMux respBearer
723
723
getRespRes <- sequence [ Mx. runMiniProtocol
724
724
respMux
725
725
(Mx. MiniProtocolNum pn)
@@ -732,7 +732,7 @@ runMuxApplication initApps initBearer respApps respBearer = do
732
732
initMux <- Mx. new $ map (\ (pn,_) ->
733
733
MiniProtocolInfo (Mx. MiniProtocolNum pn) Mx. InitiatorDirectionOnly defaultMiniProtocolLimits)
734
734
initApps'
735
- initAsync <- async $ Mx. run clientTracer initMux initBearer
735
+ initAsync <- async $ Mx. run clientTracer 0 initMux initBearer
736
736
getInitRes <- sequence [ Mx. runMiniProtocol
737
737
initMux
738
738
(Mx. MiniProtocolNum pn)
@@ -952,17 +952,17 @@ prop_mux_starvation (Uneven response0 response1) =
952
952
}
953
953
954
954
serverMux <- Mx. new [serverApp2, serverApp3]
955
- serverMux_aid <- async $ Mx. run serverTracer serverMux serverBearer
955
+ serverMux_aid <- async $ Mx. run serverTracer 0 serverMux serverBearer
956
956
serverRes2 <- Mx. runMiniProtocol serverMux (miniProtocolNum serverApp2) (miniProtocolDir serverApp2)
957
957
Mx. StartOnDemand server_short
958
958
serverRes3 <- Mx. runMiniProtocol serverMux (miniProtocolNum serverApp3) (miniProtocolDir serverApp3)
959
959
Mx. StartOnDemand server_long
960
960
961
961
clientMux <- Mx. new [clientApp2, clientApp3]
962
- clientMux_aid <- async $ Mx. run (clientTracer <> headerTracer) clientMux clientBearer
963
- clientRes2 <- Mx. runMiniProtocol clientMux (Mx. miniProtocolNum clientApp2) (Mx. miniProtocolDir clientApp2)
962
+ clientMux_aid <- async $ Mx. run (clientTracer <> headerTracer) 1 clientMux clientBearer
963
+ clientRes2 <- Mx. runMiniProtocol clientMux (miniProtocolNum clientApp2) (miniProtocolDir clientApp2)
964
964
Mx. StartEagerly client_short
965
- clientRes3 <- Mx. runMiniProtocol clientMux (Mx. miniProtocolNum clientApp3) (Mx. miniProtocolDir clientApp3)
965
+ clientRes3 <- Mx. runMiniProtocol clientMux (miniProtocolNum clientApp3) (miniProtocolDir clientApp3)
966
966
Mx. StartEagerly client_long
967
967
968
968
@@ -1157,7 +1157,7 @@ prop_demux_sdu a = do
1157
1157
serverRes <- Mx. runMiniProtocol serverMux (Mx. miniProtocolNum serverApp) (Mx. miniProtocolDir serverApp)
1158
1158
Mx. StartEagerly server_mp
1159
1159
1160
- said <- async $ Mx. run serverTracer serverMux serverBearer
1160
+ said <- async $ Mx. run serverTracer 1 serverMux serverBearer
1161
1161
return (server_r, said, serverRes, serverMux)
1162
1162
1163
1163
-- Server that expects to receive a specific ByteString.
@@ -1432,7 +1432,7 @@ prop_mux_restart_m (DummyRestartingInitiatorApps apps) = do
1432
1432
let minis = map (appToInfo Mx. InitiatorDirectionOnly . fst ) apps
1433
1433
1434
1434
mux <- Mx. new minis
1435
- mux_aid <- async $ Mx. run nullTracer mux bearer
1435
+ mux_aid <- async $ Mx. run nullTracer 0 mux bearer
1436
1436
getRes <- sequence [ Mx. runMiniProtocol
1437
1437
mux
1438
1438
(daNum $ fst app)
@@ -1479,7 +1479,7 @@ prop_mux_restart_m (DummyRestartingResponderApps rapps) = do
1479
1479
minis = map (appToInfo Mx. ResponderDirectionOnly ) apps
1480
1480
1481
1481
mux <- Mx. new minis
1482
- mux_aid <- async $ Mx. run nullTracer mux bearer
1482
+ mux_aid <- async $ Mx. run nullTracer 1 mux bearer
1483
1483
getRes <- sequence [ Mx. runMiniProtocol
1484
1484
mux
1485
1485
(daNum $ fst app)
@@ -1528,7 +1528,7 @@ prop_mux_restart_m (DummyRestartingInitiatorResponderApps rapps) = do
1528
1528
respMinis = map (appToInfo Mx. ResponderDirection ) apps
1529
1529
1530
1530
mux <- Mx. new $ initMinis ++ respMinis
1531
- mux_aid <- async $ Mx. run nullTracer mux bearer
1531
+ mux_aid <- async $ Mx. run nullTracer 1 mux bearer
1532
1532
getInitRes <- sequence [ Mx. runMiniProtocol
1533
1533
mux
1534
1534
(daNum $ fst app)
@@ -1603,7 +1603,7 @@ prop_mux_start_m bearer _ checkRes (DummyInitiatorApps apps) runTime = do
1603
1603
minRunTime = minimum $ runTime : (map daRunTime $ filter (\ app -> daAction app == DummyAppFail ) apps)
1604
1604
1605
1605
mux <- Mx. new minis
1606
- mux_aid <- async $ Mx. run nullTracer mux bearer
1606
+ mux_aid <- async $ Mx. run nullTracer 0 mux bearer
1607
1607
killer <- async $ (threadDelay runTime) >> Mx. stop mux
1608
1608
getRes <- sequence [ Mx. runMiniProtocol
1609
1609
mux
@@ -1624,7 +1624,7 @@ prop_mux_start_m bearer trigger checkRes (DummyResponderApps apps) runTime = do
1624
1624
minRunTime = minimum $ runTime : (map (\ a -> daRunTime a + daStartAfter a) $ filter (\ app -> daAction app == DummyAppFail ) apps)
1625
1625
1626
1626
mux <- Mx. new minis
1627
- mux_aid <- async $ Mx. run verboseTracer mux bearer
1627
+ mux_aid <- async $ Mx. run verboseTracer 0 mux bearer
1628
1628
getRes <- sequence [ Mx. runMiniProtocol
1629
1629
mux
1630
1630
(daNum app)
@@ -1650,7 +1650,7 @@ prop_mux_start_m bearer _trigger _checkRes (DummyResponderAppsKillMux apps) runT
1650
1650
let minis = map (appToInfo Mx. ResponderDirectionOnly ) apps
1651
1651
1652
1652
mux <- Mx. new minis
1653
- mux_aid <- async $ Mx. run verboseTracer mux bearer
1653
+ mux_aid <- async $ Mx. run verboseTracer 1 mux bearer
1654
1654
getRes <- sequence [ Mx. runMiniProtocol
1655
1655
mux
1656
1656
(daNum app)
@@ -1673,7 +1673,7 @@ prop_mux_start_m bearer trigger checkRes (DummyInitiatorResponderApps apps) runT
1673
1673
minRunTime = minimum $ runTime : (map (\ a -> daRunTime a) $ filter (\ app -> daAction app == DummyAppFail ) apps)
1674
1674
1675
1675
mux <- Mx. new $ initMinis ++ respMinis
1676
- mux_aid <- async $ Mx. run verboseTracer mux bearer
1676
+ mux_aid <- async $ Mx. run verboseTracer 0 mux bearer
1677
1677
getInitRes <- sequence [ Mx. runMiniProtocol
1678
1678
mux
1679
1679
(daNum app)
@@ -1835,7 +1835,7 @@ close_experiment
1835
1835
])
1836
1836
Mx. stop $ \ mux ->
1837
1837
withNetworkCtx clientCtx $ \ clientBearer ->
1838
- withAsync (Mx. run ((Client ,) `contramap` muxTracer) mux clientBearer) $ \ _muxAsync ->
1838
+ withAsync (Mx. run ((Client ,) `contramap` muxTracer) 0 mux clientBearer) $ \ _muxAsync ->
1839
1839
Mx. runMiniProtocol
1840
1840
mux miniProtocolNum
1841
1841
Mx. InitiatorDirectionOnly Mx. StartEagerly
@@ -1853,7 +1853,7 @@ close_experiment
1853
1853
])
1854
1854
Mx. stop $ \ mux ->
1855
1855
withNetworkCtx serverCtx $ \ serverBearer ->
1856
- withAsync (Mx. run ((Server ,) `contramap` muxTracer) mux serverBearer) $ \ _muxAsync -> do
1856
+ withAsync (Mx. run ((Server ,) `contramap` muxTracer) 0 mux serverBearer) $ \ _muxAsync -> do
1857
1857
Mx. runMiniProtocol
1858
1858
mux miniProtocolNum
1859
1859
Mx. ResponderDirectionOnly Mx. StartOnDemand
0 commit comments