Skip to content

Instantly share code, notes, and snippets.

View carl-mastrangelo's full-sized avatar
💭
I may be slow to respond.

Carl Mastrangelo carl-mastrangelo

💭
I may be slow to respond.
View GitHub Profile
import random
import pprint
def run(tries):
count = 0
for i in range(tries):
if random.randrange(1<<count) <= 0:
count += 1
return count
package io.grpc.examples;
import io.grpc.CallOptions;
import io.grpc.ClientCall;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import io.grpc.Metadata;
import io.grpc.MethodDescriptor;
import io.grpc.MethodDescriptor.Marshaller;
import io.grpc.MethodDescriptor.MethodType;
@carl-mastrangelo
carl-mastrangelo / gist:49f6d6a8ff29200fcb7d9e25e473b2d0
Last active January 27, 2017 18:42
How to Enable Netty Frame Logging for gRPC
# -Djava.util.logging.config.file=myLoggingConfigFilePath
handlers = java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level = ALL
.level = FINE
io.grpc.netty.NettyClientHandler = ALL
io.grpc.netty.NettyServerHandler = ALL