libtpa icon indicating copy to clipboard operation
libtpa copied to clipboard

TPA_EVENT_HUP & TPA_EVENT_ERR

Open johndb2016 opened this issue 1 year ago • 2 comments

image when tperf processes reading, why should we care about TPA_EVENT_HUP & TPA_EVENT_ERR ?

johndb2016 avatar Aug 29 '24 09:08 johndb2016

The basic idea is to trigger the tpa_zreadv API call, which will return -1 (with the corrseponding errno) in the end to trigger the close procedure.

yuanhanliu avatar Sep 03 '24 08:09 yuanhanliu

i have two questions :

  1. We can just trigger the close procedure without tpa_zreadv, unless u wanna errono set or ?
  2. What kind of situation may lead to TPA_EVENT_HUP & TPA_EVENT_ERR, can u give me some examples? if we got that, we should close the connection and rebuild a new one?

johndb2016 avatar Sep 03 '24 12:09 johndb2016