We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With issues: why donot support fcgi method to serve?
go version: 1.11.2
gin version (or commit ref): 1.30
operating system: centos
see the rel issue #673 , the reason is much slower than unix http proxy.
But, in go 1.11.2, unix http is slower than unix fcgi
go:
// fcgi usocket func (engine *Engine) RunFcgiUnix(file string) (err error) { debugPrint("Listening and serving FCGI on unix:%s", file) defer func() { debugPrintError(err) }() os.Remove(file) listener, err := net.Listen("unix", file) if err != nil { return } os.Chmod(file, 0777) defer listener.Close() err = fcgi.Serve(listener, engine) return }
nginx conf:
# fcgi usocket location ~ ^/(\S+)/{ #fastcgi_pass unix:/data/usock/demo.sock; include fastcgi_params; } # http usocket location ~ ^/(\S+)/{ proxy_pass http://unix:/data/usock/demo.sock; }
fcgi usocket
http usocket
The text was updated successfully, but these errors were encountered:
@visamz Can you send the PR?
Sorry, something went wrong.
No branches or pull requests
With issues:
why donot support fcgi method to serve?
go version: 1.11.2
gin version (or commit ref): 1.30
operating system: centos
Description
see the rel issue #673 , the reason is much slower than unix http proxy.
But, in go 1.11.2, unix http is slower than unix fcgi
go:
nginx conf:
Screenshots
fcgi usocket
http usocket
The text was updated successfully, but these errors were encountered: