Skip to content

Instantly share code, notes, and snippets.

@inconshreveable
Created September 13, 2016 19:07
Show Gist options
  • Save inconshreveable/6a055e475fa124aef777151c3b7fc6c4 to your computer and use it in GitHub Desktop.
Save inconshreveable/6a055e475fa124aef777151c3b7fc6c4 to your computer and use it in GitHub Desktop.
Rails 500 Internal Server Error
package main
import (
"io"
"net"
"os"
"time"
)
func main() {
c, _ := net.Dial("tcp", "localhost:3000")
time.Sleep(time.Second)
c.(*net.TCPConn).CloseWrite()
io.Copy(os.Stdout, c)
}
HTTP/1.1 500 Internal Server Error\r\n\r\n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment