n0-computer / iroh

A toolkit for building distributed applications
https://iroh.computer
Apache License 2.0
2.57k stars 161 forks source link

Handling `UdpSocket::bind_raw` failing to set buffer sizes #2910

Open PaulOlteanu opened 5 days ago

PaulOlteanu commented 5 days ago

On an iPhone X, I've had UdpSocket::bind_raw fail to set its buffer sizes due to Os { code: 55, kind: Uncategorized, message: \"No buffer space available\" } a few times. The end result is a lot of log spam but not much I can do about it.

I believe even if that fails it'll continue fine with the default buffer sizes. Should the buffer size it attempts to use be configurable rather than a fixed 7MB?

flub commented 4 days ago

Yes, it should keep working just fine. This is rather optional.

I agree it makes sense to have this configurable.