Race condition: "Taking longer than usual to connect" #2655
Labels
Bot Services
Required for internal Azure reporting. Do not delete. Do not change color.
bug
Indicates an unexpected problem or an unintended behavior.
customer-replied-to
Required for internal reporting. Do not delete.
customer-reported
Required for internal Azure reporting. Do not delete.
p0
Must Fix. Release-blocker
Milestone
Version
NPM: "botframework-webchat": "^4.6.0"
Describe the bug
When Web-chat loses connection to the server but connection is reestablished within 15 seconds (before the "Taking longer than usual to connect" message is shown) then the message will appear after the chat is connected again and never disappear.
The error appears to originate from a call to "sleep" within detectSlowConnectionSaga.js, where the RECONNECT_FULFILLED status in connectivitystatus.js is overwritten by CONNECT_STILL_PENDING, hence showing the message.
Steps to reproduce
Expected behavior
The slow-connection-warning-message should not appear after 15 seconds if connection is already reestablished.
The text was updated successfully, but these errors were encountered: