1. 02 Jun, 2015 1 commit
  2. 30 Jan, 2015 1 commit
  3. 22 Jan, 2015 1 commit
  4. 02 Jan, 2014 1 commit
  5. 20 Dec, 2013 1 commit
  6. 06 Nov, 2013 1 commit
    • Pieter Hintjens's avatar
      Removed over-long pauses in tests · 5b60540e
      Pieter Hintjens authored
      - used msleep (10) in most places instead of zmq_sleep (1)
      - may cause failures on slower machines
      - to change, modify SETTLE_TIME in testutil.h
      - tested down to 1 msec on fast boxes
      5b60540e
  7. 20 Sep, 2013 1 commit
  8. 18 Sep, 2013 1 commit
  9. 15 Sep, 2013 1 commit
    • Pieter Hintjens's avatar
      Added z85 codec to ZMQ API · 576e3ca5
      Pieter Hintjens authored
      * Removed redundant Z85 code and include files from project
      * Simplified use of headers in test cases (now they all just use testutil.hpp)
      * Export zmq_z85_encode() and zmq_z85_decode() in API
      * Added man pages for these two functions
      576e3ca5
  10. 17 Aug, 2013 1 commit
  11. 21 May, 2013 1 commit
  12. 12 Mar, 2013 1 commit
  13. 31 Jan, 2013 1 commit
    • Pieter Hintjens's avatar
      Lots of cleanups to self-tests · 963c6a8e
      Pieter Hintjens authored
      * Removed or truncated sleeps so the tests run faster
      * Removed dependencies on zmq_utils
      * Rewrote a few tests that were confusing
      * Minor code cleanups
      963c6a8e
  14. 30 Jan, 2013 1 commit
  15. 17 Jan, 2013 1 commit
  16. 08 Jan, 2013 3 commits
  17. 30 Nov, 2012 1 commit
    • Ian Barber's avatar
      Serialise test_connect_delay · 75161b5c
      Ian Barber authored
      Simplify the test connect delay test script, removing the threads and
      moving to a serialised version. AFAICS this should provide the same
      test, but without the race conditions that happened with the previous
      test.
      75161b5c
  18. 25 Oct, 2012 1 commit
  19. 18 Sep, 2012 1 commit
  20. 06 Sep, 2012 1 commit
    • Arthur O'Dwyer's avatar
      Add "#undef NDEBUG" to all tests. · cf20932d
      Arthur O'Dwyer authored
      This change makes sure that even if the tests are built in a
      "release" configuration (with optimizations and NDEBUG turned on),
      the assertions won't get compiled out of the tests themselves.
      
      The C standard guarantees that the most recent inclusion of
      <assert.h> is the one that counts, so it's important that the
      "#undef NDEBUG/#include <assert.h>" come as the last thing in
      the block of header files.
      
      "testutil.hpp" includes <assert.h>, so I've left <assert.h> out
      of any test that #includes "testutil.hpp", just for the sake of
      brevity.
      cf20932d
  21. 04 Sep, 2012 1 commit
    • Ian Barber's avatar
      Fixing PGM issues · d7331b7b
      Ian Barber authored
      Hopefully fixed LIBZMQ-427 - there was a slight typo in the init_address
      refactor. The encoder refactoring had also broken pgm_sender and
      receiver, but just required updating to use the new functions.
      d7331b7b
  22. 27 Aug, 2012 1 commit
  23. 13 Jun, 2012 2 commits
  24. 12 Jun, 2012 9 commits
  25. 11 Jun, 2012 1 commit
    • Ian Barber's avatar
      Add disconnect test · d8f3487e
      Ian Barber authored
      Add a new section to the connect delay test that disconnects and
      reconnects a socket to ensure that some messages are appropriately
      blocked.
      d8f3487e
  26. 03 Jun, 2012 2 commits
    • Ian Barber's avatar
      Fix whitespace in test · 0b3478d6
      Ian Barber authored
      0b3478d6
    • Ian Barber's avatar
      Fix a number of whitespace issues in various parts of the code, add validation… · 6f6466f0
      Ian Barber authored
      Fix a number of whitespace issues in various parts of the code, add validation to most calls on the test and take a first stab at implementing the reconnection pipe blocking.
      
      It didn't seem straightforward to use any of the existing process calls, so I have added a new command to command_t and friends called detach. This instructs the socket_base to remove the pipe from it's pipe list. The session base stores a copy of the outpipe, and will resend the bind command on reconnection. This should allow balancing again.
      6f6466f0
  27. 01 Jun, 2012 1 commit
    • Ian Barber's avatar
      After speaking with Ben Gray and the discussion on the mailing list, this is an… · fe3fb419
      Ian Barber authored
      After speaking with Ben Gray and the discussion on the mailing list, this is an attempt to create a sockopt to allow connecting pipes to not immediately be available for traffic. The problem is in a PUSH to many PULL situation, where there is a connect to a PULL which is not there. This connect will immediately create a pipe (unlike bind), and traffic will be load balanced to that pipe. This means if there is a persistently unavailable end point then the traffic will queue until HWM is hit, and older messages will be lost.
      
      This patch adds a sockopt ZMQ_DELAY_ATTACH_ON_CONNECT, which if set to 1 will attempt to preempt this behavior. It does this by extending the use of the session_base to include in the outbound as well as the inbound pipe, and only associates the pipe with the socket once it receives the connected callback via a process_attach message. This works, and a test has been added to show so, but may introduce unexpected complications. The shutdown logic in this class has become marginally more awkward because of this, requiring the session to serve as the sink for both pipes if shutdown occurs with a still-connecting pipe in place. It is also possible there could be issues around flushing the messages, but as I could not directly think how to create such an issue I have not written any code with regards to that.
      
      The documentation has been updated to reflect the change, but please do check over the code and test and review.
      fe3fb419