Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
This commit is contained in:
Mohammed Al Sahaf 2025-03-25 23:28:55 +03:00
parent e42cf4fc80
commit c65fc0bb1a
No known key found for this signature in database

View File

@ -136,7 +136,7 @@ func (fcl *fakeCloseListener) Accept() (net.Conn, error) {
} }
// call underlying accept // call underlying accept
conn, err := fcl.Accept() conn, err := fcl.sharedListener.Accept()
if err == nil { if err == nil {
// if 0, do nothing, Go's default is already set // if 0, do nothing, Go's default is already set
// and if the connection allows setting KeepAlive, set it // and if the connection allows setting KeepAlive, set it