Skip to content

Instantly share code, notes, and snippets.

@therealbill
therealbill / proxy_copy.go
Created November 17, 2015 20:44 — forked from jbardin/proxy_copy.go
Go TCP Proxy pattern
package proxy
import (
"io"
"log"
"net"
)
func Proxy(srvConn, cliConn *net.TCPConn) {
// channels to wait on the close event for each connection
@therealbill
therealbill / sts.go
Last active August 29, 2015 14:13 — forked from oxtoacart/sts.go
package main
import (
"fmt"
"math/rand"
"sort"
"time"
)
const (