Github user oknet commented on the issue:
https://github.com/apache/trafficserver/pull/947
The InactivityCop will handle those netvc that read or write disabled.
InactivityCop will send TIMEOUT to SM or call close_UnixNetVConnection() to
close netvc directly depend on the last call to do_io_read and do_io_write.
To disable read and write but only handle Timeout Event:
do_io_read(sm, 0, NULL) and do_io_write(sm, 0, NULL)
The sm will receive TIMEOUT from InactivityCop and reset timeout or close
netvc.
To disable read and write and ignore timeout:
do_io_read(NULL, 0, NULL) and do_io_write(NULL, 0, NULL)
The sm will not receive any Event from the netvc and InactivityCop will
close netvc while timeout.
Note:
The InactivityCop try to send TIMEOUT to read.vio._cont first and then
write.vio._cont if read.vio._cont is NULL.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---