You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use GRPC bidirection stream to do long connection. I have discovered an problem.
When I send data to the non fully GRPC functional server,the client will be blocked. It's different to describe. Here is my code.
// here is the clientfunc (client*ClientAdmin) UploadPicture(pic*pb.UploadPictureReq) (errerror) {
// will be blocked herereturnclient.stream.Send(&pb.ManageReq{
Option: pb.MANAGE_OPT_MANAGE_OPT_UPLOAD_PICTURE,
Param: &pb.ManageReq_Picture{
// pic contain []byte about 150KB, if make the pic nil, pic.src=nil,it will not be blockPicture: pic,
},
})
returnerrors.New("stream is not here")
}
GRPC server do not implement UploadPicture. but implement the other function Why I will be block here?
The text was updated successfully, but these errors were encountered:
I use GRPC bidirection stream to do long connection. I have discovered an problem.
When I send data to the non fully GRPC functional server,the client will be blocked. It's different to describe. Here is my code.
GRPC server do not implement
UploadPicture
. but implement the other function Why I will be block here?The text was updated successfully, but these errors were encountered: