| 339 | } |
| 340 | |
| 341 | int |
| 342 | MC::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 | |
| 371 | int |
| 372 | MC::write_to_client(int64_t towrite) |
nothing calls this directly
no test coverage detected