bytedance/libtpa

TPA_EVENT_HUP & TPA_EVENT_ERR

Opened this issue · 2 comments

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

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.

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?