GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Setting socket timeouts in Pika is a little bit confusing. Especially overriding the default connection timeout (250ms for blocking connections) involves subclassing the BlockingConnection to set the class attribute.
This patch removes the SOCKET_TIMEOUT class attribute which was only used for setting the initial connection timeout and instead reuses the already available socket_timeout from the connection parameters.
It also allows float values for retry_delay.
Use socket_timeout for connection attempts
- Allow float value for retry_delay
- Remove unused SOCKET_TIMEOUT from adapters
Thanks for the change (and the test!)
Merge pull request #180 from Pankrat/master
Use socket_timeout from parameters as connection timeout