URLConnection.SendSync kCFStreamErrorDomainSSL Error

  1. 6 weeks ago

    Alex B

    Feb 12 Pre-Release Testers, Xojo Pro Canada

    Hello,

    When calling URLConnection.SendSync on a secure website (like "https://www.google.com") from a HTTPRequestThread (like a PushButton on a WebPage) it seems to timeout and log an error in the debug log.

    [54961:8762411] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)

    It would appear to only happen in HTTPRequestThread's, it works fine in the App.Open Event.

    Sample code:

    Dim Sock As New URLConnection
    Dim s As String = Sock.SendSync("GET","https://www.google.com",10)
    Break

    Running the same code but with a HTTP connection causes the URLConnection to hang and never timeout (at least 5 minutes, I didn't wait any longer)

    Can anyone confirm this is happening?

    Thanks,
    Alex

    Setup: macOS High Serria 10.13.6

  2. 5 weeks ago

    Beatrix W

    Feb 12 Pre-Release Testers Europe (Germany)

    https://blog.xojo.com/2018/12/14/app-transport-security-on-macos/ ?

  3. Alex B

    Feb 14 Pre-Release Testers, Xojo Pro Canada

    @Beatrix W https://blog.xojo.com/2018/12/14/app-transport-security-on-macos/ ?

    Hello, I did test all the recomended changes before. It would appear to not be an issue for desktop apps, only web apps, and only in threads. The links I was testing with were both HTTPS and using latests security standards. Calling the code from the main thread does not cause this issue.

  4. Beatrix W

    Feb 14 Pre-Release Testers Europe (Germany)

    Make a simple and example and report as bug. Should web apps have threads?

  5. Alex B

    Feb 14 Pre-Release Testers, Xojo Pro Canada

    @Beatrix W Make a simple and example and report as bug. Should web apps have threads?

    Will do, I am pretty sure that each HTTP request to the web app is run in their own thread.

    Thanks

  6. Greg O

    Feb 15 Xojo Inc

    @Beatrix W https://blog.xojo.com/2018/12/14/app-transport-security-on-macos/ ?

    Console apps don’t support plist files in Xojo. A feature request was just filed in January.

    @Alex B Calling the code from the main thread does not cause this issue.

    You might try using a Timer (as opposed to a WebTimer) as those always fire on the main thread.

or Sign Up to reply!