git.iko.soy/distributed-process
on master help sign in
Obsolete comment
eaa5663Edsko de Vries
network-transport-2/src/Network/Transport/TCP.hs−3
@@ -273,9 +273,6 @@ apiClose (ourEndPoint, theirEndPoint) connId connAlive = void . tryIO $ do
273 return False
273 return False
274
274
275-- | Send data across a connection
275-- | Send data across a connection
276−--
277−-- TODO: we should have some per-connection state so that the user cannot send
278−-- to the connection after they closed it, or close it more than once
279apiSend :: RemoteEndPoint -> ConnectionId -> MVar Bool -> [ByteString] -> IO (Either (FailedWith SendErrorCode) ())
276apiSend :: RemoteEndPoint -> ConnectionId -> MVar Bool -> [ByteString] -> IO (Either (FailedWith SendErrorCode) ())
280apiSend theirEndPoint connId connAlive payload =
277apiSend theirEndPoint connId connAlive payload =
281 modifyMVar connAlive $ \alive -> do
278 modifyMVar connAlive $ \alive -> do