tomusdrw / rust-web3

Ethereum JSON-RPC multi-transport client. Rust implementation of web3 library. ENS address: rust-web3.eth
MIT License
1.44k stars 468 forks source link

Fix ws close #729

Open whs-dot-hk opened 1 month ago

whs-dot-hk commented 1 month ago

@tomusdrw not sure if this is the right place to fix it, but it work for my web server.

Basically, the problem I faced is the WS transport, will only open connections, but do not close them. This may result in too many open files, if the code is inside a closure.