1234567891011121314151617181920212223242526module juptune.postgres.protocol.connection;
struct PostgresProtocolConfig
{
/++ FUNCTIONS ++/
///
PostgresProtocolConfig withMaxBufferSize(ulong value);
///
PostgresProtocolConfig withMinBufferSize(ulong value);
///
PostgresProtocolConfig withReadTimeout(Duration value);
///
PostgresProtocolConfig withWriteTimeout(Duration value);
/++ VARIABLES ++/
/// The maximum amount of buffer space (for reading and writing) that's allowed to be dynamically allocated when sending/reading messages.
ulong maxBufferSpace;
/// The minimum amount of buffer space (for reading and writing) to keep allocated at all times.
ulong minBufferSpace;
/// Timeout for any socket read operations.
Duration readTimeout;
/// Timeout for any socket write operations.
Duration writeTimeout;
}
General configuration for the low-level PostresProtocolstruct.
| Name | Description |
|---|---|
| withMaxBufferSize | |
| withMinBufferSize | |
| withReadTimeout | |
| withWriteTimeout |
| Name | Description |
|---|---|
| maxBufferSpace |
The maximum amount of buffer space (for reading and writing) that's allowed to be dynamically allocated when sending/reading messages. |
| minBufferSpace |
The minimum amount of buffer space (for reading and writing) to keep allocated at all times. |
| readTimeout |
Timeout for any socket read operations. |
| writeTimeout |
Timeout for any socket write operations. |