Skip to content

Websocket connection remains indefinitely in :connecting state and causes TimeoutError#329

Merged
route merged 1 commit intorubycdp:mainfrom
francisbeaudoin:fix-intermittent-ws-connecting-state
Jan 22, 2023
Merged

Websocket connection remains indefinitely in :connecting state and causes TimeoutError#329
route merged 1 commit intorubycdp:mainfrom
francisbeaudoin:fix-intermittent-ws-connecting-state

Conversation

@francisbeaudoin
Copy link
Contributor

@francisbeaudoin francisbeaudoin commented Jan 20, 2023

Issue

Within a test run, we're intermittently get a TimeoutError.

Root cause

It is caused by the Websocket that remains in a :connecting state - that behavior is also discussed in rubycdp/cuprite#36

Proposed fix

By bumping the sleep to 0.05 we're no longer getting the issue but that is probably not ideal. In full transparency, I haven't tried any lower sleep time as I think the performance hit is fine.

@route route merged commit d141613 into rubycdp:main Jan 22, 2023
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

Successfully merging this pull request may close these issues.

2 participants