Skip to content

Conversation

@koraykoska
Copy link
Contributor

@koraykoska koraykoska commented Nov 1, 2022

For whatever reason WebSocket connections when used in highly concurrent applications generated pseudo deadlocks and waited ~4 seconds per request to process them. This PR fixes this issue by utilizing a non-blocking methodology of parallel computing (e.g.: completion handlers).

@koraykoska koraykoska merged commit c076d6a into master Nov 1, 2022
@koraykoska koraykoska deleted the fix/websocket branch November 1, 2022 12:23
koraykoska added a commit that referenced this pull request Aug 1, 2023
* fix: send websocket request only when promise was set

* fix: only decode once for path decision

* fix: concurrency issue with websocket send

* fix: websocket wait for response before continuing

* fix: async exec receive ws messages

* fix: increase max frame size

* fix: single threaded ws group

* fix: sometimes websocket was not initialized

* fix: revert to 4 threads

* fix: avoid deadlock by having multiple seperate queues

* fix: switch from semaphores to closures

* fix: do not send from queue

* fix: do not access synchronized array synchronously
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