Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get timeout status in every request #358

Open
HaninMoAnwar opened this issue Aug 20, 2024 · 2 comments
Open

Get timeout status in every request #358

HaninMoAnwar opened this issue Aug 20, 2024 · 2 comments

Comments

@HaninMoAnwar
Copy link

I want to check if timeout occurred in any request in my application layer. I didn't find any API does that. So, I was enforced to add a flag inside RequestQueue::loop to be fired when timeout occurs.
image

I want to know if the library doesn't support an API for timeout detection or not. In addition, I wander about how library handle the timeout exception, does it print on serial only or take an action ?
Thanks in advance.

@HaninMoAnwar
Copy link
Author

I've found that timeout is handled by onTimeoutListener callback only for authorize , startTransaction, and stopTransaction requests.
image
Do other requests have this callback or not ? I yes, how can I use it in my project ?

@HaninMoAnwar
Copy link
Author

We as EvFlash Compony, handled this issue by setting onTimeoutListener, onReceiveConfListener callbacks for each request and pass App handler functions to these listeners, just to track connectivity status in our application layer .
And here is an example :
image
If you're @matth-x interested in our handling to this issue, please don't hesitate to contact with me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant