event_set(&event_, -1, EV_TIMEOUT, &AsyncTimeout::libeventCallback, this);
event_.ev_base = nullptr;
- timeoutManager_->attachTimeoutManager(
+ if (eventBase) {
+ timeoutManager_->attachTimeoutManager(
this,
TimeoutManager::InternalEnum::NORMAL);
+ }
RequestContext::getStaticContext();
}