| 73 | } |
| 74 | |
| 75 | void |
| 76 | Http2ClientSession::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 | |
| 94 | void |
| 95 | Http2ClientSession::new_connection(NetVConnection *new_vc, MIOBuffer *iobuf, IOBufferReader *reader) |
nothing calls this directly
no test coverage detected