rabbitmq / rabbitmq-peer-discovery-aws

AWS-based peer discovery backend for RabbitMQ 3.7.0+
Other
24 stars 11 forks source link

Set connect and request timeouts #26

Closed lukebakken closed 5 years ago

lukebakken commented 5 years ago

httpc:request has a default timeout of infinity. This PR ensures that both the connect and request phase uses a timeout

Fixes #25

I set the timeout to 2250ms so that in the extreme case of connect success at 2249ms and request data received in 2249ms, there's still a chance that a gen_server:call won't time out.