Thanks to visit codestin.com
Credit goes to github.com

Skip to content

not deferred recover #147

@ravilushqa

Description

@ravilushqa

Probably a bug, as far as I see this recover() just not working.

reproxy/app/main.go

Lines 162 to 174 in 3cb546b

go func() {
if x := recover(); x != nil {
log.Printf("[WARN] run time panic:\n%v", x)
panic(x)
}
// catch signal and invoke graceful termination
stop := make(chan os.Signal, 1)
signal.Notify(stop, os.Interrupt, syscall.SIGTERM)
<-stop
log.Printf("[WARN] interrupt signal")
cancel()
}()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions