Page MenuHomePhabricator
Paste P10386

A very lame http server
ActivePublic

Authored by Joe on Feb 11 2020, 3:42 PM.
Tags
None
Referenced Files
F31608406: raw.txt
Feb 11 2020, 3:42 PM
Subscribers
None
package main
import (
"fmt"
"net/http"
"time"
)
func main() {
http.HandleFunc("/", WaitServer)
http.ListenAndServe(":9099", nil)
}
func WaitServer(w http.ResponseWriter, r *http.Request) {
time.Sleep(15000000000)
fmt.Fprintln(w, "ok")
}