-
Notifications
You must be signed in to change notification settings - Fork 946
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #947 from bfenetworks/release/v1.5.0
Release/v1.5.0
- Loading branch information
Showing
9 changed files
with
78 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,5 @@ coverage.txt | |
.vscode/* | ||
bfe | ||
dist/* | ||
|
||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// Copyright (c) 2021 The BFE Authors. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package mod_tcp_keepalive | ||
|
||
import ( | ||
"github.com/baidu/go-lib/log" | ||
) | ||
|
||
func setIdle(fd int, secs int) error { | ||
if openDebug { | ||
log.Logger.Debug("mod[mod_tcp_keepalive] setIdle not implemented") | ||
} | ||
|
||
return nil | ||
} | ||
|
||
func setCount(fd int, n int) error { | ||
if openDebug { | ||
log.Logger.Debug("mod[mod_tcp_keepalive] setCount not implemented") | ||
} | ||
|
||
return nil | ||
} | ||
|
||
func setInterval(fd int, secs int) error { | ||
if openDebug { | ||
log.Logger.Debug("mod[mod_tcp_keepalive] setInterval not implemented") | ||
} | ||
|
||
return nil | ||
} | ||
|
||
func setNonblock(fd int) error { | ||
if openDebug { | ||
log.Logger.Debug("mod[mod_tcp_keepalive] setNonblock not implemented") | ||
} | ||
|
||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[basic] | ||
DataPath = ../data/mod_tcp_keepalive/tcp_keepalive.data | ||
DataPath = mod_tcp_keepalive/tcp_keepalive.data | ||
|
||
[log] | ||
OpenDebug = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"Config": { | ||
"product1": [ | ||
{ | ||
"VipConf": ["180.97.93.196"], | ||
"KeepAliveParam": { | ||
"KeepIdle": 270, | ||
"KeepIntvl": 9 | ||
} | ||
} | ||
] | ||
}, | ||
"Version": "2021-06-25 14:31:05" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters