title: MassTransit.RabbitMQ - Connect Failed: Broker unreachable
body: <p>After updating MassTransit packages to the latest version (4.1.0.1426-develop) I experience problems with registering more then 26 queues. For example, code below crushes with error</p>
  
  <blockquote>
    <p>[20:51:06 ERR] RabbitMQ Connect Failed: Broker unreachable:
    guest@localhost:5672/test</p>
  </blockquote>
  
  <pre><code>static void Main(string[] args)
  {
      var builder = new ConfigurationBuilder()
              .AddJsonFile("appsettings.json", true, true);
  
      var configuration = builder.Build();
  
      Log.Logger = new LoggerConfiguration()
          .MinimumLevel.Debug()
          .WriteTo.Console()
          .ReadFrom.Configuration(configuration)
          .CreateLogger();
  
      Log.Information("Starting Receiver...");
  
      var services = new ServiceCollection();
  
      services.AddSingleton(context =&gt; Bus.Factory.CreateUsingRabbitMq(x =&gt;
      {
          IRabbitMqHost host = x.Host(new Uri("rabbitmq://guest:guest@localhost:5672/test"), h =&gt; { });
  
          for (var i = 0; i &lt; 27; i++)
          {
              x.ReceiveEndpoint(host, $"receiver_queue{i}", e =&gt;
              {
                  e.Consumer&lt;TestHandler&gt;();
              });
          }
  
          x.UseSerilog();
      }));
  
      var container = services.BuildServiceProvider();
  
      var busControl = container.GetRequiredService&lt;IBusControl&gt;();
  
      busControl.Start();
  
      Log.Information("Receiver started...");
  }
  </code></pre>
  
  <p>So, it can't register 27 queues. However it works if I decrease the number to 26 :)</p>
  
  <p>If I downgrade MT NuGet packages to the latest stable 4.0.1 version it perfectly works and I can register up to 50 queues. </p>
  
  <p>Also, another observation - with 4.1.0.1426-develop versions it takes much longer to start this very tiny app. However when I test it with latest stable 4.0.1 and try to create 50 queues it starts almost immediately. </p>
  
  <p>Any ideas where this limitation came from and how to avoid it?</p>