mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-06-04 10:51:27 +00:00
refactor transport encoding, make client IO error "temporary" (#634)
* file server/client framework * refactor * make IOError temporary * fix test
This commit is contained in:
committed by
GitHub
parent
b342b1dc59
commit
eb1723acce
@@ -260,7 +260,7 @@ cancelSub sub =
|
||||
|
||||
receive :: Transport c => THandle c -> Client -> M ()
|
||||
receive th Client {rcvQ, sndQ, activeAt} = forever $ do
|
||||
ts <- L.toList <$> tGet th
|
||||
ts <- L.toList <$> liftIO (tGet th)
|
||||
atomically . writeTVar activeAt =<< liftIO getSystemTime
|
||||
as <- partitionEithers <$> mapM cmdAction ts
|
||||
write sndQ $ fst as
|
||||
|
||||
Reference in New Issue
Block a user