Skip to content

Instantly share code, notes, and snippets.

View killerwhile's full-sized avatar
💭
👨‍👩‍👧‍👦❤😅🍻🏐💻 🧀 🚀

Benoit Perroud killerwhile

💭
👨‍👩‍👧‍👦❤😅🍻🏐💻 🧀 🚀
View GitHub Profile
@jbrisbin
jbrisbin / DisruptorTest.java
Created December 30, 2011 17:22
Disruptor RingBuffer-based simplistic NIO HTTP test server
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.net.StandardSocketOptions;
import java.nio.ByteBuffer;
import java.nio.channels.CancelledKeyException;
import java.nio.channels.ReadableByteChannel;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;