Boilertalk / Web3.swift

A pure swift Ethereum Web3 library
MIT License
636 stars 187 forks source link

fix: websocket deadlock for high amounts of concurrency #141

Closed koraykoska closed 1 year ago

koraykoska commented 1 year ago

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).