Commit 3daad56c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

http: fix handling of EINTR and EAGAIN

Those errors are not fatal and also do not imply end-of-stream.
parent dc1b41f1
......@@ -648,7 +648,10 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
if( ReadData( p_access, &i_read, p_buffer, i_len ) )
goto fatal;
if( i_read <= 0 )
if( i_read < 0 )
return -1; /* EINTR / EAGAIN */
if( i_read == 0 )
{
/*
* I very much doubt that this will work.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment