Delphi 编Isapi(100分)

  • 主题发起人 主题发起人 sess
  • 开始时间 开始时间
S

sess

Unregistered / Unconfirmed
GUEST, unregistred user!
我想知道Delphi编的ISAPI到底可以支持多少用户同时连接,我调用了以下TWEBAPPLICATION类,他的最大连接数才32(MaxConnections),不知怎样才能把这个值在应用当中有效扩大,就向ServerSock控件中的CacheSize一样?
 
好像没有你说的问题吧:(


pecifies the maximum number of request messages the application can handle at any one time.

property MaxConnections: Integer;

Description

Set MaxConnections to adjust the number of HTTP request messages the application can handle simultaneously. Use the ActiveCount and InactiveCount properties to get a sense of the frequency and duration of request messages. Then set MaxConnections so that it is high enough to avoid exceptions when the application runs out of Web modules, but low enough not to degrade performance too severely by running too many simultaneous threads.

If a request message is received when ActiveCount is already at MaxConnections, the application raises an exception.

Note: MaxConnections is only meaningful for ISAPI applications. Each CGI application handles only a single request message
 
是的,我指的就是ISAPI。有书上说MAXCONNECTIONS可以设置,我不知道该怎样做?
能否用代码示意?thank you
 
我找到一个位置,不知在Application.Initialize;
前加一个Application.MaxConnections :=1024;
不知对否?
 
我试过,好像不行
 
好象没有限制吧?
 
附加功能 将问题提前
 
多人接受答案了。
 
后退
顶部