TSocketConnection 的连接数是什么一个情况,怎么控制?怎么设置?是否有默认值?我的TSocketConnection 只能连接8个客户端,超出8个就没反应了,这是怎么回事

解决方案 »

  1.   

    TSocketConnection没有你所谓的限制。如果你在开发三层结构的程序,那么检查一下你的数据库连接,还有你的数据库连接有没有使用connection Pool.有些内置的connection pool,当连接数达到最大(可以设定、修改的),那么新的连接就需要等待。比如DOA中的控件TOracleSessionPool,其中有一个属性Max,解释如下:The maximum allowed number of sessions in the pool. If a session tries to connect through the pool while this maximum has been reached, it will wait until another application thread disconnects a session, thereby releasing its connection back into the pool.
    希望对你有所帮助,不要陷入死胡同。