flexera-public / right_aws

RightScale Amazon Web Services Ruby Gems
MIT License
451 stars 175 forks source link

Server queue.amazonaws.com closed connection #122

Open sidbatra opened 12 years ago

sidbatra commented 12 years ago

Creating an Sqs object with the :connection_mode => :single is supposed to open a persistent connection to queue.amazonaws.com.

However, after a period of inactivity ( ~2 minutes) when a new message is pushed onto the queue the following message is seen:

Rightscale::HttpConnection : server queue.amazonaws.com closed connection
Opening new HTTPS connection to queue.amazonaws.com:443

This slows down pushing that message by ~500ms. Is there any way to fix this?

thanks!

konstantin-dzreev commented 12 years ago

Hello The message says that a remote server closed current connection... Not sure we can do much here. But I'm not sure I understand ":connection_mode => :single" option. What right_aws version do you use?