Yeah...I've not been able to figure that out. It only happens
intermittently to me. If you go into test/gateway_test.rb and comment
out the
test_initialize_when_connect_lags_should_open_and_set_session_value
test (lines 13-17), it should go away.
Any threading/concurrency gurus around
The problem here is that your signaling thread is signaling before the
originating thread has had the chance to wait on the condition. This
results in the wait hanging forever waiting for a signal. The fix is
to synchronize the creation of the background thread as well. Here's a
patch that fixes