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

Method _process_read_vio

src/proxy/http3/Http3Transaction.cc:577–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

575}
576
577int64_t
578Http3Transaction::_process_read_vio()
579{
580 if (this->_info.read_vio->cont == nullptr || this->_info.read_vio->op == VIO::NONE) {
581 return 0;
582 }
583
584 ink_release_assert(this->_thread == this_ethread());
585 SCOPED_MUTEX_LOCK(lock, this->_info.read_vio->mutex, this_ethread());
586
587 uint64_t nread = 0;
588 auto error = this->_frame_dispatcher.on_read_ready(this->_info.adapter.stream().id(), Http3StreamType::UNKNOWN,
589 *this->_info.read_vio->get_reader(), nread);
590 if (error && error->cls != Http3ErrorClass::UNDEFINED) {
591 Http3TransDebug("Error occured while processing read vio: %hu, %s", error->get_code(), error->msg);
592 return 0;
593 }
594 this->_info.read_vio->ndone += nread;
595 return nread;
596}
597
598int64_t
599Http3Transaction::_process_write_vio()

Callers 3

state_stream_openMethod · 0.95
do_io_readMethod · 0.80
reenableMethod · 0.80

Calls 10

this_ethreadFunction · 0.85
on_read_readyMethod · 0.80
get_readerMethod · 0.80
get_codeMethod · 0.80
memcpyMethod · 0.80
get_writerMethod · 0.80
idMethod · 0.45
readMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected