I simply stopped and started RabbitMQ service and run my reproduce program and got the following rabbitmq server log.
=INFO REPORT==== 1-Jul-2016::11:26:13 ===
Starting RabbitMQ 3.6.1 on Erlang 18.2.1
Copyright (C) 2007-2016 Pivotal Software, Inc.
=INFO REPORT==== 1-Jul-2016::11:26:13 ===
node : rabbit@NB-DTP-269
home dir : C:\Windows
config file(s) : c:/Users/YNiu/AppData/Roaming/RabbitMQ/rabbitmq.config
cookie hash : Uy7p4Ds6oBg0M0XZMefMnA==
log : C:/Users/YNiu/AppData/Roaming/RabbitMQ/log/RABBIT~1.LOG
sasl log : C:/Users/YNiu/AppData/Roaming/RabbitMQ/log/RABBIT~2.LOG
database dir : c:/Users/YNiu/AppData/Roaming/RabbitMQ/db/RABBIT~1
=WARNING REPORT==== 1-Jul-2016::11:26:13 ===
Kernel poll (epoll, kqueue, etc) is disabled. Throughput and CPU utilization may worsen.
=INFO REPORT==== 1-Jul-2016::11:26:15 ===
Memory limit set to 9793MB of 24484MB total.
=INFO REPORT==== 1-Jul-2016::11:26:15 ===
Disk free limit set to 50MB
=INFO REPORT==== 1-Jul-2016::11:26:15 ===
Limiting to approx 8092 file handles (7280 sockets)
=INFO REPORT==== 1-Jul-2016::11:26:15 ===
FHC read buffering: OFF
FHC write buffering: ON
=INFO REPORT==== 1-Jul-2016::11:26:15 ===
Priority queues enabled, real BQ is rabbit_variable_queue
=INFO REPORT==== 1-Jul-2016::11:26:15 ===
Management plugin: using rates mode 'basic'
=INFO REPORT==== 1-Jul-2016::11:26:15 ===
msg_store_transient: using rabbit_msg_store_ets_index to provide index
=INFO REPORT==== 1-Jul-2016::11:26:15 ===
msg_store_persistent: using rabbit_msg_store_ets_index to provide index
=INFO REPORT==== 1-Jul-2016::11:26:15 ===
started TCP Listener on [::]:5672
=INFO REPORT==== 1-Jul-2016::11:26:15 ===
=INFO REPORT==== 1-Jul-2016::11:26:16 ===
Management plugin started. Port: 15672
=INFO REPORT==== 1-Jul-2016::11:26:16 ===
Statistics database started.
=INFO REPORT==== 1-Jul-2016::11:26:16 ===
Server startup complete; 6 plugins started.
* rabbitmq_management
* rabbitmq_management_agent
* rabbitmq_web_dispatch
* webmachine
* mochiweb
* amqp_client
=INFO REPORT==== 1-Jul-2016::11:26:55 ===
=INFO REPORT==== 1-Jul-2016::11:26:55 ===
=INFO REPORT==== 1-Jul-2016::11:27:08 ===
=ERROR REPORT==== 1-Jul-2016::11:27:08 ===
{handshake_timeout,handshake}
using RabbitMQ.Client;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace YniuTest
{
class Program
{
static void Main(string[] args)
{
string h1 = "192.168.32.36";
var factory = new ConnectionFactory()
{
HostName = h1
};
factory.AutomaticRecoveryEnabled = true;
var con = factory.CreateConnection();
con.Close();
Console.ReadKey(false);
Console.WriteLine("now I am exiting...");
}
}
}