While doing gRPC client-side streaming, how server will behave when it does not receive all of requests

huangapple go评论75阅读模式
英文:

While doing gRPC client-side streaming, how server will behave when it does not receive all of requests

问题

我想知道的是客户端要进行数据流传输的情况。在这个过程中,它会发送三个请求。假设服务器只会收到其中的两个。

在目前的情况下,服务器会如何反应?我猜服务器不会通知客户端关于已完成的请求(它知道预期请求数量),一旦已定义的截止时间到达,该过程将被终止。我的假设是否正确?

我正在进行 gRPC 的 Java 实现。

英文:

I'm wondering about the scenario that the client is going to do data streaming. During that process, it will send three requests. Let's assume that the server will receive only two.

How in current situation server will react? I guess that server will never notify the client about the finished request (it knows the number of requests that are expected) and the process will get terminated as long as the deadline has been defined. Do my assumptions are valid?

I'm working on the Java implementation of gRPC.

答案1

得分: 1

这是正确的。如果服务器正在等待第三个请求,而它从未收到,那么通话将在截止日期之前终止。

英文:

That's correct. If the server is waiting for the 3rd request which it never receives, the call will be terminated by the deadline.

huangapple
  • 本文由 发表于 2020年8月31日 23:15:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/63673477.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定