Skip to content

0.3.6

Latest

Choose a tag to compare

@Sunrisepeak Sunrisepeak released this 30 Nov 21:39
9b57ebe

On Windows every request works again. It is a patch release, so a dependency
written as a caret range, tinyhttps = "^0.3.1", resolves to it.

Winsock is started at the first socket

#26. Socket::platform_init()
(WSAStartup) existed and was never called. On Windows the first connect then
ran socket() and getaddrinfo() with Winsock unstarted, and every request
ended in statusCode = 0, statusText = "Connection failed", with nothing
saying why.

  • Socket::ensure_platform_started() runs once per process at the top of
    Socket::connect, before the first socket() or getaddrinfo();
    Socket::platform_started() says whether it ran.
  • platform_init() is unchanged and still public.
  • tests/test_winsock_start.cpp is the first socket of its process and checks
    both.