Skip to content

Instantly share code, notes, and snippets.

View jchambers's full-sized avatar

Jon Chambers jchambers

View GitHub Profile
@jchambers
jchambers / AutoFlushExceptionDemoApp.java
Last active June 21, 2016 13:50
Minimal test case for AUTO_FLUSH exception volcano
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
public class AutoFlushExceptionDemoApp {
public static void main(final String[] args) throws Exception {
final EventLoopGroup eventLoopGroup = new NioEventLoopGroup(1);
final ExampleServer server = new ExampleServer(eventLoopGroup);
@jchambers
jchambers / Http2Client.java
Created February 1, 2016 02:41
Minimal test case for netty/4802
import javax.net.ssl.SSLException;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.Channel;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.socket.nio.NioSocketChannel;
@jchambers
jchambers / gist:9ce5ebedf0be4f292079
Created February 1, 2016 02:11
A frame log from an HTTP/2 client talking to a server with a stream limit in place
[nioEventLoopGroup-2-2] INFO io.netty.handler.codec.http2.Http2FrameLogger -
----------------OUTBOUND--------------------
[id: 0xf41ffb4d, /127.0.0.1:49611 => localhost/127.0.0.1:8443] SETTINGS: ack=false, settings={}
------------------------------------
[nioEventLoopGroup-2-2] INFO com.relayrides.pushy.apns.ApnsClient - Connected to localhost/127.0.0.1:8443.
[nioEventLoopGroup-2-2] INFO io.netty.handler.codec.http2.Http2FrameLogger -
----------------INBOUND--------------------
[id: 0xf41ffb4d, /127.0.0.1:49611 => localhost/127.0.0.1:8443] SETTINGS: ack=false, settings={MAX_CONCURRENT_STREAMS=8}
------------------------------------
[nioEventLoopGroup-2-2] INFO io.netty.handler.codec.http2.Http2FrameLogger -
@jchambers
jchambers / bugsnag-segfault
Created August 15, 2014 19:54
Possible segault in bugsnag notifier
Pods/Bugsnag/bugsnag/BugsnagEvent.m:91:0 -[BugsnagEvent getStackTraceWithException:]
Pods/Bugsnag/bugsnag/BugsnagEvent.m:50:0 -[BugsnagEvent addSignal:]
Pods/Bugsnag/bugsnag/BugsnagNotifier.m:73:0 -[BugsnagNotifier notifySignal:]
Pods/Bugsnag/bugsnag/Bugsnag.m:65:0 handle_signal
libsystem_platform.dylib:0 _sigtramp
UIKit:0 -[UINavigationController _startCustomTransition:]
UIKit:0 -[UINavigationController _startDeferredTransitionIfNeeded:]
UIKit:0 -[UINavigationController __viewWillLayoutSubviews]
UIKit:0 -[UILayoutContainerView layoutSubviews]
UIKit:0 -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
@jchambers
jchambers / kissmetrics-symbols.txt
Created June 26, 2014 19:13
Symbols from KISSmetricsSDK.framework
0000000000005636 t +[KISSMetricsAPI sharedAPIWithKey:]
000000000000564f t +[KISSMetricsAPI sharedAPI]
0000000000003d45 t +[KISSmetricsAPI allocWithZone:]
0000000000004e67 t +[KISSmetricsAPI kma_setVerification:]
0000000000004e89 t +[KISSmetricsAPI kma_verification]
0000000000003c00 t +[KISSmetricsAPI load]
0000000000003c3b t +[KISSmetricsAPI sharedAPIWithKey:]
0000000000003d1d t +[KISSmetricsAPI sharedAPI]
00000000000055d1 t +[KISSmetricsAPI uth_sharedAPIInitialized]
00000000000060a9 t +[KMAArchiver allocWithZone:]
@jchambers
jchambers / ChannelReadTestApp.java
Last active December 28, 2015 10:29
A simple Netty test app to see which handler methods are fired when a read is attempted.
public class ChannelReadTestApp {
private static final int PORT = 9852;
public static void main(String[] args) throws InterruptedException {
final WriteAndIdleServer server = new WriteAndIdleServer(PORT);
final ReadAndIdleClient client = new ReadAndIdleClient(PORT);
server.start();
client.start();