URLConnection slow on Windows

Hello,

I am experiencing and customers too some differences between macOS and Windows on URLConnection.

I am using the exact same code for this part for macOS and Windows in async mode.

The time needed for the ContentReceived Event to happen (breakpoint on first row) is different:

  • macOS its instant or few seconds for big payload
  • windows its few seconds to minutes to just reach the breakpoint

App is built using Xojo2025r2.1
macOS tested is Sonoma
Windows tested is 11

Any hint regarding that?

Thank you

Hi Julien
Have you found a solution for this problem? I currently have the same issue with URLConnection on Windows 11 using a XOJO 2026r3 DesktopApp. According to an old Blog post (2017) this is because of slow IPv6 DNS request and that Windows is first asking v6 DNS and after that v4.
Disabling IPv6 via registry solves the problem for me, but this is more a hack than a solution.
In my opinion XOJO should provide a property like “DisableIPv6” on the URLConnection class, as other frameworks (e.g. dotnet) do.