Skip to content

Commit

Permalink
Read timeouts config for orion server (#230)
Browse files Browse the repository at this point in the history
* Expose GetDefaultServerWithConfigAndOpts method

* Set ReadTimeout and WriteTimeout in the config
  • Loading branch information
bhadreswar-ghuku authored Sep 19, 2024
1 parent 5e86532 commit b594678
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions orion/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ func BuildDefaultConfig(name string) Config {
DefaultJSONPB: viper.GetBool("orion.DefaultJSONPB"),
DisableDefaultInterceptors: viper.GetBool("orion.DisableDefaultInterceptors"),
MaxRecvMsgSize: viper.GetInt("orion.MaxRecvMsgSize"),
ReadTimeout: viper.GetInt("orion.ReadTimeout"),
WriteTimeout: viper.GetInt("orion.WriteTimeout"),
}
}

Expand Down

0 comments on commit b594678

Please sign in to comment.