keter-2.1.0: Web application deployment manager, focusing on Haskell web frameworks
Safe HaskellSafe-Inferred
LanguageHaskell98

Keter.PortPool

Description

Manages a pool of available ports and allocates them.

Synopsis

Types

Actions

getPort :: PortPool -> KeterM cfg (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