Permalink
Browse files

Fix remaining problems that occur infrequently when running the eunit…

… tests (problems due to race conditions). The two remaining eunit test problems that remain are related to https://zeromq.jira.com/browse/LIBZMQ-496 (which causes "Device or resource busy (mutex.hpp:92)" for most of the remaining failures) and https://zeromq.jira.com/browse/LIBZMQ-478 (which causes "Assertion failed: ok (mailbox.cpp:79)").  The changes include proper error handling of a receive within the erlzmq2 thread, but they mainly focus on safe mutex usage for all operations.  The changes solve problems that previously occurred normally with socket destruction and context termination.  All the changes were verified by running the eunit tests continuously for more than 4 days under CentOS.
  • Loading branch information...
1 parent 63ce4e8 commit 56b4dc25d7c118a4dc9380076b4373bfca7a4ac5 @okeuday okeuday committed Mar 5, 2013
Showing with 439 additions and 140 deletions.
  1. +340 −118 c_src/erlzmq_nif.c
  2. +99 −22 test/erlzmq_test.erl
Oops, something went wrong.

0 comments on commit 56b4dc2

Please sign in to comment.