Skip to content

Commit

Permalink
Updated network dependency
Browse files Browse the repository at this point in the history
network-3.1.2.2 package exposes `StructLinger`, see
haskell/network#491
  • Loading branch information
coot committed Oct 28, 2022
1 parent 8bba172 commit a849413
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 72 deletions.
3 changes: 1 addition & 2 deletions network-mux/network-mux.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ library
-- The Windows version of network-3.1.2 is missing
-- functions, see
-- https://github.com/haskell/network/issues/484
network >=3.1.2 && <3.2,
network >=3.1.2.2 && <3.2,
process >=1.6 && <1.7,
statistics-linreg
>=0.3 && <0.4,
Expand Down Expand Up @@ -182,7 +182,6 @@ executable cardano-ping
import: demo-deps
hs-source-dirs: tools
main-is: cardano-ping.hs
other-modules: Linger
build-depends: base,
aeson,
network-mux,
Expand Down
32 changes: 0 additions & 32 deletions network-mux/tools/Linger.hsc

This file was deleted.

4 changes: 1 addition & 3 deletions network-mux/tools/cardano-ping.hs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import Data.Maybe (fromMaybe, isNothing)
import Data.TDigest
import Data.Text (unpack)
import Data.Word
import Network.Socket (AddrInfo)
import Network.Socket (AddrInfo, StructLinger (..))
import qualified Network.Socket as Socket
import System.Console.GetOpt
import System.Environment (getArgs, getProgName)
Expand All @@ -40,8 +40,6 @@ import Network.Mux.Bearer.Socket
import Network.Mux.Timeout
import Network.Mux.Types

import Linger

mainnetMagic :: Word32
mainnetMagic = 764824073

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ library

Simulation.Network.Snocket

other-modules: Ouroboros.Network.Linger
-- other-extensions:
build-depends: base >=4.12 && <4.15
, async >=2.1 && <2.3
Expand All @@ -92,7 +91,7 @@ library
, io-classes >=0.1 && < 0.3
, monoidal-synchronisation
>=0.1 && < 0.2
, network >=3.1.2 && < 3.2
, network >=3.1.2.2 && < 3.2
, network-mux >=0.1 && < 0.2
, ouroboros-network-testing
, strict-stm >=0.1 && < 0.2
Expand Down
32 changes: 0 additions & 32 deletions ouroboros-network-framework/src/Ouroboros/Network/Linger.hsc

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ import qualified System.Win32.NamedPipes as Win32

import Network.Mux.Bearer.NamedPipe (namedPipeAsBearer)
#endif
import Network.Socket (StructLinger (..))
import qualified Network.Socket as Socket

import qualified Network.Mux.Bearer.Socket as Mx
import Network.Mux.Trace (MuxTrace)
import Network.Mux.Types (MuxBearer)

import Ouroboros.Network.IOManager
import Ouroboros.Network.Linger (StructLinger (..))


-- | Named pipes and Berkeley sockets have different API when accepting
Expand Down

0 comments on commit a849413

Please sign in to comment.