n0-computer / iroh

peer-2-peer that just works
https://iroh.computer
Apache License 2.0
2.61k stars 165 forks source link

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

Open PaulOlteanu opened 2 weeks ago

PaulOlteanu commented 2 weeks 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 2 weeks ago

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

I agree it makes sense to have this configurable.