[rabbitmq-discuss] Need clarification on RabbitMq Connection

Loganathan Sellapa loganathan.ms at gmail.com
Thu May 1 07:21:19 BST 2014


Hi All,

I have a requirement where I need to develop an ruby library which needs to
listen to RabbitMQ messages and forward the messages to some other
applications with some additional changes in message. This library needs to
* ​​ run always and should not close the connection at all*, hence it needs
to listen & publish messages always, also this library is running to of ROR
application.

For this requirement I have build an rake task to start listening to
RabbitMQ, also I have placed the same code in initializers file in order to
start the library along with Apache server in production mode. In
production mode initializer file is starting my library to listen & publish
the messages to RabbitMq.  I have noticed that connectiong to RabbitMq
behaves differently via rake task & initilazer file, copied below the
rabbitmq log for your reference.


*RABBITMQ LOG WHILE RUNNING THE RUBY LIBRARY VIA RAKE TASK: (Connection
made one time only)*

=INFO REPORT==== 30-Apr-2014::20:43:24 ===
accepting AMQP connection <0.7409.18> (10.146.14.118:54932 ->
10.112.187.58:5671)

*RABBITMQ LOG WHILE RUNNING THE RUBY LIBRARY VIA INITIALIZER
FILE:(Connection made multiple times)*

=INFO REPORT==== 30-Apr-2014::20:28:35 ===
accepting AMQP connection <0.6325.18> (10.146.14.118:54928 ->
10.112.187.58:5671)

=INFO REPORT==== 30-Apr-2014::20:28:35 ===
accepting AMQP connection <0.6329.18> (10.146.14.118:54929 ->
10.112.187.58:5671)


=WARNING REPORT==== 30-Apr-2014::20:28:37 ===
closing AMQP connection <0.6325.18> (10.146.14.118:54928 ->
10.112.187.58:5671):
connection_closed_abruptly

=INFO REPORT==== 30-Apr-2014::20:28:37 ===
accepting AMQP connection <0.6368.18> (10.146.14.118:54930 ->
10.112.187.58:5671)

=WARNING REPORT==== 30-Apr-2014::20:28:37 ===
closing AMQP connection <0.6329.18> (10.146.14.118:54929 ->
10.112.187.58:5671):
connection_closed_abruptly

=INFO REPORT==== 30-Apr-2014::20:28:37 ===
accepting AMQP connection <0.6373.18> (10.146.14.118:54931 ->
10.112.187.58:5671)


=ERROR REPORT==== 30-Apr-2014::20:28:42 ===
error on AMQP connection <0.6368.18>: {ssl_upgrade_error,timeout} (unknown
POSIX error)

=ERROR REPORT==== 30-Apr-2014::20:28:42 ===
error on AMQP connection <0.6373.18>: {ssl_upgrade_error,timeout} (unknown
POSIX error)


Can
​anybody
  let me know whether the issue with my code or with RabbitMq
configuration,  you can see my code
HERE<https://gist.github.com/loganathan-s/22256c01127065c9d659>.
While re
​-​
connecting on tcp connection loss AMQP gem passes guest as username &
password even though I am connecting to RabbitMq via SSL certificates.

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe <http://vizualize.me/loganathan>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140501/09bfbb13/attachment.html>


More information about the rabbitmq-discuss mailing list