We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5bfd88 commit 78704fcCopy full SHA for 78704fc
Network/Socket/Shutdown.hs
@@ -1,4 +1,5 @@
1
{-# LANGUAGE CPP #-}
2
+{-# LANGUAGE ScopedTypeVariables #-}
3
4
#include "HsNetDef.h"
5
@@ -59,7 +60,8 @@ gracefulClose s tmout0 = sendRecvFIN `E.finally` close s
59
60
-- Sending TCP FIN.
61
ex <- E.try $ shutdown s ShutdownSend
62
case ex of
- Left (E.SomeException _) -> return ()
63
+ -- Don't catch asynchronous exceptions
64
+ Left (_ :: E.IOException) -> return ()
65
Right () -> do
66
-- Giving CPU time to other threads hoping that
67
-- FIN arrives meanwhile.
0 commit comments