mirror of https://github.com/voidlizard/hbs2
wip, fix tcp
This commit is contained in:
parent
0d90b4df05
commit
21f60b6ce9
|
@ -249,11 +249,11 @@ runMessagingTCP env@MessagingTCP{..} = liftIO do
|
||||||
|
|
||||||
sweepCookies <- ContT $ withAsync $ forever do
|
sweepCookies <- ContT $ withAsync $ forever do
|
||||||
pause @'Seconds 300
|
pause @'Seconds 300
|
||||||
-- atomically do
|
atomically do
|
||||||
-- pips <- readTVar _tcpPeerConn
|
pips <- readTVar _tcpPeerConn
|
||||||
-- modifyTVar _tcpPeerToCookie (HM.filterWithKey (\k _ -> HM.member k pips))
|
modifyTVar _tcpPeerToCookie (HM.filterWithKey (\k _ -> HM.member k pips))
|
||||||
-- alive <- readTVar _tcpPeerToCookie <&> HS.fromList . HM.elems
|
alive <- readTVar _tcpPeerToCookie <&> HS.fromList . HM.elems
|
||||||
-- modifyTVar _tcpPeerCookie (HM.filterWithKey (\k _ -> HS.member k alive))
|
modifyTVar _tcpPeerCookie (HM.filterWithKey (\k _ -> HS.member k alive))
|
||||||
|
|
||||||
sweep <- ContT $ withAsync $ forever do
|
sweep <- ContT $ withAsync $ forever do
|
||||||
pause @'Seconds 300
|
pause @'Seconds 300
|
||||||
|
|
Loading…
Reference in New Issue