Skip to content

Instantly share code, notes, and snippets.

View gyuho's full-sized avatar
🎯
Focusing

Gyuho Lee gyuho

🎯
Focusing
View GitHub Profile
// Copyright (C) 2019-2022, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package main
import (
"context"
"fmt"
"net"
"time"
@gyuho
gyuho / stale_tcp.go
Created January 24, 2018 19:08 — forked from yudai/stale_tcp.go
Reproducer for stale tcp sessions
package main
// Build and run as root since this code uses iptables to emulate a network outage.
// Make sure rules in iptables are cleared:
// sudo iptables -D INPUT -j DROP -p tcp --destination-port 2379; sudo iptables -D INPUT -j DROP -p tcp --source-port 2379
import (
"context"
"log"

Keybase proof

I hereby claim:

  • I am gyuho on github.
  • I am gyuho (https://keybase.io/gyuho) on keybase.
  • I have a public key whose fingerprint is 23EA 08A8 D48A 8D8A 42F8 F41A EF87 F6C2 CD4B E9A1

To claim this, I am signing this object: