使用Advantage.Data.Provider .NET应用程序中不使用广告服务器设置中不、应用程序、服务器、广告

2023-09-07 09:10:07 作者:酒影问醉看人间

我们正在连接到广告服务器与.NET应用程序使用的优势.NET数据提供程序。

We're connecting to an Ads server with a .net application using the Advantage .NET Data Provider.

的服务器类型=远程。最大。在服务器上的连接被设置为150

The ServerType = REMOTE. The max. connections on the server is set to 150.

当我们从一个客户端连接,我们得到了6303最大的优势数据库服务器连接超时的错误。原来它使用默认50最大。为应用程序的连接。

When we connect from a client we get a "6303 Maximum Advantage Database Server connections exceeded" error. Turns out it uses the default 50 max. connections for an application.

当我们把一个ads.ini文件与.NET应用程序的文件夹(也Advantage.Data.Provider.dll坐)的设置为150 MAX_CONNECTIONS,使用这些设置。

When we place an ads.ini file with MAX_CONNECTIONS set to 150 in the folder of the .net application (where also the Advantage.Data.Provider.dll sits), these settings are used.

它不回落到服务器类型= LOCAL,因为我们通过去除adsloc.dll和adslocal.cfg文件测试这一点。

It doesn't fall back to ServerType = LOCAL, because we tested this by removing the adsloc.dll and adslocal.cfg files.

为什么不AdsConnection使用服务器设置(即150)?

Why doesn't the AdsConnection use the server settings (being 150)?

推荐答案

在客户端和服务器有不同数量允许的连接。他们有单独的设置。

The client and server have a different number of allowed connections. They have separate settings.

的客户端设置限制连接的总数目的客户端应用程序可以打开到一个或多个服务器。

The client side setting limits the total number of connection the client application can open to one or more servers.

在服务器端设置限制连接总数的服务器可以从所有连接的客户开放。

The server side setting limits the total number of connection the server can have open from all connected clients.

在较新的服务器(自10.0?)的连接数是软限制,并且可以提高时必要

On newer servers (since 10.0?) the number of connections is a soft limit and may be raised when necessary.