vlc_stream: cleanup error handling in vlc_stream_Read()
1 unresolved thread
1 unresolved thread
These improvements make !2130 (merged) mostly useless.
Merge request reports
Activity
Filter activity
changed milestone to %4.0
added Component::Core label
assigned to @robUx4
- Resolved by Steve Lhomme
added MRStatus::InReview label
added 1 commit
- 380c8297 - vlc_stream: don't read more than SSIZE_MAX at once in vlc_stream_Read()
added 1 commit
- cbf059c6 - vlc_stream: don't read more than SSIZE_MAX at once in vlc_stream_Read()
501 501 { 502 502 if (vlc_killed()) 503 503 break; 504 continue; 504 if (errno == EINTR || errno == EAGAIN) Yeah. For better or worse, the convention so far is to return 0 on fatal error. If the result is negative, then that is not a fatal error.
Obviously this creates a problem that fatal errors cannot be distinguished between one another, or with normal end-of-stream, but that is the current state. As long as that remains true, this change is incorrect and may cause fatal errors.
added MRStatus::Stale label and removed MRStatus::InReview label
mentioned in merge request !3800 (merged)