[FFmpeg-devel] [PATCH] avformat/unix: properly handling timeout at reading

Nicolas George george at nsup.org
Tue Mar 20 21:58:19 EET 2018


Bodecs Bela (2018-03-20):
> see the retry_transfer_wrapper() in avio.c If
> 
> ret = transfer_func(h, buf + len, size - len);
> 
> is always zero, so it gets into infinite loop.
> 
> transfer_func is unix_read in case of unix protocol.

Let me be more accurate: I am pretty sure you analysis is wrong as
recv() does not return 0 on timeout. Please tell how you came to that
conclusion.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180320/20e966eb/attachment.sig>


More information about the ffmpeg-devel mailing list