keter-1.4.3.1: Web application deployment manager, focusing on Haskell web frameworks

Safe HaskellNone
LanguageHaskell98

Keter.PortPool

Contents

Description

Manages a pool of available ports and allocates them.

Synopsis

Types

Actions

getPort :: (LogMessage -> IO ()) -> PortPool -> IO (Either SomeException Port) Source

Gets an unassigned port number.

releasePort :: PortPool -> Port -> IO () Source

Return a port to the recycled collection of the pool. Note that recycling puts the new ports at the end of the queue (FIFO), so that if an application holds onto the port longer than expected, there should be no issues.

Initialize