I am using a C++ server, and a C++ client and JS client, where I have it 
operational both with InsecureCredentials and with Secure Credentials using 
a self-signed cert. I read in some documentation that when you use 
InsecureCredentials, gRPC uses HTTP1.1 instead of HTTP2, because HTTP2 
requires SSL. However, when I try to get logs out of the server, the output 
looks very much the same - is there any way to confirm whether traffic is 
going over HTTP1.1 or 2?
I have experimented with some flags like
```
GRPC_VERBOSITY=debug 
GRPC_TRACE=http,http1,http2_stream_state,secure_endpoint
```
When I run with InsecureCredentials, I still see a lot of logs from 
http2_stream_state, but I would imagine that this doesn't imply that HTTP2 
is being used, instead it means that it is just going though the same route 
in the code.

I am trying to determine the performance difference (if any) between the 
usage of the two protocols (if any), but I do not feel comfortable 
reporting performance without being 100% sure which protocol it is using. 

I was hopeful that I might find the answer in some of the environment 
variable 
here: 
https://github.com/grpc/grpc/blob/master/doc/environment_variables.md#grpc-environment-variables
 
but the logs look largely the same either way, except for some 
secure_endpoint calls, which really just imply HTTPS and encryption are 
being utilized, but do not clearly show which protocol is utilized.

Thanks a ton!
Keith

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/11872fed-c47d-49d3-84c2-58989e158e87n%40googlegroups.com.

Reply via email to