Commit fa91ba42 authored by TousakaRin's avatar TousakaRin

Feedback to CircuitBreaker in socket:: SetFailed

parent 8e352c54
......@@ -850,6 +850,7 @@ int Socket::SetFailed(int error_code, const char* error_fmt, ...) {
vref, MakeVRef(id_ver + 1, NRefOfVRef(vref)),
butil::memory_order_release,
butil::memory_order_relaxed)) {
GetOrNewSharedPart()->circuit_breaker.MarkAsBroken();
// Update _error_text
std::string error_text;
if (error_fmt != NULL) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment