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

Method do_io_read

src/proxy/http2/Http2Stream.cc:507–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505}
506
507VIO *
508Http2Stream::do_io_read(Continuation *c, int64_t nbytes, MIOBuffer *buf)
509{
510 if (buf) {
511 read_vio.set_writer(buf);
512 } else {
513 read_vio.buffer.clear();
514 }
515
516 read_vio.mutex = c ? c->mutex : this->mutex;
517 read_vio.cont = c;
518 read_vio.nbytes = nbytes;
519 read_vio.ndone = 0;
520 read_vio.vc_server = this;
521 read_vio.op = VIO::READ;
522
523 // TODO: re-enable read_vio
524
525 return &read_vio;
526}
527
528VIO *
529Http2Stream::do_io_write(Continuation *c, int64_t nbytes, IOBufferReader *abuffer, bool /* owner ATS_UNUSED */)

Calls 2

set_writerMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected