I have downloaded SimpleAmqpClient (ver 2.4.0) NuGet package in my c++ project. I want to publish messages to the queue. When I am trying to create a channel using following code I am getting "AmqpClient::AmqpResponseLibraryException". When checked the exception message its showing ": a socket error occurred".
There is no issue connecting to the same server using RabbitMQ.Client in C#.
Here is my code snippet.
try
{
AmqpClient::Channel::ptr_t channel = AmqpClient::Channel::Create("localhost", 5672, "test", "test");
}
catch (std::exception ex)
{ }
This is what i get in broker log:
2020-11-02 11:20:19.970 [info] <0.26090.7> accepting AMQP connection <0.26090.7> ([::1]:24569 -> [::1]:5672)
2020-11-02 11:20:22.978 [error] <0.26090.7> closing AMQP connection <0.26090.7> ([::1]:24569 -> [::1]:5672):
failed to negotiate connection parameters: negotiated channel_max = 0 (no limit) is higher than the maximum allowed value (2047)
Please let me know where I am going wrong. Thanks in advance.