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

Method read_from_client

plugins/experimental/memcache/tsmemcache.cc:341–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341int
342MC::read_from_client()
343{
344 if (swallow_bytes) {
345 return TS_SET_CALL(&MC::swallow_then_read_event, VC_EVENT_READ_READY, rvio);
346 }
347 read_offset = 0;
348 end_of_cmd = 0;
349 ngets = 0;
350 ff = 0;
351 if (crvc) {
352 crvc->do_io_close();
353 crvc = 0;
354 crvio = NULL;
355 }
356 if (cwvc) {
357 cwvc->do_io_close();
358 cwvc = 0;
359 cwvio = NULL;
360 }
361 if (cbuf) {
362 cbuf->clear();
363 }
364 ink_assert(!crvc && !cwvc);
365
366 ats_free(tbuf);
367
368 return TS_SET_CALL(&MC::read_from_client_event, VC_EVENT_READ_READY, rvio);
369}
370
371int
372MC::write_to_client(int64_t towrite)

Callers

nothing calls this directly

Calls 3

ats_freeFunction · 0.85
do_io_closeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected