INFURA / go-ethlibs

Ethereum libraries in Go for interacting with Ethereum nodes
MIT License
161 stars 34 forks source link

fix(node): use cloned DefaultTransport to setup correct default values #59

Closed ryanschneider closed 2 years ago

ryanschneider commented 2 years ago

Previously the 0-value transport had .IdleConnTimeout: 0 which means idle timeouts were disabled, and thus connections were only closed if the underlaying TCP connection timed out. I also now copy the MaxIdleConns value since that was the semantic intent of setting the value to 100.