Closed vincentneo closed 1 year ago
Check that the option "online" is set to true. Otherwise, TDLib may need much more time to start using IPv6 addresses.
Yes, for the build used to test the described issue, option “online” is set to true every time the app is active, and set to false every time right before app is exiting. (Can’t recall exact event that I used, will update again tomorrow)
That said, I did not test this for long. Probably about max 1 minute.
If the user is online, TDLib should automatically switch to IPv6 fast enough. definitely faster than in 1 minute.
(Can’t recall exact event that I used, will update again tomorrow)
WKApplication.didBecomeActiveNotification
for setOption online true
WKApplication.willResignActiveNotification
for setOption online false
If the user is online, TDLib should automatically switch to IPv6 fast enough. definitely faster than in 1 minute.
I let it go for about 3 minutes today, still seeing the -1009 network errors shared earlier.
Here's the interesting thing that I observed today, even after re-enabling IPv4 (and at the point where IPv4 websites are already usable in Safari), the errors still keep streaming in, and attempting to open a chat (or do anything basically, that being an example), just didn't work.
This should be fixed now,
According to #63:
Is that still the expected behaviour for TDLib? If so, I think I have another bug report to file, likely targeted for watchOS/HTTP connection only.
I realised that
prefer_ipv6
must be explicitly set totrue
, in order to operate via IPv6.My test was very simple (correct me if this way of testing is flawed):
Off
on Mac settings, leaving only the Configure IPv6 withAutomatically
.It is to be noted that the Simulator network stack is different from the actual Watch network stack, so again, correct me if I am testing it wrongly.
While the likelihood of users running on IPv6-only networks probably would be very low, I thought it would still be good to file this, as a 'just-in-case', since according to #63, this seems to be incorrect behaviour, though its a very outdated reference.