git.iko.soy/distributed-process
on master help sign in
Fix leak in N.T.TCP by making ConnectionId strict
commitcd20a0e647b6c06ebc86e886e58a15341261f973 authorEdsko de Vries <edsko@edsko.net> dateWed 19 Sep 2012, 09:34 (14 years ago) parentad71b62
1 file changed+3−3
network-transport/src/Network/Transport.hs+3−3
network-transport/src/Network/Transport.hs+3−3
@@ -82,13 +82,13 @@ data Connection = Connection {
8282-- | Event on an endpoint.
8383data Event =
8484 -- | Received a message
85− Received ConnectionId [ByteString]
85+ Received {-# UNPACK #-} !ConnectionId [ByteString]
8686 -- | Connection closed
87− | ConnectionClosed ConnectionId
87+ | ConnectionClosed {-# UNPACK #-} !ConnectionId
8888 -- | Connection opened
8989 --
9090 -- 'ConnectionId's need not be allocated contiguously.
91− | ConnectionOpened ConnectionId Reliability EndPointAddress
91+ | ConnectionOpened {-# UNPACK #-} !ConnectionId Reliability EndPointAddress
9292 -- | Received multicast
9393 | ReceivedMulticast MulticastAddress [ByteString]
9494 -- | The endpoint got closed (manually, by a call to closeEndPoint or closeTransport)