ansible-role-varnish icon indicating copy to clipboard operation
ansible-role-varnish copied to clipboard

When internet is slow, getting a timeout log but not getting a callback

Open divya-BV opened this issue 1 year ago • 5 comments

Hi @TatankaConCube

I am using this 'connectycube_sdk: ^2.11.2' for adding chat in our application. When the network is good, things work well but when network is flaky i can see the internal logs of timeout but couldn't get the callback.

I tried resetting the timeout too but that too didn't work.

Can you please help with this issue

divya-BV avatar Jan 04 '24 12:01 divya-BV

do you mean this CubeChatConnection.instance.connectionStateStream listener? could you please provide the log with the 'timeout' issue you say? can you reproduce the same issue in our Chat Sample?

TatankaConCube avatar Jan 04 '24 12:01 TatankaConCube

@TatankaConCube yes i did use this as well. Also i have used

CubeChatConnectionSettings.instance.totalReconnections = 1; CubeChatConnectionSettings.instance.reconnectionTimeout = 300;

divya-BV avatar Jan 04 '24 12:01 divya-BV

the reconnection manager will try to reconnect after losing the connection (the state changes to the ForceClosed), does the reconnection manager try to reconnect? do you receive the updated state ForceClosed?

TatankaConCube avatar Jan 04 '24 13:01 TatankaConCube

@TatankaConCube yes it tries to reconnect. But after all the tries fail it doesnot give the timeout callback.

divya-BV avatar Jan 04 '24 13:01 divya-BV

could you please provide the full log that contains the described issue?

TatankaConCube avatar Jan 04 '24 13:01 TatankaConCube