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
I was blocked in my progress on my Linux project because srt_epoll_wait() seemingly didn't detect the closure of the write end of a pipe by observing its read end's file descriptor (as system socket). No problem detecting available data on it though.
I had a look at the libsrt code and made tests with standard epoll().
epoll() will detect this closure event and report the file descriptor with the event EPOLLHUP. srt_epoll_wait() only watches EPOLLIN and EPOLLOUT in the events reported for system sockets so it cannot report this occurrence.
I could work around this limitation in my project. I considered posting a bug report but didn't know if it should be a bug report or a feature resquest. Maybe it's out of scope, although there are other useful events that epoll() can report that srt_epoll_wait() cannot.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I was blocked in my progress on my Linux project because srt_epoll_wait() seemingly didn't detect the closure of the write end of a pipe by observing its read end's file descriptor (as system socket). No problem detecting available data on it though.
I had a look at the libsrt code and made tests with standard epoll().
epoll() will detect this closure event and report the file descriptor with the event EPOLLHUP. srt_epoll_wait() only watches EPOLLIN and EPOLLOUT in the events reported for system sockets so it cannot report this occurrence.
You can see this here:
srt/srtcore/epoll.cpp
Lines 641 to 653 in fd56385
I could work around this limitation in my project. I considered posting a bug report but didn't know if it should be a bug report or a feature resquest. Maybe it's out of scope, although there are other useful events that epoll() can report that srt_epoll_wait() cannot.
Do you think this limitation should be addressed?
Beta Was this translation helpful? Give feedback.
All reactions