We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 432f5ed commit 99a8bccCopy full SHA for 99a8bcc
pkg/epp/handlers/server.go
@@ -18,7 +18,6 @@ package handlers
18
19
import (
20
"context"
21
- "errors"
22
"io"
23
"time"
24
@@ -90,9 +89,13 @@ func (s *Server) Process(srv extProcPb.ExternalProcessor_ProcessServer) error {
90
89
}
91
92
req, recvErr := srv.Recv()
93
- if recvErr == io.EOF || errors.Is(recvErr, context.Canceled) {
+ if recvErr == io.EOF {
94
return nil
95
+ if status.Code(recvErr) == codes.Canceled {
96
+ logger.V(logutil.DEBUG).Info("request context canceled")
97
+ return recvErr
98
+ }
99
if recvErr != nil {
100
// This error occurs very frequently, though it doesn't seem to have any impact.
101
// TODO Figure out if we can remove this noise.
0 commit comments