tomusdrw / rust-web3

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

Fix ws close #729

Open whs-dot-hk opened 5 months ago

whs-dot-hk commented 5 months 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.