2018.03.20. 22:41 keltezéssel, Nicolas George írta:
Bodecs Bela (2018-03-20):
start a. and in a separate terminal window start b.  After 10 seconds a.
terminates but b. remains running on infinite time.
Ok, got it.

                                                      But I expected b. to
terminate after 1 sec (1000000 microsec) when no data received because a.
terminated.
Your expectation is wrong: it should terminate immediately.

The correct fix is to return AVERROR_EOF, but only if the socket type is
SOCK_STREAM.

Regards,
Should not the unix_write behaves the  same? so, when

ret = send(s->fd, buf, size, MSG_NOSIGNAL);

return 0 in case of SOCK_STREAM type, then the unix_write() should return AVERROR_EOF instead of 0?

best regards,

bb



_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to