MCPcopy Create free account
hub / github.com/apache/brpc / StopIdleTimer

Method StopIdleTimer

src/brpc/stream.cpp:701–708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699}
700
701void Stream::StopIdleTimer() {
702 if (_options.idle_timeout_ms < 0) {
703 return;
704 }
705 if (_idle_timer != 0) {
706 bthread_timer_del(_idle_timer);
707 }
708}
709
710void Stream::Close(int error_code, const char* reason_fmt, ...) {
711 _fake_socket_weak_ref->SetFailed();

Callers 1

ConsumeMethod · 0.80

Calls 1

bthread_timer_delFunction · 0.85

Tested by

no test coverage detected