
The reads now read as much of the data as is available to reduce the number of distinct malloc calls that need to be made. The SSL_read also now allocates the buffer before reading into it so that the amount of copying is reduced. Also removed some of the not quite helpful debug messages.
55 lines
999 B
C
55 lines
999 B
C
/*
|
|
* Copyright (c) 2018 MariaDB Corporation Ab
|
|
*
|
|
* Use of this software is governed by the Business Source License included
|
|
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
|
|
*
|
|
* Change Date: 2022-01-01
|
|
*
|
|
* On the date above, in accordance with the Business Source License, use
|
|
* of this software will be governed by version 2 or later of the General
|
|
* Public License.
|
|
*/
|
|
#pragma once
|
|
|
|
/**
|
|
* @file limits.h
|
|
*
|
|
* This file contains defines for hard limits of MaxScale.
|
|
*/
|
|
|
|
#include <maxscale/cdefs.h>
|
|
|
|
MXS_BEGIN_DECLS
|
|
|
|
|
|
/**
|
|
* MXS_SO_RCVBUF
|
|
*
|
|
* The size of the network input buffer.
|
|
*/
|
|
#define MXS_SO_RCVBUF_SIZE (128 * 1024)
|
|
|
|
/**
|
|
* MXS_SO_SNDBUF
|
|
*
|
|
* The size of the network output buffer.
|
|
*/
|
|
#define MXS_SO_SNDBUF_SIZE (128 * 1024)
|
|
|
|
/**
|
|
* MXS_MAX_THREADS
|
|
*
|
|
* The maximum number of threads/workers.
|
|
*/
|
|
#define MXS_MAX_THREADS 128
|
|
|
|
/**
|
|
* MXS_MAX_ROUTING_THREADS
|
|
*
|
|
* The maximum number of routing threads/workers.
|
|
*/
|
|
#define MXS_MAX_ROUTING_THREADS 100
|
|
|
|
MXS_END_DECLS
|