For pCampbot, set max number of permitted connections to an endpoint to int.MaxValue

This is to avoid issues where many bots connect to a single end point with multiple regions, where each region requires a long-lived poll connection for each bot.
bullet-2.82
Justin Clark-Casey (justincc) 2014-08-12 18:46:09 +01:00
parent fbdf507e98
commit f1cec684e2
1 changed files with 4 additions and 0 deletions

View File

@ -147,6 +147,10 @@ namespace pCampBot
/// </summary>
public BotManager()
{
// We set this to avoid issues with bots running out of HTTP connections if many are run from a single machine
// to multiple regions.
Settings.MAX_HTTP_CONNECTIONS = int.MaxValue;
InitBotSendAgentUpdates = true;
InitBotRequestObjectTextures = true;