1. 04 Apr, 2017 2 commits
    • Jake Cobb's avatar
      Prevent DOS by asserts in TCP tuning (#2492) · 5d5263ed
      Jake Cobb authored
      * Prevent DOS by asserts in TCP tuning
      
      -Propagates socket option errors from the
      tuning functions to the callers.
      -Asserts a subset of error conditions during tuning,
      excluding external network causes.
      -Checks tuning results in 3 call sites and treats
      them like failures to connect, accept, etc.
      
      * Fix variable name
      
      * Remove lambda requiring C++11
      5d5263ed
    • bbdb68's avatar
      Problem: no windows UWP support · 1d58a009
      bbdb68 authored
      * add define for windows/UWP
      
      * prevent issue with COM references
      
      * gettickcount not available on uwp
      
      * add compiler definitions
      
      * add convenitnece cmake file
      
      * brute force uwp compilation
      
      * fix compiler version
      
      * cosmetics
      1d58a009
  2. 04 Jan, 2017 1 commit
    • Luca Boccassi's avatar
      Problem: peer can close connection before SO_NOSIGPIPE is set · 31a3a068
      Luca Boccassi authored
      Solution: setsockopt returns EINVAL if the connection was closed by
      the peer after the accept returned a valid socket. This is a valid
      network error and should not cause an assert.
      To handle this we have to extract the setsockopt from the stream
      engine, as there's no clean way to return an error from the
      constructor. Instead, try to set this option before creating the
      engine in the callers, and return immediately as if the accept
      had failed to avoid churn. Do the same for the connect calls by
      setting the option in open_socket, so that the option for that
      case is set even before connecting, so there's no possible race
      condition.
      Since this has to be done in 4 places (tcp/ipc listener, socks
      connecter and open_socket) add an utility function in ip.cpp.
      Fixes #1442
      31a3a068
  3. 17 Sep, 2016 1 commit
  4. 30 Jul, 2016 1 commit
  5. 01 Jun, 2016 1 commit
  6. 14 May, 2016 1 commit
  7. 08 May, 2016 1 commit
  8. 04 May, 2016 1 commit
  9. 01 May, 2016 1 commit
  10. 07 Apr, 2016 2 commits
  11. 21 Feb, 2016 2 commits
  12. 18 Feb, 2016 1 commit
  13. 09 Feb, 2016 2 commits
  14. 08 Feb, 2016 1 commit
  15. 04 Feb, 2016 1 commit
  16. 28 Jan, 2016 1 commit
  17. 14 Aug, 2015 2 commits
  18. 06 Aug, 2015 1 commit
  19. 08 Jul, 2015 1 commit
  20. 02 Jun, 2015 1 commit
  21. 22 Apr, 2015 1 commit
  22. 22 Jan, 2015 1 commit
  23. 29 Apr, 2014 1 commit
  24. 02 Apr, 2014 1 commit
  25. 06 Jan, 2014 1 commit
  26. 02 Jan, 2014 1 commit
  27. 25 Nov, 2013 1 commit
  28. 30 Jun, 2013 1 commit
  29. 17 May, 2013 1 commit
    • Pieter Hintjens's avatar
      plain_mechanism now uses options.as_server · f909b9c7
      Pieter Hintjens authored
      - we need to switch to PLAIN according to options.mechanism
      - we need to catch case when both peers are as-server (or neither is)
      - and to use username/password from options, for client
      f909b9c7
  30. 14 May, 2013 1 commit
    • Martin Hurton's avatar
      Implement ZMTP/3.0 PLAIN mechanism · 4eecda8a
      Martin Hurton authored
      This implements protocol handshake.
      We still need to design and implement 1) API changes so a user
      can set username and password, and 2) a mechanism for engine
      to authenticate users.
      4eecda8a
  31. 12 Mar, 2013 1 commit
    • Pieter Hintjens's avatar
      Removed corporate advertisements from source file headers · f0f16505
      Pieter Hintjens authored
      Copyrights had become ads for Sustrik's corporate sponsors, going against the original
      agreement to share copyrights with the community (that agreement was: one line stating
      iMatix copyright + one reference to AUTHORS file). The proliferation of corporate ads
      is also unfair to the many individual authors. I've removed ALL corporate title from
      the source files so the copyright statements can now be centralized in AUTHORS and
      source files can be properly updated on an annual basis.
      f0f16505
  32. 19 Feb, 2013 1 commit
  33. 31 Jan, 2013 1 commit
  34. 22 Jan, 2013 1 commit
  35. 21 Jan, 2013 1 commit