mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-02-02 09:20:39 +01:00
CORE-6004: Add a switch to disable the "TCP Loopback Fast Path" option
renamed the new config setting
This commit is contained in:
parent
a769533a4e
commit
a0692f497c
@ -774,7 +774,7 @@
|
|||||||
#
|
#
|
||||||
# Type: Boolean, default 1 (true)
|
# Type: Boolean, default 1 (true)
|
||||||
#
|
#
|
||||||
#TcpLoopbackFastPathOption = 1
|
#TcpLoopbackFastPath = 1
|
||||||
|
|
||||||
#
|
#
|
||||||
# Allows setting of IPV6_V6ONLY socket option. If enabled, IPv6 sockets
|
# Allows setting of IPV6_V6ONLY socket option. If enabled, IPv6 sockets
|
||||||
|
@ -124,7 +124,7 @@ Only meaningful for Windows SS on SMP systems.
|
|||||||
OldParameterOrdering boolean default false
|
OldParameterOrdering boolean default false
|
||||||
TcpRemoteBufferSize integer default 8192 (bytes)
|
TcpRemoteBufferSize integer default 8192 (bytes)
|
||||||
TcpNoNagle boolean default false
|
TcpNoNagle boolean default false
|
||||||
TcpLoopbackFastPathOption boolean default true
|
TcpLoopbackFastPath boolean default true
|
||||||
IpcMapSize integer default 4096 (bytes)
|
IpcMapSize integer default 4096 (bytes)
|
||||||
DefaultDbCachePages integer default SS: 2048. CS: 75
|
DefaultDbCachePages integer default SS: 2048. CS: 75
|
||||||
ConnectionTimeout integer default 180 (seconds)
|
ConnectionTimeout integer default 180 (seconds)
|
||||||
|
@ -148,7 +148,7 @@ const Config::ConfigEntry Config::entries[MAX_CONFIG_KEY] =
|
|||||||
{TYPE_INTEGER, "CpuAffinityMask", (ConfigValue) 0},
|
{TYPE_INTEGER, "CpuAffinityMask", (ConfigValue) 0},
|
||||||
{TYPE_INTEGER, "TcpRemoteBufferSize", (ConfigValue) 8192}, // bytes
|
{TYPE_INTEGER, "TcpRemoteBufferSize", (ConfigValue) 8192}, // bytes
|
||||||
{TYPE_BOOLEAN, "TcpNoNagle", (ConfigValue) true},
|
{TYPE_BOOLEAN, "TcpNoNagle", (ConfigValue) true},
|
||||||
{TYPE_BOOLEAN, "TcpLoopbackFastPathOption",(ConfigValue) true},
|
{TYPE_BOOLEAN, "TcpLoopbackFastPath", (ConfigValue) true},
|
||||||
{TYPE_INTEGER, "DefaultDbCachePages", (ConfigValue) -1}, // pages
|
{TYPE_INTEGER, "DefaultDbCachePages", (ConfigValue) -1}, // pages
|
||||||
{TYPE_INTEGER, "ConnectionTimeout", (ConfigValue) 180}, // seconds
|
{TYPE_INTEGER, "ConnectionTimeout", (ConfigValue) 180}, // seconds
|
||||||
{TYPE_INTEGER, "DummyPacketInterval", (ConfigValue) 0}, // seconds
|
{TYPE_INTEGER, "DummyPacketInterval", (ConfigValue) 0}, // seconds
|
||||||
@ -493,9 +493,9 @@ bool Config::getTcpNoNagle() const
|
|||||||
return get<bool>(KEY_TCP_NO_NAGLE);
|
return get<bool>(KEY_TCP_NO_NAGLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Config::getTcpLoopbackFastPathOption() const
|
bool Config::getTcpLoopbackFastPath() const
|
||||||
{
|
{
|
||||||
return get<bool>(KEY_TCP_LOOPBACK_FAST_PATH_OPTION);
|
return get<bool>(KEY_TCP_LOOPBACK_FAST_PATH);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Config::getIPv6V6Only() const
|
bool Config::getIPv6V6Only() const
|
||||||
|
@ -95,7 +95,7 @@ public:
|
|||||||
KEY_CPU_AFFINITY_MASK,
|
KEY_CPU_AFFINITY_MASK,
|
||||||
KEY_TCP_REMOTE_BUFFER_SIZE,
|
KEY_TCP_REMOTE_BUFFER_SIZE,
|
||||||
KEY_TCP_NO_NAGLE,
|
KEY_TCP_NO_NAGLE,
|
||||||
KEY_TCP_LOOPBACK_FAST_PATH_OPTION,
|
KEY_TCP_LOOPBACK_FAST_PATH,
|
||||||
KEY_DEFAULT_DB_CACHE_PAGES,
|
KEY_DEFAULT_DB_CACHE_PAGES,
|
||||||
KEY_CONNECTION_TIMEOUT,
|
KEY_CONNECTION_TIMEOUT,
|
||||||
KEY_DUMMY_PACKET_INTERVAL,
|
KEY_DUMMY_PACKET_INTERVAL,
|
||||||
@ -254,7 +254,7 @@ public:
|
|||||||
bool getTcpNoNagle() const;
|
bool getTcpNoNagle() const;
|
||||||
|
|
||||||
// Enable or disable the TCP Loopback Fast Path option
|
// Enable or disable the TCP Loopback Fast Path option
|
||||||
bool getTcpLoopbackFastPathOption() const;
|
bool getTcpLoopbackFastPath() const;
|
||||||
|
|
||||||
// Let IPv6 socket accept only IPv6 packets
|
// Let IPv6 socket accept only IPv6 packets
|
||||||
bool getIPv6V6Only() const;
|
bool getIPv6V6Only() const;
|
||||||
|
@ -3243,7 +3243,7 @@ static bool setNoNagleOption(rem_port* port)
|
|||||||
bool setFastLoopbackOption(rem_port* port, SOCKET s /*= 0*/)
|
bool setFastLoopbackOption(rem_port* port, SOCKET s /*= 0*/)
|
||||||
{
|
{
|
||||||
#ifdef WIN_NT
|
#ifdef WIN_NT
|
||||||
if (port->getPortConfig()->getTcpLoopbackFastPathOption())
|
if (port->getPortConfig()->getTcpLoopbackFastPath())
|
||||||
{
|
{
|
||||||
if (s == 0)
|
if (s == 0)
|
||||||
s = port->port_handle;
|
s = port->port_handle;
|
||||||
|
Loading…
Reference in New Issue
Block a user