Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion net/ghttp/ghttp_server_admin_process.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,9 @@ func restartWebServers(ctx context.Context, signal os.Signal, newExeFilePath str
}
// Controlled by web page.
// It should ensure the response wrote to client and then close all servers gracefully.
// On Windows, we don't close the server here.
// The new process will kill the old one when it starts.
gtimer.SetTimeout(ctx, time.Second, func(ctx context.Context) {
forceCloseWebServers(ctx)
if err := forkRestartProcess(ctx, newExeFilePath); err != nil {
intlog.Errorf(ctx, `%+v`, err)
}
Expand Down
Loading