File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,6 @@ import qualified Control.Exception as E
12
12
import Foreign.Marshal.Alloc (mallocBytes , free )
13
13
14
14
import Control.Concurrent (threadDelay )
15
- #if !defined(mingw32_HOST_OS)
16
- import Control.Concurrent (tryPutMVar , takeMVar , newEmptyMVar )
17
- import qualified GHC.Event as Ev
18
- import System.Posix.Types (Fd (.. ))
19
- #endif
20
15
21
16
import Network.Socket.Buffer
22
17
import Network.Socket.Imports
@@ -45,10 +40,6 @@ shutdown s stype = void $ withFdSocket s $ \fd ->
45
40
foreign import CALLCONV unsafe " shutdown"
46
41
c_shutdown :: CInt -> CInt -> IO CInt
47
42
48
- #if !defined(mingw32_HOST_OS)
49
- data Wait = MoreData | TimeoutTripped
50
- #endif
51
-
52
43
-- | Closing a socket gracefully.
53
44
-- This sends TCP FIN and check if TCP FIN is received from the peer.
54
45
-- The second argument is time out to receive TCP FIN in millisecond.
You can’t perform that action at this time.
0 commit comments