yggdrasil-network / yggdrasil-android

Reference implementation for connecting to the Yggdrasil Network from Android devices
MIT License
125 stars 19 forks source link

Fixed the writer thread. #42

Closed Revertron closed 1 year ago

Revertron commented 1 year ago

If you go to Speedtest and run it, sometimes Yggdrasil just stops working. I've investigated the issue, and got that we catch an IOException that sounds like write failed: ENOBUFS (No buffer space available). I've added some logging to see that. This exception is not critical, we can just drop that packet, and TCP will handle the problem. So we don't break the loop, but do continue and it continues working as it should.