mosquito / aio-pika

AMQP 0.9 client designed for asyncio and humans.
https://aio-pika.readthedocs.org/
Apache License 2.0
1.18k stars 186 forks source link

`timeout` is missing in URL query #504

Open airpod2 opened 1 year ago

airpod2 commented 1 year ago

connect_robust takes timeout as a parameter but make_url does not take timeout as a parameter, so it does not get included in the URL. Because aiormq parses timeout from the URL query, it always takes about 3 minutes to reconnect.

frame_receiver = FrameReceiver(
                reader,
                (self.timeout + 1) * self.HEARTBEAT_GRACE_MULTIPLIER,
            ) //default timeout = 60 sec

Could you add timeout to make_url() or is it okay to make a pull request about this? Please let me know if there is any other way to reconnect faster.