common/thrift.git
14 years agoTHRIFT-855. py: Include optimized compiled python objects in install
Bryan Duxbury [Fri, 20 Aug 2010 17:59:17 +0000 (17:59 +0000)] 
THRIFT-855. py: Include optimized compiled python objects in install

This patch causes the .pyc files to be included in the install.

Patch: Anthony Molinaro

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@987593 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-859. py: Allow py:twisted to be generated in different namespace than py
Bryan Duxbury [Fri, 20 Aug 2010 16:45:13 +0000 (16:45 +0000)] 
THRIFT-859. py: Allow py:twisted to be generated in different namespace than py

This patch adds support for the 'twisted' sub-namespace to the python code generator.

Patch: Bruce Lowekamp

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@987566 13f79535-47bb-0310-9956-ffa450edef68

14 years agocompiler: make a standard way for language generators to accept sub-namespaces
Bryan Duxbury [Fri, 20 Aug 2010 16:42:04 +0000 (16:42 +0000)] 
compiler: make a standard way for language generators to accept sub-namespaces

This patch adds a new method to t_generator that allows the compiler to avoid special cases in checking for sub-namespaces in the Thrift IDL.

Patch: Bruce Lowekamp

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@987565 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-845. java: async client does not respect timeout
Bryan Duxbury [Thu, 19 Aug 2010 21:41:58 +0000 (21:41 +0000)] 
THRIFT-845. java: async client does not respect timeout

This patch adds timeout handling to async method calls through TAsyncClientManager.

Patch: Ning Liang

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@987323 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-858. build: Have bootstrap.sh check for a suitable autoconf version before...
Bryan Duxbury [Thu, 19 Aug 2010 21:02:19 +0000 (21:02 +0000)] 
THRIFT-858. build:  Have bootstrap.sh check for a suitable autoconf version before running

A slightly better version of the same functionality as contributed by David Reiss.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@987312 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-646. erlang: Install into the detected Erlang directory
David Reiss [Thu, 19 Aug 2010 16:29:52 +0000 (16:29 +0000)] 
THRIFT-646. erlang: Install into the detected Erlang directory

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@987224 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-858. build: Have bootstrap.sh check for a suitable autoconf version before...
Bryan Duxbury [Thu, 19 Aug 2010 15:21:04 +0000 (15:21 +0000)] 
THRIFT-858. build:  Have bootstrap.sh check for a suitable autoconf version before running

Patch: Michael Lum

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@987186 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-850. build: Perl runtime requires Bit::Vector which may not be installed by...
Bryan Duxbury [Thu, 19 Aug 2010 05:23:59 +0000 (05:23 +0000)] 
THRIFT-850. build: Perl runtime requires Bit::Vector which may not be installed by default, but configure does not fail

Attached patch should do the following:

    * check for the existence of the Perl Bit::Vector module
    * warn the user that the Perl library won't be built if Bit::Vector doesn't exist
    * have the WITH_PERL conditional also require Bit::Vector (e.g. don't built the perl libs if the module isn't there)

Patch: Michael Lum

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@987020 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-599. erl: Don't use unnecessary processes in the Erlang transports and clients
Bryan Duxbury [Thu, 19 Aug 2010 05:06:02 +0000 (05:06 +0000)] 
THRIFT-599. erl: Don't use unnecessary processes in the Erlang transports and clients

The only user-visible changes are to the client. Every thrift call now returns {NewClient, Result} instead of just Result.

Patch: David Reiss (assist to Anthony Molinaro)

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@987018 13f79535-47bb-0310-9956-ffa450edef68

14 years agobuild: make dist no longer includes root-level bootstrap.sh. this should help users...
Bryan Duxbury [Thu, 19 Aug 2010 04:58:34 +0000 (04:58 +0000)] 
build: make dist no longer includes root-level bootstrap.sh. this should help users of release tarballs avoid confusion.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@987017 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-851. php: php extension fails to compile on centos 5.x
Bryan Duxbury [Tue, 17 Aug 2010 17:43:58 +0000 (17:43 +0000)] 
THRIFT-851. php: php extension fails to compile on centos 5.x

This patch introduces an approach that is compatbile with both centos and Mac.

Patch: Todd Lipcon

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@986410 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-846. js: JavaScript Test Framwork: extended Testcases
Bryan Duxbury [Sun, 15 Aug 2010 23:19:06 +0000 (23:19 +0000)] 
THRIFT-846. js: JavaScript Test Framwork: extended Testcases

More testcases for the JavaScript library.

Patch: Roger Meier

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@985774 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-456. cpp: Bad IP address string in test/cpp/src/main.cpp
Bryan Duxbury [Sun, 15 Aug 2010 23:04:12 +0000 (23:04 +0000)] 
THRIFT-456. cpp: Bad IP address string in test/cpp/src/main.cpp

This patch fixes a clear typo in main.cpp.

Patch: Rush Manbert

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@985772 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-852. Missing newline causes many compiler warnings
Bryan Duxbury [Sun, 15 Aug 2010 22:57:07 +0000 (22:57 +0000)] 
THRIFT-852. Missing newline causes many compiler warnings

This patch adds a newline to the end of t_generator_registry.h

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@985771 13f79535-47bb-0310-9956-ffa450edef68

14 years agoUpdate the NOTICE file.
Bryan Duxbury [Sun, 15 Aug 2010 21:10:47 +0000 (21:10 +0000)] 
Update the NOTICE file.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@985760 13f79535-47bb-0310-9956-ffa450edef68

14 years agoupdate the changes file
Bryan Duxbury [Fri, 13 Aug 2010 04:28:13 +0000 (04:28 +0000)] 
update the changes file

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@985088 13f79535-47bb-0310-9956-ffa450edef68

14 years agobump version number from 0.4.0-dev to 0.5.0-dev
Bryan Duxbury [Fri, 13 Aug 2010 02:52:12 +0000 (02:52 +0000)] 
bump version number from 0.4.0-dev to 0.5.0-dev

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@985079 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-247. Commit files missing from r985031
David Reiss [Fri, 13 Aug 2010 02:06:08 +0000 (02:06 +0000)] 
THRIFT-247. Commit files missing from r985031

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@985068 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-682. php: PHP extension doesn't compile on Mac OS X
Bryan Duxbury [Fri, 13 Aug 2010 00:17:16 +0000 (00:17 +0000)] 
THRIFT-682. php: PHP extension doesn't compile on Mac OS X

This patch adds a bswap_64 implementation for OS X users.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@985050 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-831. java: FramedTransport implementation that reuses its buffers
Bryan Duxbury [Fri, 13 Aug 2010 00:13:16 +0000 (00:13 +0000)] 
THRIFT-831. java: FramedTransport implementation that reuses its buffers

This patch adds a TFastFramedTransport that is compatible with TFramedTransport, but makes use of a pair of internal, automatically-expanding buffers to avoid unnecessary reallocations. This makes interactions with the transport up to 2.5x faster.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@985049 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-842. java: Upgrade to current version of commons-lang (2.5 instead of 2.4...
Bryan Duxbury [Thu, 12 Aug 2010 23:42:45 +0000 (23:42 +0000)] 
THRIFT-842. java: Upgrade to current version of commons-lang (2.5 instead of 2.4) and/or change dependency in ivy.xml to not be exact

I switched us to using commons-lang 2.5.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@985042 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-827. ocaml: OCaml generator to take default values into account
Bryan Duxbury [Thu, 12 Aug 2010 23:37:47 +0000 (23:37 +0000)] 
THRIFT-827. ocaml: OCaml generator to take default values into account

A patch to the OCaml generator which uses default values defined in the .thrift file to initialize the members of the generated class.

Patch: Lev Walkin

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@985041 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-837. php: Fix accelerator bug affecting writes > 8k
David Reiss [Thu, 12 Aug 2010 23:27:54 +0000 (23:27 +0000)] 
THRIFT-837. php: Fix accelerator bug affecting writes > 8k

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@985038 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-247. cpp: Basic THttpServer implementation for C++
David Reiss [Thu, 12 Aug 2010 23:03:29 +0000 (23:03 +0000)] 
THRIFT-247. cpp: Basic THttpServer implementation for C++

This does not integrate with any existing HTTP server.  Rather, it is a
transport that parses HTTP requests to allow any of the blocking
socket-based servers to handle HTTP.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@985031 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-676. cpp: Move __isset definition for SWIG-compatibility
David Reiss [Thu, 12 Aug 2010 21:15:04 +0000 (21:15 +0000)] 
THRIFT-676. cpp: Move __isset definition for SWIG-compatibility

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@984979 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-832. html: HTML generator shows unspecified struct fields as 'required'
Bryan Duxbury [Thu, 12 Aug 2010 17:21:06 +0000 (17:21 +0000)] 
THRIFT-832. html: HTML generator shows unspecified struct fields as 'required'

This patch causes required/optional/default to reported appropriately.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@984868 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-778. php: PHP socket listening server
Bryan Duxbury [Thu, 12 Aug 2010 16:59:19 +0000 (16:59 +0000)] 
THRIFT-778. php: PHP socket listening server

This patch which adds TServerTransport/TServerSocket, along with a generic TServer and TSimpleServer implementation.

Patch: Nick Jones

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@984864 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-780. php: Prevent aborts due to simultaneous exceptions
Bryan Duxbury [Thu, 12 Aug 2010 15:00:41 +0000 (15:00 +0000)] 
THRIFT-780. php: Prevent aborts due to simultaneous exceptions

The bug was triggered when flush() threw an exception in the
PHPOutputTransport destructor.

The PHPOutputTransport in thrift_protocol_write_binary() wasn't
constructed inside of the try block, so exceptions thrown when it was
auto-flushing in the destructor were calling terminate().

Move the transport construction inside of the try block, and add an
explicit flush before the transport is destroyed (since throwing an
exception from a destructor is generally a bad thing).

Patch: David Reiss

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@984815 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-718. php: Thrift PHP library includes closing tags and extraneous whitespace
Bryan Duxbury [Thu, 12 Aug 2010 14:54:33 +0000 (14:54 +0000)] 
THRIFT-718. php: Thrift PHP library includes closing tags and extraneous whitespace

This patch trims closing tags to avoid potential for whitespace.

Patch: Nicholas Telford

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@984811 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-570. Thrift compiler does not error when duplicate method names are present
Bryan Duxbury [Thu, 12 Aug 2010 01:48:51 +0000 (01:48 +0000)] 
THRIFT-570. Thrift compiler does not error when duplicate method names are present

This patch causes the compiler to throw an exception when duplicate method names are found.

Patch: Bruce Simpson

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@984628 13f79535-47bb-0310-9956-ffa450edef68

14 years agoRevert THRIFT-731 due to breakage on Ubuntu.
Bryan Duxbury [Thu, 12 Aug 2010 00:27:14 +0000 (00:27 +0000)] 
Revert THRIFT-731 due to breakage on Ubuntu.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@984621 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-664. rb: Ruby extension fails to build with Ruby 1.9.1
Bryan Duxbury [Wed, 11 Aug 2010 18:37:25 +0000 (18:37 +0000)] 
THRIFT-664. rb: Ruby extension fails to build with Ruby 1.9.1

This change takes care of the 1.9 build issues and a few other c-extension niceties.

Patch: Rajesh Malepati

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@984524 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-731. configure doesn't check for ant >= 1.7
Bryan Duxbury [Tue, 10 Aug 2010 20:59:00 +0000 (20:59 +0000)] 
THRIFT-731. configure doesn't check for ant >= 1.7

This patch makes configure check for ant version 1.7 or greater.

Patch: Harlan Lieberman-Berg

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@984207 13f79535-47bb-0310-9956-ffa450edef68

14 years agorb: Make MemoryTransport's inspect_buffer method work in Ruby 1.9
Bryan Duxbury [Mon, 9 Aug 2010 15:25:34 +0000 (15:25 +0000)] 
rb: Make MemoryTransport's inspect_buffer method work in Ruby 1.9

Patch: Rajesh Malepati

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@983680 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-834. csharp: THttpClient resends contents of message after transport errors
Bryan Duxbury [Fri, 6 Aug 2010 17:50:51 +0000 (17:50 +0000)] 
THRIFT-834. csharp: THttpClient resends contents of message after transport errors

This patch causes the send buffer to be refreshed even in the case of errors.

Patch: Anatoly Fayngelerin

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@983067 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-815: fix for broken list testcase
T Jake Luciani [Fri, 6 Aug 2010 02:37:45 +0000 (02:37 +0000)] 
THRIFT-815: fix for broken list testcase

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@982853 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-830. java: Switch binary field implementation from byte[] to ByteBuffer
Bryan Duxbury [Fri, 6 Aug 2010 00:18:25 +0000 (00:18 +0000)] 
THRIFT-830. java: Switch binary field implementation from byte[] to ByteBuffer

This patch switches the implementation of binary fields to ByteBuffer in the Java generated code, yielding up to 2.5x speed boost.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@982839 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-434. ruby compiler should warn when a reserved word is used
Bryan Duxbury [Thu, 5 Aug 2010 23:28:14 +0000 (23:28 +0000)] 
THRIFT-434. ruby compiler should warn when a reserved word is used

This patch adds a bunch of new reserved words to the lexer.

Patch: Michael Stockton

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@982827 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-554. multiple enums with the same key generate invalid code
Bryan Duxbury [Thu, 5 Aug 2010 23:23:04 +0000 (23:23 +0000)] 
THRIFT-554. multiple enums with the same key generate invalid code

This patch causes multiple enums with the same name to trigger a parser error.

Patch: Ben Taitelbaum

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@982825 13f79535-47bb-0310-9956-ffa450edef68

14 years agooops, needed to add an ivy dependency on the servlet api jar
Bryan Duxbury [Thu, 5 Aug 2010 23:22:02 +0000 (23:22 +0000)] 
oops, needed to add an ivy dependency on the servlet api jar

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@982823 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-782. perl: Perl code for writing containers doesn't count length of write...
Bryan Duxbury [Thu, 5 Aug 2010 22:28:13 +0000 (22:28 +0000)] 
THRIFT-782. perl: Perl code for writing containers doesn't count length of write*Begin or write*End

This patch adds appropriate accounting of the start and end bytes when writing out container types.
Patch: Conrad Hughes

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@982812 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-811. rb: http_client_transport.rb: allow custom http headers
Bryan Duxbury [Thu, 5 Aug 2010 22:12:01 +0000 (22:12 +0000)] 
THRIFT-811. rb: http_client_transport.rb: allow custom http headers

Allows setting of custom http headers in http_client_transport.rb

Patch: Tony Kamenick

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@982804 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-814. java: Include a TServlet in the standard Thrift distribution
Bryan Duxbury [Thu, 5 Aug 2010 22:05:35 +0000 (22:05 +0000)] 
THRIFT-814. java: Include a TServlet in the standard Thrift distribution

This patch adds a TServlet implementation of the HttpServlet interface to be used with various containers.

Patch: Mathias Herberts

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@982802 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-836. java: Race condition causes CancelledKeyException in TAsyncClientManager
Bryan Duxbury [Thu, 5 Aug 2010 21:13:06 +0000 (21:13 +0000)] 
THRIFT-836. java: Race condition causes CancelledKeyException in TAsyncClientManager

This patch removes an erroneous key cancellation and adds exception handling for a bunch of different exceptions.
Patch: Ning Liang

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@982789 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-751. java: Add clear() method to TBase
Bryan Duxbury [Thu, 5 Aug 2010 20:44:53 +0000 (20:44 +0000)] 
THRIFT-751. java: Add clear() method to TBase

This patch adds a clear() method to the TBase interface and causes the compiler to generate implementations.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@982774 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-133. add missing file to makefile.am
Bryan Duxbury [Wed, 4 Aug 2010 18:51:57 +0000 (18:51 +0000)] 
THRIFT-133. add missing file to makefile.am

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@982359 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-833. java: build.xml in lib/java is missing a classpathref attribute for the...
Bryan Duxbury [Thu, 29 Jul 2010 19:30:47 +0000 (19:30 +0000)] 
THRIFT-833. java: build.xml in lib/java is missing a classpathref attribute for the javadoc task

Turns out there was a missing classpathref that was causing lots of spurious warnings to be printed. This patch fixes that.

Patch: Nate McCall

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@980548 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-133. fix a small bug with smalltalk.prefix and smalltalk.package namespaces.
Bryan Duxbury [Thu, 29 Jul 2010 18:39:06 +0000 (18:39 +0000)] 
THRIFT-133. fix a small bug with smalltalk.prefix and smalltalk.package namespaces.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@980538 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-133. 'namespace ruby' should error out, or be an alias to 'namespace rb'
Bryan Duxbury [Thu, 29 Jul 2010 16:24:41 +0000 (16:24 +0000)] 
THRIFT-133. 'namespace ruby' should error out, or be an alias to 'namespace rb'

This patch causes 'namespace ruby' (or any unrecognized generator name) to produce an error.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@980498 13f79535-47bb-0310-9956-ffa450edef68

14 years agoadded test case and fix for records contained in arrays
T Jake Luciani [Wed, 28 Jul 2010 22:31:12 +0000 (22:31 +0000)] 
added test case and fix for records contained in arrays

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@980253 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-714. java: maxWorkerThreads parameter to THsHaServer has no effect
Bryan Duxbury [Wed, 28 Jul 2010 21:30:24 +0000 (21:30 +0000)] 
THRIFT-714. java: maxWorkerThreads parameter to THsHaServer has no effect

This patch removes the non-functioning maxWorkerThreads option and renames minWorkerThreads to workerThreads.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@980234 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-699. rb: Excise unused 'native protocol method table' stuff from thrift_native
Bryan Duxbury [Wed, 28 Jul 2010 21:00:06 +0000 (21:00 +0000)] 
THRIFT-699. rb: Excise unused 'native protocol method table' stuff from thrift_native

The code was completely unused and superfluous, and now it's gone.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@980209 13f79535-47bb-0310-9956-ffa450edef68

14 years agorevert unintentional partial commit of THRIFT-247
Bryan Duxbury [Wed, 28 Jul 2010 20:45:37 +0000 (20:45 +0000)] 
revert unintentional partial commit of THRIFT-247

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@980204 13f79535-47bb-0310-9956-ffa450edef68

14 years agoadd rat_exclude file that contains patterns RAT should ignore
Bryan Duxbury [Wed, 28 Jul 2010 19:08:58 +0000 (19:08 +0000)] 
add rat_exclude file that contains patterns RAT should ignore

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@980165 13f79535-47bb-0310-9956-ffa450edef68

14 years agoAdd ASL to Thrift.sln
Bryan Duxbury [Wed, 28 Jul 2010 19:06:33 +0000 (19:06 +0000)] 
Add ASL to Thrift.sln

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@980162 13f79535-47bb-0310-9956-ffa450edef68

14 years agoadd ASL to a handful of files
Bryan Duxbury [Wed, 28 Jul 2010 18:23:22 +0000 (18:23 +0000)] 
add ASL to a handful of files

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@980145 13f79535-47bb-0310-9956-ffa450edef68

14 years agoadd a bunch of stuff in aclocal to svn:ignore
Bryan Duxbury [Mon, 26 Jul 2010 17:20:24 +0000 (17:20 +0000)] 
add a bunch of stuff in aclocal to svn:ignore

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@979367 13f79535-47bb-0310-9956-ffa450edef68

14 years agoadd license headers to a smattering of files
Bryan Duxbury [Mon, 26 Jul 2010 17:18:30 +0000 (17:18 +0000)] 
add license headers to a smattering of files

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@979366 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-821. Add a method to get a copy of the TMemoryBuffer's buffer.
Andrew McGeachie [Wed, 21 Jul 2010 19:51:04 +0000 (19:51 +0000)] 
THRIFT-821.  Add a method to get a copy of the TMemoryBuffer's buffer.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@966385 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-688. Make TBinaryProtocol obey cocoa memory allocation conventions
Andrew McGeachie [Wed, 21 Jul 2010 19:14:44 +0000 (19:14 +0000)] 
THRIFT-688. Make TBinaryProtocol obey cocoa memory allocation conventions

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@966369 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-818. java: Async client doesn't send method args
Bryan Duxbury [Tue, 13 Jul 2010 23:11:04 +0000 (23:11 +0000)] 
THRIFT-818. java: Async client doesn't send method args

This patch amends the tests and fixes the bug.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@963901 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-813: fix for broken list deserialization
T Jake Luciani [Sat, 10 Jul 2010 14:58:51 +0000 (14:58 +0000)] 
THRIFT-813: fix for broken list deserialization

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@962853 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-395. python: Add option to treat strings as UTF-8 unicode
David Reiss [Thu, 1 Jul 2010 05:36:25 +0000 (05:36 +0000)] 
THRIFT-395. python: Add option to treat strings as UTF-8 unicode

Add the "utf8strings" option to the Python generator.  If set, all
Thrift strings (not binary) will be expected to be unicode objects, not
str.  They will be encoded as UTF-8 before serialization and decoded as
UTF-8 after deserialization.

The accelerator module for TBinaryProtocol is not affected.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@959516 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-160. csharp: Created THttpTransport for the C# library based on WebHttpRequest
Bryan Duxbury [Thu, 24 Jun 2010 20:34:34 +0000 (20:34 +0000)] 
THRIFT-160. csharp: Created THttpTransport for the C# library based on WebHttpRequest

This patch adds a new THttpTransport to the C# library and adds some related changes to the Makefile and csproj.

Patch: Michael Greene and Todd Gardner

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@957708 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRFIT-804. java: CompareTo is broken for unions set to map, set, or list
Bryan Duxbury [Wed, 23 Jun 2010 21:17:48 +0000 (21:17 +0000)] 
THRFIT-804. java: CompareTo is broken for unions set to map, set, or list

This patch fixes TUnion's compareTo, and factors out the standard part of the comparison to TBaseHelper.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@957350 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-808. Segfault when constant declaration references a struct field that doesn...
Bryan Duxbury [Wed, 23 Jun 2010 16:57:51 +0000 (16:57 +0000)] 
THRIFT-808. Segfault when constant declaration references a struct field that doesn't exist

This patch causes a useful error to be printed instead of an anonymous segfault.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@957270 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-767. rb: ruby compiler does not keep comments for enum values
Bryan Duxbury [Wed, 23 Jun 2010 16:54:17 +0000 (16:54 +0000)] 
THRIFT-767. rb: ruby compiler does not keep comments for enum values

This patch makes sure that we print an rdoc comment above each of the enum values.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@957268 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-528. perl: add PERL_PREFIX to configure.ac
David Reiss [Fri, 11 Jun 2010 17:57:32 +0000 (17:57 +0000)] 
THRIFT-528. perl: add PERL_PREFIX to configure.ac

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@953796 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-789. Files missing proper Apache license header
Bryan Duxbury [Wed, 9 Jun 2010 21:30:54 +0000 (21:30 +0000)] 
THRIFT-789.  Files missing proper Apache license header

Added the Apache license header to a bunch of files that were missing it.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@953167 13f79535-47bb-0310-9956-ffa450edef68

14 years agoTHRIFT-768. java: Async client for Java
Bryan Duxbury [Wed, 26 May 2010 16:34:48 +0000 (16:34 +0000)] 
THRIFT-768. java: Async client for Java

This patch adds an implementation of a fully-asynchronous client that makes use of NIO. Stubs for the async method calls are generated along with the existing synchronous ones.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@948492 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTHRIFT-733. Don't use scripting bridge extension's className method because it's...
Andrew McGeachie [Wed, 19 May 2010 15:00:26 +0000 (15:00 +0000)] 
THRIFT-733. Don't use scripting bridge extension's className method because it's not available on iPhone.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@946208 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTHRIFT-784. erl: Fix two problems with "make install"
David Reiss [Tue, 18 May 2010 21:32:16 +0000 (21:32 +0000)] 
THRIFT-784. erl: Fix two problems with "make install"

- Support DESTDIR.
- Pass proper arguments to install.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@945898 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTHRIFT-646. erlang: Misc build cleanups
David Reiss [Tue, 18 May 2010 16:52:48 +0000 (16:52 +0000)] 
THRIFT-646. erlang: Misc build cleanups

- Use AC_ERLANG_PATH_ERLC to find erlc, instead of the generic
  AC_PATH_PROG.
- Also check for erl, just in case it is used internally by checks.
- Use AC_ERLANG_SUBST_INSTALL_LIB_SUBDIR instead of manual hackery to
  find the location where Erlang libraries should be installed.  (This
  doesn't use the discovered version of Erlang, though.  See
  http://lists.gnu.org/archive/html/bug-autoconf/2010-05/msg00003.html .)
- Minor style changes in Makefile.am
- Remove some hacks we were using in the old makefile that were
  necessary because we were not using automake.
- Remove ebin in a "maintainer-clean-local" rule to avoid shadowing the
  default "maintainer-clean" rule which handles MAINTAINERCLEANFILES.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@945744 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTHRIFT-781. Install libfb303.so in the correct target lib directory
David Reiss [Mon, 17 May 2010 19:13:23 +0000 (19:13 +0000)] 
THRIFT-781. Install libfb303.so in the correct target lib directory

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@945318 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTHRIFT-459. Ruby installation always tries to write to /Library/Ruby/site
Bryan Duxbury [Wed, 12 May 2010 21:31:58 +0000 (21:31 +0000)] 
THRIFT-459. Ruby installation always tries to write to /Library/Ruby/site

This patch adds a RUBY_PREFIX option similiar to JAVA_PREFIX or PY_PREFIX.

Patch: Matthieu Imbert

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@943698 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTHRIFT-774. java: TDeserializer should provide a partialDeserialize method for primit...
Bryan Duxbury [Wed, 12 May 2010 20:54:07 +0000 (20:54 +0000)] 
THRIFT-774. java: TDeserializer should provide a partialDeserialize method for primitive types

This patch adds partialDeserialize* methods for each of the supported Thrift primitives.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@943679 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTHRIFT-373. Include js and as3 libraries in release tarballs
David Reiss [Fri, 7 May 2010 20:08:06 +0000 (20:08 +0000)] 
THRIFT-373. Include js and as3 libraries in release tarballs

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@942198 13f79535-47bb-0310-9956-ffa450edef68

15 years agoClean up a little bit of extra whitespace
David Reiss [Fri, 7 May 2010 20:08:03 +0000 (20:08 +0000)] 
Clean up a little bit of extra whitespace

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@942197 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTHRIFT-647. php: Add license header and fix style in Makefile.am
David Reiss [Tue, 4 May 2010 16:32:33 +0000 (16:32 +0000)] 
THRIFT-647. php: Add license header and fix style in Makefile.am

The attachment was made with the "licensed for inclusion" option, so it
should get a standard Apache license header.  Our other makefiles use
$() style for variables and don't include extra spaces before
backslashes.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@940936 13f79535-47bb-0310-9956-ffa450edef68

15 years agorevert an unintentional commit to the java generator
Bryan Duxbury [Tue, 4 May 2010 14:01:14 +0000 (14:01 +0000)] 
revert an unintentional commit to the java generator

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@940861 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTHRIFT-770. build: Get 'make dist' to work without first compiling source code
Bryan Duxbury [Mon, 3 May 2010 21:33:00 +0000 (21:33 +0000)] 
THRIFT-770. build:  Get 'make dist' to work without first compiling source code

This patch ditches the old print_version.sh method and instead generates the compiler's version.h via the Makefile.

Patch: Anthony Molinaro

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@940630 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTHRIFT-650. build: Make Check fails on Centos/OSX with 0.2.0 tarball
Bryan Duxbury [Sun, 2 May 2010 23:04:03 +0000 (23:04 +0000)] 
THRIFT-650. build: Make Check fails on Centos/OSX with 0.2.0 tarball

This patch fixes the make check target for OSX.

Patch: Anthony Molinaro

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@940327 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTHRIFT-646. erl: Erlang library is missing install target
Bryan Duxbury [Sun, 2 May 2010 22:54:22 +0000 (22:54 +0000)] 
THRIFT-646. erl: Erlang library is missing install target

This patch adds a new install target to the erlang makefile. It also converts the Makefile to Makefile.am

Patch: Anthony Molinaro

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@940326 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTHRIFT-647. php: PHP library is missing install target
Bryan Duxbury [Sun, 2 May 2010 22:39:31 +0000 (22:39 +0000)] 
THRIFT-647. php: PHP library is missing install target

This patch adds a 'make install' target to a new PHP makefile.

Patch: Anthony Molinaro

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@940325 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTHRIFT-765. java: Revert the changes applied by THRIFT-765, as they appear to be...
Bryan Duxbury [Sat, 1 May 2010 13:45:38 +0000 (13:45 +0000)] 
THRIFT-765. java: Revert the changes applied by THRIFT-765, as they appear to be unstable

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@940013 13f79535-47bb-0310-9956-ffa450edef68

15 years agoset the TRUNK version to 0.4.0-dev, instead of the ancient 20080411 datestamp
Bryan Duxbury [Fri, 30 Apr 2010 21:39:54 +0000 (21:39 +0000)] 
set the TRUNK version to 0.4.0-dev, instead of the ancient 20080411 datestamp

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@939825 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTHRIFT-765. java: Improved string encoding and decoding performance
Bryan Duxbury [Fri, 30 Apr 2010 21:35:38 +0000 (21:35 +0000)] 
THRIFT-765. java: Improved string encoding and decoding performance

This patch fixes a regression caused by the previous 'fast' implementation, in particular, dealing with unicode characters that need to be encoded as surrogate pairs. The performance stays about the same.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@939822 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTHRIFT-438. py: Add support for Twisted.web in servers and clients
Bryan Duxbury [Thu, 29 Apr 2010 18:14:54 +0000 (18:14 +0000)] 
THRIFT-438. py: Add support for Twisted.web in servers and clients

This patch adds a Twisted.web resource that can be used for processing incoming Thrift requests over HTTP

Patch: Esteve Fernandez

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@939413 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTHRIFT-766. java: Propagate TSocket timeout to connect
Bryan Duxbury [Thu, 29 Apr 2010 17:08:17 +0000 (17:08 +0000)] 
THRIFT-766. java: Propagate TSocket timeout to connect

This patch makes sure the specified timeout is used when opening connections, too.

Patch: David Helder

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@939380 13f79535-47bb-0310-9956-ffa450edef68

15 years agojava: add another testcase to TestUtf8Helper
Bryan Duxbury [Thu, 29 Apr 2010 00:33:34 +0000 (00:33 +0000)] 
java: add another testcase to TestUtf8Helper

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@939142 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTHRIFT-762. Include CoreServices.h if we are not compiling on the iPhone.
Andrew McGeachie [Wed, 28 Apr 2010 17:43:45 +0000 (17:43 +0000)] 
THRIFT-762. Include CoreServices.h if we are not compiling on the iPhone.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@939024 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTHRFIT-601. java: Add readLength support to TBinaryProtocol.Factory
David Reiss [Mon, 26 Apr 2010 19:37:53 +0000 (19:37 +0000)] 
THRFIT-601. java: Add readLength support to TBinaryProtocol.Factory

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@938206 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTHRIFT-601. java: Allow a maximum frame size for TFramedTransport
David Reiss [Mon, 26 Apr 2010 19:37:44 +0000 (19:37 +0000)] 
THRIFT-601. java: Allow a maximum frame size for TFramedTransport

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@938205 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTHRIFT-760. java: Generated client code does not set or check the sequence ID in...
Bryan Duxbury [Mon, 26 Apr 2010 18:16:46 +0000 (18:16 +0000)] 
THRIFT-760. java: Generated client code does not set or check the sequence ID in messages

The Java generated clients weren't paying attention to sequence ids. Now they are\!

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@938169 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTHRIFT-765. java: Improved string encoding and decoding performance
Bryan Duxbury [Sun, 25 Apr 2010 15:20:02 +0000 (15:20 +0000)] 
THRIFT-765. java: Improved string encoding and decoding performance

This change makes Java's string/utf8 encoding and decoding about 2x faster.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@937812 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTHRIFT-611. Under Windows when compiling using MinGW, includes are incorrectly resol...
Bryan Duxbury [Thu, 22 Apr 2010 21:21:46 +0000 (21:21 +0000)] 
THRIFT-611.  Under Windows when compiling using MinGW, includes are incorrectly resolved due to '/' <-> '\' havoc.

This patch ensures the proper slashes are used based on the platform.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@937070 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTHRIFT-518. as3: Add the AS3 generator and library
Bryan Duxbury [Thu, 22 Apr 2010 21:17:39 +0000 (21:17 +0000)] 
THRIFT-518. as3: Add the AS3 generator and library

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@937067 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTHRIFT-761. java: Include the symbolic name of a typedef field in the field metadata
Bryan Duxbury [Thu, 22 Apr 2010 01:05:02 +0000 (01:05 +0000)] 
THRIFT-761. java: Include the symbolic name of a typedef field in the field metadata

This patch adds a new isTypedef() method to FieldValueMetaData and converts MetaDataTest to a testcase in TestStruct.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@936588 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTHRIFT-763. java: Variable capture bug in generated struct compareTo
Bryan Duxbury [Thu, 22 Apr 2010 00:27:41 +0000 (00:27 +0000)] 
THRIFT-763. java: Variable capture bug in generated struct compareTo

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@936583 13f79535-47bb-0310-9956-ffa450edef68

15 years agojava: stop trying to run the removed UnionTest
Bryan Duxbury [Thu, 22 Apr 2010 00:26:41 +0000 (00:26 +0000)] 
java: stop trying to run the removed UnionTest

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@936582 13f79535-47bb-0310-9956-ffa450edef68