1. 10 Jul, 2019 1 commit
  2. 04 Jun, 2019 1 commit
    • Allison Karlitskaya's avatar
      gnetworkaddress: fix "happy eyeballs" logic · 97f8d3e1
      Allison Karlitskaya authored
      The "happy eyeballs" RFC states that on receiving a negative response
      for an IPv6 address lookup, we should wait for the IPv4 lookup to
      complete and use any results we get from there.
      
      The current code was not doing that: it was rather setting a timeout for
      failing the resolution entirely.  In scenarios where the IPv4 response
      comes more than 50ms after the IPv6 response (which is easily attainable
      under valgrind in certain configurations) this means that the IPv4
      response will never come.
      
      Remove the timeout and just wait.
      
      See merge request !865
      97f8d3e1
  3. 10 May, 2019 1 commit
  4. 26 Apr, 2019 1 commit
  5. 25 Apr, 2019 1 commit
  6. 15 Mar, 2019 1 commit
  7. 11 Feb, 2019 2 commits
  8. 07 Feb, 2019 1 commit
  9. 25 Jan, 2019 1 commit
  10. 11 Dec, 2018 3 commits
  11. 17 Oct, 2018 1 commit
  12. 28 Feb, 2018 1 commit
  13. 04 Feb, 2018 1 commit
  14. 01 Feb, 2018 2 commits
  15. 04 Dec, 2017 1 commit
  16. 29 May, 2017 1 commit
  17. 12 Oct, 2016 1 commit
  18. 29 Jun, 2016 1 commit
  19. 13 Oct, 2015 1 commit
    • Philip Withnall's avatar
      gsocketconnectable: Add a to_string() virtual method · 128c4132
      Philip Withnall authored
      Add string serialisation functions for GNetworkAddress, GSocketAddress,
      GUnixSocketAddress, GInetSocketAddress, GNetworkService and
      GSocketConnectable. These are intended for use in debug output, not for
      serialisation in network or disc protocols.
      
      They are implemented as a new virtual method on GSocketConnectable:
      g_socket_connectable_to_string().
      
      GInetSocketAddress and GUnixSocketAddress now implement
      GSocketConnectable directly to implement to_string(). Previously they
      implemented it via their abstract parent class, GSocketAddress.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=737116
      128c4132
  20. 19 Jul, 2015 1 commit
  21. 11 May, 2015 1 commit
  22. 29 Nov, 2014 1 commit
    • Dan Winship's avatar
      gnetworkaddress: Add g_network_address_new_loopback() constructor · 64f9bf96
      Dan Winship authored
      This is a convenience method for creating a GNetworkAddress which is
      guaranteed to return IPv4 and IPv6 loopback addresses. The program
      cannot guarantee that 'localhost' will resolve to both types of
      address, so programs which wish to connect to a local service over
      either IPv4 or IPv6 must currently manually create an IPv4 and another
      IPv6 socket, and detect which of the two are working. This new API
      allows the existing GSocketConnectable machinery to be used to
      automate that.
      
      Based on a patch from Philip Withnall.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=732317
      64f9bf96
  23. 14 Jul, 2014 1 commit
  24. 02 Apr, 2014 1 commit
  25. 20 Feb, 2014 1 commit
  26. 15 Feb, 2014 1 commit
    • Dan Winship's avatar
      gio: don't accept nonstandard IPv4 "numbers-and-dots" addresses · 5575a3e9
      Dan Winship authored
      In addition to the standard "192.168.1.1" format, there are numerous
      legacy IPv4 address formats (such as "192.168.257",
      "0xc0.0xa8.0x01.0x01", "0300.0250.0001.0001", "3232235777", and
      "0xc0a80101"). However, none of these forms are ever used any more
      except in phishing attempts. GLib wasn't supposed to be accepting
      these addresses (neither g_hostname_is_ip_address() nor
      g_inet_address_new_from_string() recognizes them), but getaddrinfo()
      accepts them, and so the parts of gio that use getaddrinfo()
      accidentally did accept those formats.
      
      Fix GNetworkAddress and GResolver to reject these address formats.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=679957
      5575a3e9
  27. 31 Jan, 2014 1 commit
  28. 19 Aug, 2013 2 commits
  29. 24 Jul, 2013 1 commit
  30. 24 Jun, 2013 2 commits
  31. 20 Feb, 2013 1 commit
  32. 18 Feb, 2013 1 commit
  33. 15 Feb, 2013 1 commit
  34. 10 Oct, 2012 1 commit