[thrift] Ruby TThreadedServer and TThreadPoolServer
authorChristopher Piro <cpiro@apache.org>
Fri, 18 Jan 2008 21:35:34 +0000 (21:35 +0000)
committerChristopher Piro <cpiro@apache.org>
Fri, 18 Jan 2008 21:35:34 +0000 (21:35 +0000)
commita9a4d481e08b44972324db1620871cd1a83a804f
tree73463aab131c267415c3678c17ab6d4b4d77acb4
parent050f3200a2963d00212d4f4b62acfe428ad789a6
[thrift] Ruby TThreadedServer and TThreadPoolServer

Summary: They both use the same handler for all connections and thus assume the handler is thread-safe. The TThreadPoolServer preserves threads, so it wouldn't be too hard to make a variant that used a separate handler for each thread and thus didn't require thread safety.

Reviewed By: mcslee

Test Plan: loads without error

Revert Plan: ok

Other Notes: contributed by William Morgan (w@adap.tv)

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665438 13f79535-47bb-0310-9956-ffa450edef68
lib/rb/lib/thrift/server/tserver.rb