connection-pool-0.2: Connection pool built on top of resource-pool and streaming-commons.

Copyright(c) 2015, Peter Trško
LicenseBSD3
Maintainerpeter.trsko@gmail.com
Stabilityunstable (internal module)
PortabilityDeriveDataTypeable, DeriveGeneric, NoImplicitPrelude
Safe HaskellSafe
LanguageHaskell2010

Data.ConnectionPool.Internal.HandlerParams

Description

Internal packages are here to provide access to internal definitions for library writers, but they should not be used in application code.

Preferably use qualified import, e.g.:

import qualified Data.ConnectionPool.Internal.HandlerParams as Internal

This module doesn't depend on streaming-commons. Another notable thing is that this package is not OS specific. Please, bear this in mind when doing modifications.

Since version 0.1.3.

Synopsis

Documentation

data HandlerParams Source

Additional parameters passed to connection handler that aren't part of specific connection context.

Since version 0.1.3.

Constructors

HandlerParams 

Fields

_readBufferSize :: !Int

See readBufferSize for details.

Instances

Data HandlerParams Source 
Show HandlerParams Source 
Generic HandlerParams Source 
Default HandlerParams Source
readBufferSize = 32768

Package streaming-commons < 0.1.13 used value 4096, streaming-commons == 0.1.13 used 32768, which is 8 * 4096, based on: issue #22

HasConnectionPool HandlerParams Socket () (ConnectionPool * UnixClient) Source

Since version 0.2.

HasConnectionPool HandlerParams Socket SockAddr (ConnectionPool * TcpClient) Source

Since version 0.2.

type Rep HandlerParams Source 

readBufferSize :: Functor f => (Int -> f Int) -> HandlerParams -> f HandlerParams Source

Lens for accessing read buffer size that handler should use when reading data from connection.

Since version 0.1.3.