MCPcopy Create free account
hub / github.com/apache/trafficserver / start

Method start

src/proxy/http2/Http2ClientSession.cc:75–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void
76Http2ClientSession::start()
77{
78 SCOPED_MUTEX_LOCK(lock, this->mutex, this_ethread());
79
80 SET_HANDLER(&Http2ClientSession::main_event_handler);
81 HTTP2_SET_SESSION_HANDLER(&Http2ClientSession::state_read_connection_preface);
82
83 VIO *read_vio = this->do_io_read(this, INT64_MAX, this->read_buffer);
84 write_vio = this->do_io_write(this, INT64_MAX, this->_write_buffer_reader);
85
86 this->connection_state.init(this);
87 this->connection_state.send_connection_preface();
88
89 if (this->_read_buffer_reader->is_read_avail_more_than(0)) {
90 this->handleEvent(VC_EVENT_READ_READY, read_vio);
91 }
92}
93
94void
95Http2ClientSession::new_connection(NetVConnection *new_vc, MIOBuffer *iobuf, IOBufferReader *reader)

Callers

nothing calls this directly

Calls 7

this_ethreadFunction · 0.85
do_io_readMethod · 0.45
do_io_writeMethod · 0.45
initMethod · 0.45
handleEventMethod · 0.45

Tested by

no test coverage detected