diff --git a/examples/hello-openshift/hello_openshift.go b/examples/hello-openshift/hello_openshift.go index 413b8fb5afaa..37e85389627b 100644 --- a/examples/hello-openshift/hello_openshift.go +++ b/examples/hello-openshift/hello_openshift.go @@ -12,9 +12,21 @@ func helloHandler(w http.ResponseWriter, r *http.Request) { func main() { http.HandleFunc("/", helloHandler) - fmt.Println("Started, serving at 8080") - err := http.ListenAndServe(":8080", nil) - if err != nil { - panic("ListenAndServe: " + err.Error()) - } + go func() { + fmt.Println("serving on 8080") + err := http.ListenAndServe(":8080", nil) + if err != nil { + panic("ListenAndServe: " + err.Error()) + } + }() + + + go func() { + fmt.Println("serving on 8888") + err := http.ListenAndServe(":8888", nil) + if err != nil { + panic("ListenAndServe: " + err.Error()) + } + }() + select{} }