A
A
antonbulankin2015-12-12 20:52:47
RabbitMQ
antonbulankin, 2015-12-12 20:52:47

RabbitMQ + MacOS + PHP: Sending a message to the queue takes 8 seconds. What can be wrong?

When sending a message to a queue, it always takes 8 seconds to establish a connection. I run in 3 different terminals:
1. rabbitmq-server
2. php receive.php
3. php send.php
OS X El Capitan.
Slow line:

$connection = new AMQPStreamConnection('127.0.0.1', 5672, 'guest', 'guest');

Example log:
----
=INFO REPORT==== 12-Dec-2015::20:28:12 ===
accepting AMQP connection <0.1457.0> (127.0.0.1:52153 -> 127.0.0.1:5672 )
=INFO REPORT==== 12-Dec-2015::20:28:20 ===
closing AMQP connection <0.1457.0> (127.0.0.1:52153 -> 127.0.0.1:5672)
---
Set to Ubuntu 14.04 virtual machine, configured rabbitmq in it, similar examples work without delay.
What could be the reason for such a large delay on Mac OS?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question