Kevin Clark [Wed, 18 Jun 2008 01:20:16 +0000 (01:20 +0000)]
rb: Set default host for benchmark to 127.0.0.1
MRI resolves localhost to ::1 (on OS X) whereas JRuby resolves it to 127.0.0.1. This means using
MRI for server and JRuby for client doesn't work.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669041
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:20:13 +0000 (01:20 +0000)]
rb: Fix the timeout used for joining threads when calling shutdown(timeout) on NonblockingServer
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669040
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:20:10 +0000 (01:20 +0000)]
rb: Add hooks for THRIFT_HOST and THRIFT_PORT in the benchmark
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669039
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:20:06 +0000 (01:20 +0000)]
rb: Add control for the number of client processes in the benchmark
You control this with THRIFT_NUM_PROCESSES, the default is 40
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669038
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:20:02 +0000 (01:20 +0000)]
rb: Add debug logger message for processing frames
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669037
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:19:59 +0000 (01:19 +0000)]
rb: Make a few of the NonblockingServer specs pass under jruby
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669036
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:19:54 +0000 (01:19 +0000)]
rb: Fix up the deprecation spec for JRuby
JRuby has different behavior regarding #method_added and #included, so the deprecation spec has to handle this
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669035
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:19:51 +0000 (01:19 +0000)]
rb: Fix the binaryprotocol spec to run under jruby
Stop testing for RangeErrors with bignums in i64, that was just an artifact of the MRI interpreter that has different behavior under jruby.
JRuby uses a different Float::MIN/MAX so stop hard-coding the binary representation
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669034
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:19:46 +0000 (01:19 +0000)]
rb: Increase the benchmark startup time and add more hooks
You can now control the number of clients per proc and calls per client with THRIFT_NUM_CALLS and THRIFT_NUM_CLIENTS.
You can also instruct the clients to log exceptions with THRIFT_LOG_EXCEPTIONS=yes
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669033
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:19:41 +0000 (01:19 +0000)]
rb: Drop the benchmark worker spawn delay to 0.01
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669032
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:19:37 +0000 (01:19 +0000)]
rb: Catch TransportException errors during the benchmark and report them
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669031
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:19:33 +0000 (01:19 +0000)]
rb: flush STDOUT after starting the benchmark server to properly kickstart the benchmark
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669030
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:19:28 +0000 (01:19 +0000)]
rb: Give the benchmark server more time to start up
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669029
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:19:23 +0000 (01:19 +0000)]
rb: Turn off debug logging in benchmark/thin_server.rb
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669028
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:19:18 +0000 (01:19 +0000)]
rb: Fix some incorrect reporting by the benchmark.
Also make it use -J-server when jruby is the server interpreter
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669027
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:19:14 +0000 (01:19 +0000)]
rb: Enhance the output of the benchmark
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669026
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:19:09 +0000 (01:19 +0000)]
rb: split up benchmark into separate server/client files and distinct interpreters
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669025
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:19:04 +0000 (01:19 +0000)]
rb: Switch from read_nonblock to readpartial to make jruby happy
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669024
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:18:57 +0000 (01:18 +0000)]
rb: Add spec to ensure UNIXServerSocket deletes the socket when closing
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669023
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:18:52 +0000 (01:18 +0000)]
rb: Enable logging debug info in benchmark/thin_server.rb
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669022
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:18:47 +0000 (01:18 +0000)]
rb: Tweak the benchmark to allow running the server in a separate process
Add a thin server library that can be run by hand
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669021
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:18:41 +0000 (01:18 +0000)]
rb: Wrap a semaphore around @serverTransport.close in NonblockingServer.shutdown
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669020
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:18:35 +0000 (01:18 +0000)]
rb: Implement Thrift::UNIXSocket and Thrift::UNIXServerSocket
In benchmarking it turns out these don't give any noticeable performance boost,
but as I've already written them, somebody may want them for something.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669019
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:18:28 +0000 (01:18 +0000)]
rb: Implement Thrift::Serializer and Thrift::Deserializer
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669018
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:18:21 +0000 (01:18 +0000)]
rb: Add the path to gen-rb to $: in spec_helper instead of in multiple different specs
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669017
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:18:14 +0000 (01:18 +0000)]
rb: Don't type-check when given a nil value.
Turn on type-checking for all specs
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669016
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:18:07 +0000 (01:18 +0000)]
rb: Implement type-checking in Thrift::Struct.new and field accessors
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669015
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:17:57 +0000 (01:17 +0000)]
rb: Fix struct_spec to use a proper description
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669014
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:17:51 +0000 (01:17 +0000)]
rb: Add helpers for optional type-checking
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669013
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:17:44 +0000 (01:17 +0000)]
rb: Completely rewrite Thrift::NonblockingServer
It now has a much better and cleaner architecture, a proper persistent thread pool,
a dedicated acceptor thread, and no concurrency issues
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669012
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:17:37 +0000 (01:17 +0000)]
rb: Add a hack to prevent fastthread from being loaded when executing specs
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669011
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:17:30 +0000 (01:17 +0000)]
rb: Enhance non-blocking read in Socket
Also prevent errors when trying to close a @handle twice
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669010
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:17:22 +0000 (01:17 +0000)]
rb: Remove an unnecessary return statement
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669009
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:17:14 +0000 (01:17 +0000)]
rb: Stop using fastthread, it seems to give no benefit and in fact has a bug
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669008
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:17:06 +0000 (01:17 +0000)]
rb: Add benchmarking code for Thrift::NonblockingServer
You can override the server to test with the THRIFT_SERVER env var
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669007
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:16:58 +0000 (01:16 +0000)]
Add synchronization around shared resources in NonblockingServer
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669006
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:16:50 +0000 (01:16 +0000)]
rb: Enhance the backwards compatibility spec to ensure that the deprecated method names really do correspond to the new method names
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669005
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:16:42 +0000 (01:16 +0000)]
rb: Stop calling rspec_clear in specs (which really should have been rspec_reset), as rspec_verify already resets
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669004
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:16:35 +0000 (01:16 +0000)]
rb: Add thrift/protocol/binaryprotocol to the root lib/thrift file to cut down on client-side requires
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669003
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:16:27 +0000 (01:16 +0000)]
rb: Add spec for shutting down NonblockingServer in response to a client message
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669002
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:16:20 +0000 (01:16 +0000)]
rb: Struct#new should properly initialize boolean values
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669001
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:16:11 +0000 (01:16 +0000)]
rb: Thrift::Socket should return false from #open? if an error occurred during a read/write (THRIFT-7)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669000
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:16:02 +0000 (01:16 +0000)]
Implement NonblockingServer and add specs
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668999
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:15:53 +0000 (01:15 +0000)]
Squelch warning about parens and standardize require for generated code
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668998
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:15:45 +0000 (01:15 +0000)]
Add optional host argument to ServerSocket
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668997
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:15:36 +0000 (01:15 +0000)]
Teach Socket how to read_nonblock
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668996
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:15:25 +0000 (01:15 +0000)]
Add a few accessors and specs to prepare for the upcoming NonblockingServer
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668995
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:15:15 +0000 (01:15 +0000)]
Remove dummy initialize method
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668994
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:15:06 +0000 (01:15 +0000)]
Rubify Socket and ServerSocket
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668993
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:14:57 +0000 (01:14 +0000)]
Finish rubifying MemoryBuffer and FramedTransport
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668992
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:14:48 +0000 (01:14 +0000)]
Make a lot of miscellaneous ruby-styling changes
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668991
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:14:36 +0000 (01:14 +0000)]
Fix default values of non-primitive types being shared between struct instances (THRIFT-4)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668989
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:14:26 +0000 (01:14 +0000)]
Mark failing tests as pending
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668988
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:14:17 +0000 (01:14 +0000)]
Fix odd bug in integration tests where it passed the wrong args to an Exception struct initializer
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668987
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:14:08 +0000 (01:14 +0000)]
Add failing spec for Socket closing when it has an error (THRIFT-7)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668986
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:13:58 +0000 (01:13 +0000)]
Add new spec for properly initializing boolean values
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668985
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:13:48 +0000 (01:13 +0000)]
Add new gen-rb task to rebuild the bundled thrift generated code for specs
Also rewrite the test task to properly abort Rake if it fails
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668984
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:13:37 +0000 (01:13 +0000)]
Add failing spec for sharing of default values between struct instances (THRIFT-4)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668983
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:13:27 +0000 (01:13 +0000)]
Add missing test for ServerSocket
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668982
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:13:18 +0000 (01:13 +0000)]
Add two missing tests for FramedTransport
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668981
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:13:09 +0000 (01:13 +0000)]
Stop using Array#pack and test using the raw bytes instead
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668980
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:12:58 +0000 (01:12 +0000)]
Add useless struct test for code coverage
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668979
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:12:48 +0000 (01:12 +0000)]
Test BinaryProtocol#read_message_header with bad data
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668978
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:12:37 +0000 (01:12 +0000)]
Tweak the code to turn on Deprecation to make rcov happy
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668977
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:12:26 +0000 (01:12 +0000)]
Oops, call #skip instead of #read_type when testing skip
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668976
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:12:15 +0000 (01:12 +0000)]
Add rcov_spec task
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668975
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:12:05 +0000 (01:12 +0000)]
Spec out Socket and ServerSocket
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668974
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:11:52 +0000 (01:11 +0000)]
Fix exception handling inside Socket#read
Also remove the useless shebang
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668973
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:11:41 +0000 (01:11 +0000)]
Strip the rest of the empty () parens
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668972
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:11:29 +0000 (01:11 +0000)]
Stop using deprecated name TSocket and fix TCPserver->TCPServer
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668971
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:11:18 +0000 (01:11 +0000)]
Spec out HTTPClient
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668970
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:11:07 +0000 (01:11 +0000)]
Spec out MemoryBuffer and IOStreamTransport
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668969
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:10:55 +0000 (01:10 +0000)]
Strip more empty parens
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668967
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:10:43 +0000 (01:10 +0000)]
Rip out MemoryBuffer#get_buffer
Nobody should be using that method and it's preventing MemoryBuffer from being optimized wrt. memory usage
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668966
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:10:30 +0000 (01:10 +0000)]
open? should return true, not 1
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668965
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:10:17 +0000 (01:10 +0000)]
Spec out TransportException, Transport, ServerTransport, BufferedTransport, and FramedTransport
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668964
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:10:05 +0000 (01:10 +0000)]
Spec out SimpleMongrelHTTPServer
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668963
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:09:53 +0000 (01:09 +0000)]
Stop using deprecated classes in SimpleMongrelHTTPServer
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668962
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:09:41 +0000 (01:09 +0000)]
Add specs for Struct.
Include the generated code so the thrift compiler is not required to run the specs.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668961
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:09:28 +0000 (01:09 +0000)]
Improve compatibility with the old Hash-style set.
Fix the integration test for the Set change
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668960
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:09:15 +0000 (01:09 +0000)]
Convert fields of type Thrift::Types::SET to use the Set library.
Also teach Thrift::Struct how to compare itself with ==
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668959
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:09:00 +0000 (01:09 +0000)]
Spec out Server
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668958
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:08:47 +0000 (01:08 +0000)]
Fix blanket exception rescue in ThreadPoolServer
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668957
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:08:35 +0000 (01:08 +0000)]
Remove more empty () parens
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668956
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:08:19 +0000 (01:08 +0000)]
Stop range-checking in BinaryProtocol#write_iNN, it turns out to break some code
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668955
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:08:05 +0000 (01:08 +0000)]
Rename spec wrapper classes to prevent cross-pollination of specs. Require rspec 1.1.4 or later to fix the "describe Module do" bug
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668954
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:07:50 +0000 (01:07 +0000)]
Add spec for BinaryProtocolFactory
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668953
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:07:37 +0000 (01:07 +0000)]
Spec out the BinaryProtocol read methods
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668952
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:07:23 +0000 (01:07 +0000)]
Raise a RangeError if Protocol.write_<numeric> is called with a value that doesn't fit in <numeric>
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668951
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:07:10 +0000 (01:07 +0000)]
Spec out the BinaryProtocol write methods.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668950
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:06:56 +0000 (01:06 +0000)]
Remove dummy initialize method and empty () parens
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668949
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:06:42 +0000 (01:06 +0000)]
Finish speccing out Protocol and ProtocolFactory
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668948
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:06:29 +0000 (01:06 +0000)]
Stop using for _ in _ in Thrift::Protocol
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668947
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:06:15 +0000 (01:06 +0000)]
Start speccing Protocol.
The Protocol specs exposed a bug in the implementation of skip(Types::STRUCT).
Previously it would call read_struct_end once per field instead of per struct.
This only worked because read_struct_end is a noop.
Also remove all empty parens () from method calls.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668946
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:06:01 +0000 (01:06 +0000)]
Spec out ProtocolException
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668945
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:05:47 +0000 (01:05 +0000)]
Spec out Thrift::Processor
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668944
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:05:32 +0000 (01:05 +0000)]
Add pending spec for sequence-ids on Thrift::Client
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668943
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:05:17 +0000 (01:05 +0000)]
Add backwards-compatibility spec
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668942
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:05:03 +0000 (01:05 +0000)]
Spec out Thrift::Client
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668941
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:04:48 +0000 (01:04 +0000)]
Fully spec out Thrift::Exception and Thrift::ApplicationException
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668940
13f79535-47bb-0310-9956-
ffa450edef68