mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Fixbug: client connection reset by deadline (#14683)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>
This commit is contained in:
parent
9e51591b3a
commit
841c5af42e
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user