home.social

#urlsession — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #urlsession, aggregated by home.social.

fetched live
  1. #URLSession When I run my end-to-end tests from Swift against my localhost Ruby server (Puma, Rails 7), I sometimes get network timeout errors (URLError code -1001). Server looks fine, it's just as if the client does not receive some replies. I never have those errors when I'm connecting to a remote server (nginx+passenger). Does this ring a bell to anyone?

  2. I've been slowly refactoring my network code to move to a newer backend,, and in the process I moved the client code from using the Moya lib to basic URLSession. Moya has been great and works well, but it's not being updated anymore and has no async/await support. Anyway, as I last night removed the last of the Moya code the logging disappeared! So Moya was doing something to trigger the internal network logging and now it's gone. Logging bliss again!

    #ios #moya #urlsession