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
Hi,
I have a proto file with the following rpc:
rpc MethodToCall(ObjectToReceive) returns (Empty);
where Empty is declared in the proto file as:
message Empty {}.
After using Grpc.Tools to generate the files I have override this method as follows:
public override Task MethodToCall(ObjectToReceive request, ServerCallContext context)
{
return Task.FromResult(new Empty());
}
In wireshark the response looks like this:
Problem is that what I need is the response to have an actual Data field of length 0 as follows:
where the Data is:
I am using .Net Framework 4.7.2.
Can I force the library to send the response like this or it will always decide not to send irrelevant data.
Thank you
The text was updated successfully, but these errors were encountered:
I don't know why you're seeing a RST_STREAM. If a request sends a response message, even an empty one, then the response should end with a HEADERS frame with END_STREAM set.
Hi,
I have a proto file with the following rpc:
rpc MethodToCall(ObjectToReceive) returns (Empty);
where Empty is declared in the proto file as:
message Empty {}.
After using Grpc.Tools to generate the files I have override this method as follows:
public override Task MethodToCall(ObjectToReceive request, ServerCallContext context)
{
return Task.FromResult(new Empty());
}
In wireshark the response looks like this:
Problem is that what I need is the response to have an actual Data field of length 0 as follows:
where the Data is:
I am using .Net Framework 4.7.2.
Can I force the library to send the response like this or it will always decide not to send irrelevant data.
Thank you
The text was updated successfully, but these errors were encountered: