healthjoy / async-firebase

The lightweight asynchronous client that makes interaction with Firebase Cloud Messaging oversimplified.
MIT License
37 stars 14 forks source link

Set AsyncClient timeout None to send large data #58

Closed jeonghanjoo closed 1 year ago

jeonghanjoo commented 1 year ago

I'd already seen this issue https://github.com/healthjoy/async-firebase/issues/49

But to send large multiple messages at once, default httpx.AsyncClient timeout(5 seconds) is too short.

Usually sending 300 ~ 500 messages takes 5 ~ 10 seconds in my city(Seoul, Korea).

So since the httpx client cuts the connection after timeout, the whole request sometimes fails or responds as fail.

Just setting timeout None can make this timeout issue fixed.