Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P10386
A very lame http server
Active
Public
Actions
Authored by
Joe
on Feb 11 2020, 3:42 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F31608406: raw.txt
Feb 11 2020, 3:42 PM
2020-02-11 15:42:33 (UTC+0)
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")
}
Event Timeline
Joe
created this paste.
Feb 11 2020, 3:42 PM
2020-02-11 15:42:33 (UTC+0)
Joe
mentioned this in
T244877: WANObjectCache::getWithSetCallback seems not to set objects when fetching data is slow
.
Feb 11 2020, 3:52 PM
2020-02-11 15:52:55 (UTC+0)
Log In to Comment