Closed Montrazul closed 7 years ago
Is this the timeout you're referring to?
2017-03-16 19:15:28.085 MYPROJECT[8954:147713] Sync: Connection[1]: Connecting to endpoint '2a01:488:42:1000:50ed:8479:ff86:e919:9444' (1/2)
2017-03-16 19:16:43.130 MYPROJECT[8954:147713] Sync: Connection[1]: Failed to connect to endpoint '2a01:488:42:1000:50ed:8479:ff86:e919:9444': Operation timed out
It appears that the hostname you're connecting to resolves to both an IPv4 and IPv6 address. The timeout happens when attempting to connect to the Realm Object Server connect via the IPv6 address. This may be because you've not configured the Object Server to listen on the IPv6 interface, or a firewall is preventing the connection when made via IPv6, or any number of similar causes.
And this is only when using 2.4.4
? We never faced that problem using 2.4.3
Nothing has changed with regards to this aspect of Realm's behavior between v2.4.3 and v2.4.4.
So then it is something related to 2.4.4. Since we have no problems with 2.4.3.
That's quite possibly due to luck rather than anything having changed with Realm.
As I noted earlier, the hostname you're connecting to resolves to both an IPv4 and an IPv6 address. The order in which Realm attempts to connect to these addresses is undefined (typically it's the order in which the operating system happens to provide them to us). If we happen to connect to the IPv4 address first, or the device doesn't have IPv6 connectivity and so only the IPv4 address is used, the timeout will not be observed.
I would suggest the following:
We tested four different realm versions now. The older three werent even trying to use IPv6. Never. And the 2.4.4 is always using IPv6 first. So... I guess there has to be a change causing this.
But ofcourse you are right. Its simple to handle it. A simple forwarding does the trick.
Hello. Today I updated to realm version 2.4.4 and since I have done it the very first connection attempt always fails. See the following logoutput:
As you can see the first connection failed. The second is successfull. It is happening on every start of my app when I do the following: