proxygen
proxygen::HTTPSession::ShutdownTransportCallback Class Reference
Inheritance diagram for proxygen::HTTPSession::ShutdownTransportCallback:
folly::EventBase::LoopCallback

Public Member Functions

 ShutdownTransportCallback (HTTPSession *session)
 
 ~ShutdownTransportCallback () override
 
void runLoopCallback () noexceptoverride
 
- Public Member Functions inherited from folly::EventBase::LoopCallback
virtual ~LoopCallback ()=default
 
void cancelLoopCallback ()
 
bool isLoopCallbackScheduled () const
 

Private Attributes

HTTPSessionsession_
 
std::unique_ptr< DestructorGuarddg_
 

Detailed Description

Definition at line 978 of file HTTPSession.h.

Constructor & Destructor Documentation

proxygen::HTTPSession::ShutdownTransportCallback::ShutdownTransportCallback ( HTTPSession session)
inlineexplicit

Definition at line 980 of file HTTPSession.h.

980  :
981  session_(session),
982  dg_(std::make_unique<DestructorGuard>(session)) { }
std::unique_ptr< DestructorGuard > dg_
Definition: HTTPSession.h:996
proxygen::HTTPSession::ShutdownTransportCallback::~ShutdownTransportCallback ( )
inlineoverride

Definition at line 984 of file HTTPSession.h.

984 { }

Member Function Documentation

void proxygen::HTTPSession::ShutdownTransportCallback::runLoopCallback ( )
inlineoverridevirtualnoexcept

Implements folly::EventBase::LoopCallback.

Definition at line 986 of file HTTPSession.h.

References proxygen::HTTPSession::ingressUpgraded_, proxygen::HTTPSession::isDownstream(), proxygen::HTTPSession::WriteTimeout::session_, and proxygen::HTTPSession::shutdownTransport().

986  {
987  VLOG(4) << *session_ << " shutdown from onEgressMessageFinished";
988  bool shutdownReads =
990  session_->shutdownTransport(shutdownReads, true);
991  dg_.reset();
992  }
void shutdownTransport(bool shutdownReads=true, bool shutdownWrites=true, const std::string &errorMsg="")
std::unique_ptr< DestructorGuard > dg_
Definition: HTTPSession.h:996
bool isDownstream() const

Member Data Documentation

std::unique_ptr<DestructorGuard> proxygen::HTTPSession::ShutdownTransportCallback::dg_
private

Definition at line 996 of file HTTPSession.h.

HTTPSession* proxygen::HTTPSession::ShutdownTransportCallback::session_
private

Definition at line 995 of file HTTPSession.h.


The documentation for this class was generated from the following file: