1. 15 Mar, 2019 1 commit
  2. 06 Mar, 2019 1 commit
  3. 05 Feb, 2019 1 commit
  4. 24 Jan, 2019 3 commits
  5. 14 Dec, 2018 1 commit
    • Silvio Lazzeretti's avatar
      Partially revert "GSocket: Fix race conditions on Win32 if multiple threads... · 9e89749e
      Silvio Lazzeretti authored
      Partially revert "GSocket: Fix race conditions on Win32 if multiple threads are waiting on conditions for the same socket"
      
      This partially reverts commit 799f8dcd.
      This patch seems to break the writability status of the server socket: once
      somebody writes to it with success, then it reports it is not writable
      anymore. Also, when the client socket has the flag FD_CONNECT set once,
      it is never cleared and then it reports it is always writable, also when
      it is not.
      9e89749e
  6. 09 Jun, 2018 1 commit
    • Ting-Wei Lan's avatar
      socket: Fix get_available_bytes on systems other than Linux and Windows · 293c103a
      Ting-Wei Lan authored
      FIONREAD ioctl on Linux reports the size of payload on UDP sockets.
      However, other systems usually add internal header size to the reported
      size, which vary between different operating systems and socket types.
      To make it work on more systems, we should follow what we do on Windows
      instead of using this unreliable FIONREAD ioctl.
      
      This fixes socket test on FreeBSD.
      293c103a
  7. 25 Apr, 2018 1 commit
  8. 24 Apr, 2018 1 commit
  9. 20 Apr, 2018 2 commits
  10. 08 Jan, 2018 1 commit
  11. 25 Oct, 2017 1 commit
  12. 24 Oct, 2017 1 commit
  13. 16 Oct, 2017 1 commit
  14. 11 Oct, 2017 1 commit
  15. 10 Oct, 2017 1 commit
  16. 03 Aug, 2017 1 commit
    • Philip Withnall's avatar
      Consistently save errno immediately after the operation setting it · 5cddde1f
      Philip Withnall authored
      Prevent the situation where errno is set by function A, then function B
      is called (which is typically _(), but could be anything else) and it
      overwrites errno, then errno is checked by the caller.
      
      errno is a horrific API, and we need to be careful to save its value as
      soon as a function call (which might set it) returns. i.e. Follow the
      pattern:
        int errsv, ret;
        ret = some_call_which_might_set_errno ();
        errsv = errno;
      
        if (ret < 0)
          puts (strerror (errsv));
      
      This patch implements that pattern throughout GLib. There might be a few
      places in the test code which still use errno directly. They should be
      ported as necessary. It doesn’t modify all the call sites like this:
        if (some_call_which_might_set_errno () && errno == ESOMETHING)
      since the refactoring involved is probably more harmful than beneficial
      there. It does, however, refactor other call sites regardless of whether
      they were originally buggy.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=785577
      5cddde1f
  17. 14 Jun, 2017 1 commit
  18. 29 May, 2017 1 commit
  19. 28 Apr, 2017 1 commit
    • Philip Withnall's avatar
      docs: Fix (nullable) (optional) annotations · b63469d7
      Philip Withnall authored
      There are a few places where commit 18a33f72 replaced valid (nullable)
      (optional) annotations with just (optional). That has a different
      meaning.
      
      (nullable) (optional) can only be applied to gpointer* parameters, and
      means that both the gpointer* and returned gpointer can be NULL. i.e.
      The caller can pass in NULL to ignore the return value; and the returned
      value can be NULL.
      
      (optional) can be applied to anything* parameters, and means that the
      anything* can be NULL. i.e. The caller can pass in NULL to ignore the
      return value. The return value cannot be NULL.
      Signed-off-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>
      b63469d7
  20. 03 Apr, 2017 1 commit
  21. 05 Dec, 2016 1 commit
    • Sebastian Dröge's avatar
      GSocket: Fix race conditions on Win32 if multiple threads are waiting on... · 799f8dcd
      Sebastian Dröge authored
      GSocket: Fix race conditions on Win32 if multiple threads are waiting on conditions for the same socket
      
      WSAWaitForMultipleEvents() only returns for one of the waiting threads, and
      that one might not even be the one waiting for the condition that changed. As
      such, only let a single thread wait on the event and use a GCond for all other
      threads.
      
      With this it is possible to e.g. have an UDP socket that is written to from
      one thread and read from in another thread on Win32 too. On POSIX systems this
      was working before already.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=762283
      799f8dcd
  22. 22 Nov, 2016 1 commit
  23. 20 Nov, 2016 1 commit
  24. 12 Jul, 2016 1 commit
  25. 04 May, 2016 1 commit
  26. 02 Feb, 2016 1 commit
  27. 13 Oct, 2015 1 commit
  28. 05 Oct, 2015 2 commits
  29. 04 Oct, 2015 2 commits
  30. 01 Oct, 2015 5 commits
  31. 28 Sep, 2015 1 commit