From: Martin Bosslet Date: 2011-09-23T12:24:16+09:00 Subject: [ruby-core:39682] [Ruby 1.9 - Bug #5336] [PATCH] test_ssl_session: wait for callbacks to run in server thread Issue #5336 has been updated by Martin Bosslet. Target version changed from 1.9.x to 1.9.3 When looping I encountered the same behaviour as Eric. With his patch the problem is now gone. ---------------------------------------- Bug #5336: [PATCH] test_ssl_session: wait for callbacks to run in server thread http://redmine.ruby-lang.org/issues/5336 Author: Eric Wong Status: Closed Priority: Normal Assignee: Martin Bosslet Category: ext Target version: 1.9.3 ruby -v: ruby 1.9.3dev (2011-09-17 revision 33263) [x86_64-linux] test/openssl/test_ssl_session.rb: wait for callbacks to run in server thread Closing the SSL connection on the client side does not ensure the server side has closed and called all the needed callbacks in the server thread. Using Thread.pass here should force the server thread to run and call the needed callbacks. I needed to reproduce the case like this after a few loops: while ./ruby -I .ext/x86_64-linux/ \ test/openssl/test_ssl_session.rb -v \ -n test_ctx_server_session_cb do : done The above loop appears to run indefinitely with this patch applied. -- http://redmine.ruby-lang.org