-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crash in client.go #74
Labels
Comments
Can you show more of your code? It's hard to tell what happened without further information. |
func forum(w http.ResponseWriter, r *http.Request) {
log.Printf("php %v %v", r.RemoteAddr, r.URL.Path)
cgi.ServeHTTP(w, r)
}
func main() {
connFactory := gofast.SimpleConnFactory("unix", "/run/php/php7.4-fpm.sock")
ssl := http.NewServeMux()
// handles static assets in the assets folder
file = http.FileServer(http.FileSystem(http.Dir(DOC_ROOT)))
ssl.HandleFunc("/forum/", forum)
cgi = gofast.NewHandler(
gofast.NewPHPFS(DOC_ROOT)(gofast.BasicSession),
gofast.SimpleClientFactory(connFactory),
)
cfg := &tls.Config{
MinVersion: tls.VersionTLS12,
CurvePreferences: []tls.CurveID{tls.CurveP521, tls.CurveP384, tls.CurveP256},
PreferServerCipherSuites: true,
CipherSuites: []uint16{
tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
},
}
srv := &http.Server{
Addr: ":443",
Handler: ssl,
TLSConfig: cfg,
TLSNextProto: make(map[string]func(*http.Server, *tls.Conn, http.Handler), 0),
}
// serve at ssl port
log.Fatal(srv.ListenAndServeTLS("fullchain.pem", "privkey.pem")) Forgot to mention, this happens after running for multiple hours. |
Thanks. Will check this issue. |
marcel-dancak
added a commit
to marcel-dancak/gofast
that referenced
this issue
Aug 2, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The gofast is setup to interact with the php7.4-fpm and I get the crash of the app with the following log messages:
The text was updated successfully, but these errors were encountered: