[#198] Fix SIGHUP panic #198
3 changed files with 11 additions and 2 deletions
|
@ -4,6 +4,11 @@ This document outlines major changes between releases.
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.32.1] - 2025-01-27
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- SIGHUP panic (#198)
|
||||||
|
|
||||||
## [0.32.0] - Khumbu - 2024-12-20
|
## [0.32.0] - Khumbu - 2024-12-20
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
@ -184,4 +189,5 @@ To see CHANGELOG for older versions, refer to https://github.com/nspcc-dev/neofs
|
||||||
[0.30.3]: https://git.frostfs.info/TrueCloudLab/frostfs-http-gw/compare/v0.30.2...v0.30.3
|
[0.30.3]: https://git.frostfs.info/TrueCloudLab/frostfs-http-gw/compare/v0.30.2...v0.30.3
|
||||||
[0.31.0]: https://git.frostfs.info/TrueCloudLab/frostfs-http-gw/compare/v0.30.3...v0.31.0
|
[0.31.0]: https://git.frostfs.info/TrueCloudLab/frostfs-http-gw/compare/v0.30.3...v0.31.0
|
||||||
[0.32.0]: https://git.frostfs.info/TrueCloudLab/frostfs-http-gw/compare/v0.31.0...v0.32.0
|
[0.32.0]: https://git.frostfs.info/TrueCloudLab/frostfs-http-gw/compare/v0.31.0...v0.32.0
|
||||||
[Unreleased]: https://git.frostfs.info/TrueCloudLab/frostfs-http-gw/compare/v0.32.0...master
|
[0.32.1]: https://git.frostfs.info/TrueCloudLab/frostfs-http-gw/compare/v0.32.0...v0.32.1
|
||||||
|
[Unreleased]: https://git.frostfs.info/TrueCloudLab/frostfs-http-gw/compare/v0.32.1...master
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
v0.32.0
|
v0.32.1
|
||||||
|
|
|
@ -130,6 +130,7 @@ func newApp(ctx context.Context, v *viper.Viper) App {
|
||||||
a := &app{
|
a := &app{
|
||||||
ctx: ctx,
|
ctx: ctx,
|
||||||
log: log.logger,
|
log: log.logger,
|
||||||
|
logLevel: log.lvl,
|
||||||
cfg: v,
|
cfg: v,
|
||||||
loggerSettings: logSettings,
|
loggerSettings: logSettings,
|
||||||
webServer: new(fasthttp.Server),
|
webServer: new(fasthttp.Server),
|
||||||
|
@ -614,6 +615,8 @@ func (a *app) configReload(ctx context.Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *app) startServices() {
|
func (a *app) startServices() {
|
||||||
|
a.services = a.services[:0]
|
||||||
|
|
||||||
pprofConfig := metrics.Config{Enabled: a.cfg.GetBool(cfgPprofEnabled), Address: a.cfg.GetString(cfgPprofAddress)}
|
pprofConfig := metrics.Config{Enabled: a.cfg.GetBool(cfgPprofEnabled), Address: a.cfg.GetString(cfgPprofAddress)}
|
||||||
pprofService := metrics.NewPprofService(a.log, pprofConfig)
|
pprofService := metrics.NewPprofService(a.log, pprofConfig)
|
||||||
a.services = append(a.services, pprofService)
|
a.services = append(a.services, pprofService)
|
||||||
|
|
Loading…
Add table
Reference in a new issue