You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but then I realized that session.exp_eof does not drain the buffer if a timeout is reached, meaning that if I try to read the next chunk, the entire output up to this point is going to be returned yet again. This seems to work:
I have a
I want to get the existing output of a process after 100ms. This seemed to work at first:
but then I realized that
session.exp_eof
does not drain the buffer if a timeout is reached, meaning that if I try to read the next chunk, the entire output up to this point is going to be returned yet again. This seems to work:But I'm wondering, is there a better way to implement "read whatever is available after 100ms" than this?
The text was updated successfully, but these errors were encountered: