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

Skip to content

Commit c57f8dd

Browse files
committed
Merge branch 'readclose' into apps
2 parents f84f5ea + cec2de3 commit c57f8dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

provisionersdk/serve.go

+3
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ func Serve(ctx context.Context, server proto.DRPCProvisionerServer, options *Ser
5454
// short-lived processes that can be executed concurrently.
5555
err = srv.Serve(ctx, options.Listener)
5656
if err != nil {
57+
if errors.Is(err, io.EOF) {
58+
return nil
59+
}
5760
if errors.Is(err, context.Canceled) {
5861
return nil
5962
}

0 commit comments

Comments
 (0)