From 1c9b96f38f761f65a04a3d0912af7dcd5b1c09ab Mon Sep 17 00:00:00 2001 From: viktorking7 <140458814+viktorking7@users.noreply.github.com> Date: Mon, 22 Sep 2025 18:42:04 +0200 Subject: [PATCH] Update dasserver.go --- daprovider/das/dasserver/dasserver.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/daprovider/das/dasserver/dasserver.go b/daprovider/das/dasserver/dasserver.go index e38e6c4bda..67bca8dcd5 100644 --- a/daprovider/das/dasserver/dasserver.go +++ b/daprovider/das/dasserver/dasserver.go @@ -141,7 +141,7 @@ func NewServer(ctx context.Context, config *ServerConfig, dataSigner signature.D } srv := &http.Server{ - Addr: "http://" + addr.String(), + Addr: addr.String(), Handler: handler, ReadTimeout: config.ServerTimeouts.ReadTimeout, ReadHeaderTimeout: config.ServerTimeouts.ReadHeaderTimeout, @@ -157,7 +157,9 @@ func NewServer(ctx context.Context, config *ServerConfig, dataSigner signature.D go func() { <-ctx.Done() - _ = srv.Shutdown(context.Background()) + shutdownCtx, cancel := context.WithTimeout(context.Background(), 10*time.Second) + defer cancel() + _ = srv.Shutdown(shutdownCtx) }() return srv, func() {