rb: Stop using fastthread, it seems to give no benefit and in fact has a bug
authorKevin Clark <kclark@apache.org>
Wed, 18 Jun 2008 01:17:14 +0000 (01:17 +0000)
committerKevin Clark <kclark@apache.org>
Wed, 18 Jun 2008 01:17:14 +0000 (01:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669008 13f79535-47bb-0310-9956-ffa450edef68

lib/rb/lib/thrift/server.rb

index 95258f0..62d210b 100644 (file)
@@ -48,11 +48,9 @@ module Thrift
   deprecate_class! :TSimpleServer => SimpleServer
 end
 
-begin
-  require 'fastthread'
-rescue LoadError
-  require 'thread'
-end
+# do *not* use fastthread
+# it has a bug that triggers on NonblockingServer
+require 'thread'
 
 module Thrift
   class ThreadedServer < Server