Fixbug: client connection reset by deadline (#14683)

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
This commit is contained in:
Jiquan Long 2022-01-04 15:13:18 +08:00 committed by GitHub
parent 9e51591b3a
commit 841c5af42e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,7 +183,13 @@ func (c *ClientBase) callOnce(ctx context.Context, caller func(client interface{
if err2 == nil {
return ret, nil
}
if err2 == context.Canceled || err2 == context.DeadlineExceeded {
// status.Error(codes.Canceled, context.Canceled.Error()
// if err2 == context.Canceled || err2 == context.DeadlineExceeded {
// return nil, err2
// }
if !funcutil.CheckCtxValid(ctx) {
return nil, err2
}