hermeznetwork / hermez-node

Hermez node Go implementation
GNU Affero General Public License v3.0
58 stars 33 forks source link

TODO: Improve HTTP Server configuration #1085

Closed tclemos closed 3 years ago

tclemos commented 3 years ago

Rationale

Since we started to have default values for many configurations, we can also do this for HTTP Server Read and Write timeout configuration with default values.

https://github.com/hermeznetwork/hermez-node/blob/3fc5b4c531394e9d6a9975e2fa798bbd5029e6a4/node/node.go#L665-L667

Implementation

Add new fields to the configuration to allow it to be configured, but keep the current values as the default.