diff --git a/LICENSE b/LICENSE index 4225b265c95..0c20e2aaa87 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2017 john@johng.cn http://johng.cn +Copyright (c) 2017 john@goframe.org https://goframe.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/g/net/ghttp/ghttp_server_graceful.go b/g/net/ghttp/ghttp_server_graceful.go index 1628ae61577..d7444eb2853 100644 --- a/g/net/ghttp/ghttp_server_graceful.go +++ b/g/net/ghttp/ghttp_server_graceful.go @@ -11,7 +11,6 @@ import ( "crypto/tls" "errors" "fmt" - "github.com/gogf/gf/g/net/greuseport" "github.com/gogf/gf/g/os/glog" "github.com/gogf/gf/g/os/gproc" "net" @@ -146,7 +145,7 @@ func (s *gracefulServer) getNetListener(addr string) (net.Listener, error) { } else { // 如果监听失败,1秒后重试,最多重试3次 for i := 0; i < 3; i++ { - ln, err = greuseport.Listen("tcp", addr) + ln, err = net.Listen("tcp", addr) if err != nil { err = fmt.Errorf("%d: net.Listen error: %v", gproc.Pid(), err) time.Sleep(time.Second)