rabbitmq / rabbitmq-objc-client

RabbitMQ client for Objective-C and Swift
https://rabbitmq.com
Other
241 stars 84 forks source link

Socket write timeout is hardcoded (and unreasonably low) #150

Closed michaelklishin closed 5 years ago

michaelklishin commented 5 years ago

As discovered by @SimonErm in #104, the socket write timeout is fairly low (especially assuming this client can be used on lower quality mobile networks) and hardcoded.

Neither should be the case. The timeout of 55 seconds (a bit lower than the default RabbitMQ heartbeat timeout of 60) seems like a good conservative option to me but above all it should be a configurable setting.