Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
5ce7363b
Commit
5ce7363b
authored
Mar 29, 2019
by
zhujiashun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
health_check_using_rpc: refine interface name
parent
26c9f944
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
health_check.cpp
src/brpc/details/health_check.cpp
+1
-1
socket.cpp
src/brpc/socket.cpp
+1
-1
No files found.
src/brpc/details/health_check.cpp
View file @
5ce7363b
...
...
@@ -229,7 +229,7 @@ void HealthCheckTask::OnDestroyingTask() {
delete
this
;
}
void
StartHealthCheck
WithDelayMS
(
SocketId
id
,
int64_t
delay_ms
)
{
void
StartHealthCheck
(
SocketId
id
,
int64_t
delay_ms
)
{
PeriodicTaskManager
::
StartTaskAt
(
new
HealthCheckTask
(
id
),
butil
::
milliseconds_from_now
(
delay_ms
));
}
...
...
src/brpc/socket.cpp
View file @
5ce7363b
...
...
@@ -837,7 +837,7 @@ int Socket::SetFailed(int error_code, const char* error_fmt, ...) {
// comes online.
if
(
_health_check_interval_s
>
0
)
{
GetOrNewSharedPart
()
->
circuit_breaker
.
MarkAsBroken
();
StartHealthCheck
WithDelayMS
(
id
(),
StartHealthCheck
(
id
(),
GetOrNewSharedPart
()
->
circuit_breaker
.
isolation_duration_ms
());
}
// Wake up all threads waiting on EPOLLOUT when closing fd
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment