> So what's the best course of action?
>
> - Bump the size to be twice as big instead of 5 times
> - Set the option twice
> - Something else completely different

I'd recommend a setsockopt/getsockopt feedback loop that tries to set it to what
the user requested, and if that fails, sets it as high as the OS allows and then
logs an error message stating that the requested buffer size exceeds that of the
maximum the OS allows. Something along those lines anyway.

> Ignoring the issue is not an option =)

Agreed.

Regards,
John Högberg
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to