mirror of https://github.com/voidlizard/hbs2
some TCP cleanup
This commit is contained in:
parent
4f1f1a0e7e
commit
6cca320c34
|
@ -268,9 +268,10 @@ spawnConnection tp env so sa = liftIO do
|
|||
sendLazy so frame --(LBS.toStrict frame)
|
||||
next
|
||||
|
||||
void $ waitAnyCatchCancel [rd,wr]
|
||||
ContT $ bracket none $ \_ -> mapM cancel [rd,wr]
|
||||
ContT $ bracket (pure connId) cleanupConn
|
||||
|
||||
-- lift $ cleanupConn connId
|
||||
void $ waitAnyCatchCancel [rd,wr]
|
||||
|
||||
-- gracefulClose so 1000
|
||||
debug $ "spawnConnection exit" <+> pretty sa
|
||||
|
|
Loading…
Reference in New Issue