common/thrift.git
14 years agoerlang: Parse multiple options properly in disk_log_transport
David Reiss [Mon, 30 Aug 2010 22:06:00 +0000 (22:06 +0000)] 
erlang: Parse multiple options properly in disk_log_transport

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

14 years agoerlang: Verify elt/key/val when reading list/set/map
David Reiss [Mon, 30 Aug 2010 22:05:58 +0000 (22:05 +0000)] 
erlang: Verify elt/key/val when reading list/set/map

For now, exit on a badmatch if one is wrong.

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

14 years agoerlang: Fix several compilation warnings
David Reiss [Mon, 30 Aug 2010 22:05:57 +0000 (22:05 +0000)] 
erlang: Fix several compilation warnings

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

14 years agoerlang: Rename _impl headers to _behaviour
David Reiss [Mon, 30 Aug 2010 22:05:55 +0000 (22:05 +0000)] 
erlang: Rename _impl headers to _behaviour

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

14 years agoerlang: Fix a few spelling errors
David Reiss [Mon, 30 Aug 2010 22:05:53 +0000 (22:05 +0000)] 
erlang: Fix a few spelling errors

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

14 years agoerlang: Don't use a separate process for http_transport
David Reiss [Mon, 30 Aug 2010 22:05:51 +0000 (22:05 +0000)] 
erlang: Don't use a separate process for http_transport

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

14 years agoerlang: Don't use a separate process memory_buffer
David Reiss [Mon, 30 Aug 2010 22:05:50 +0000 (22:05 +0000)] 
erlang: Don't use a separate process memory_buffer

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

14 years agoerlang: Update test_disklog to use the new API
David Reiss [Mon, 30 Aug 2010 22:05:49 +0000 (22:05 +0000)] 
erlang: Update test_disklog to use the new API

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

14 years agoerlang: Update test_membuffer to use the new API
David Reiss [Mon, 30 Aug 2010 22:05:48 +0000 (22:05 +0000)] 
erlang: Update test_membuffer to use the new API

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

14 years agoerlang: Don't use a separate process for framed_transport
David Reiss [Mon, 30 Aug 2010 22:05:47 +0000 (22:05 +0000)] 
erlang: Don't use a separate process for framed_transport

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

14 years agoerlang: Don't use a separate process for buffered_transport
David Reiss [Mon, 30 Aug 2010 22:05:46 +0000 (22:05 +0000)] 
erlang: Don't use a separate process for buffered_transport

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

14 years agoerlang: Add a state-propagation-testing transport
David Reiss [Mon, 30 Aug 2010 22:05:44 +0000 (22:05 +0000)] 
erlang: Add a state-propagation-testing transport

Add a transport implementation that forwards all read and write (and
flush and close) requests directly to a wrapped transport.  In addition,
it keeps a small amount of state: a version number that is incremented
on each operation and the PID of a process that stores another copy of
the version number.  Every operation compares the version numbers and
increments both.  If some part of the Thrift stack doesn't propagate
state updates properly, the two versions will not match.

Also add some (compiled-off by default) code to thrift_transport to
auto-wrap every transport in a state checker.

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

14 years agoerlang: Refactor thrift_transport and all transport implementations
David Reiss [Mon, 30 Aug 2010 22:05:43 +0000 (22:05 +0000)] 
erlang: Refactor thrift_transport and all transport implementations

Note that the buffering transports still use a separate process to
maintain their state.  This change just changes them to use a
"return-the-new-version"-style API.

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

14 years agoerlang: test_{client,server}: Allow framed_transport to be used
David Reiss [Mon, 30 Aug 2010 22:05:41 +0000 (22:05 +0000)] 
erlang: test_{client,server}: Allow framed_transport to be used

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

14 years agoerlang: Create a test client
David Reiss [Mon, 30 Aug 2010 22:05:39 +0000 (22:05 +0000)] 
erlang: Create a test client

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

14 years agoerlang: Refactor the processor
David Reiss [Mon, 30 Aug 2010 22:05:38 +0000 (22:05 +0000)] 
erlang: Refactor the processor

Now the server works.

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

14 years agoerlang: Get rid of after_reply from thrift_processor
David Reiss [Mon, 30 Aug 2010 22:05:37 +0000 (22:05 +0000)] 
erlang: Get rid of after_reply from thrift_processor

We are always flushing the response after we write it.

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

14 years agoerlang: Don't catch exits in thrift_processor
David Reiss [Mon, 30 Aug 2010 22:05:36 +0000 (22:05 +0000)] 
erlang: Don't catch exits in thrift_processor

They are not handled properly, so the exit backtrace gets lost.
Just ignore them and let them kill the process naturally.

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

14 years agoerlang: Refactor the binary protocol
David Reiss [Mon, 30 Aug 2010 22:05:34 +0000 (22:05 +0000)] 
erlang: Refactor the binary protocol

At this point, everything passes dialyzer except for the processor,
and the client works.

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

14 years agoerlang: Refactor the read path of the protocol
David Reiss [Mon, 30 Aug 2010 22:05:33 +0000 (22:05 +0000)] 
erlang: Refactor the read path of the protocol

TODO: squash this

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

14 years agoerlang: Refactor the read path of the client
David Reiss [Mon, 30 Aug 2010 22:05:32 +0000 (22:05 +0000)] 
erlang: Refactor the read path of the client

TODO: squash this

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

14 years agoerlang: Refactor the write paths of the client and protocol
David Reiss [Mon, 30 Aug 2010 22:05:31 +0000 (22:05 +0000)] 
erlang: Refactor the write paths of the client and protocol

TODO: squash this

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

14 years agoerlang: Client refactor, part 1
David Reiss [Mon, 30 Aug 2010 22:05:29 +0000 (22:05 +0000)] 
erlang: Client refactor, part 1

- Client is no longer a separate process.
- Simplified constructors moved into another module.
- All functions and exceptions return the new client,
  to allow for future statefulness in the client.

NOTE: With the new library and old gen-code, attempting to call a
nonexistent function will result in an exit.

TODO: fix docs and tests (tether test is not meaningful)

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

14 years agoerlang: Make the gen-code return a special value for bogus functions
David Reiss [Mon, 30 Aug 2010 22:05:27 +0000 (22:05 +0000)] 
erlang: Make the gen-code return a special value for bogus functions

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

14 years agoerlang: Separate out thrift_protocol:read_specific
David Reiss [Mon, 30 Aug 2010 22:05:26 +0000 (22:05 +0000)] 
erlang: Separate out thrift_protocol:read_specific

By giving a different name to the function that reads from the
protocol implementation, we can get a slightly more enforcible spec.

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

14 years agoerlang: Add a more detailed spec for thrift_protocol:read
David Reiss [Mon, 30 Aug 2010 22:05:25 +0000 (22:05 +0000)] 
erlang: Add a more detailed spec for thrift_protocol:read

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

14 years agoerlang: Separate out thrift_binary_protocol:read_data
David Reiss [Mon, 30 Aug 2010 22:05:23 +0000 (22:05 +0000)] 
erlang: Separate out thrift_binary_protocol:read_data

By giving a different name to the function that reads bytes from the
transport, we can get a slightly more detailed spec.

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

14 years agoerlang: Add some more detailed specs for protocol implementations
David Reiss [Mon, 30 Aug 2010 22:05:22 +0000 (22:05 +0000)] 
erlang: Add some more detailed specs for protocol implementations

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

14 years agoerlang: Add some initial specs for thrift_transport and its implementations
David Reiss [Mon, 30 Aug 2010 22:05:20 +0000 (22:05 +0000)] 
erlang: Add some initial specs for thrift_transport and its implementations

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

14 years agoerlang: Add some initial specs to thrift_client and thrift_protocol
David Reiss [Mon, 30 Aug 2010 22:05:18 +0000 (22:05 +0000)] 
erlang: Add some initial specs to thrift_client and thrift_protocol

Also add a special header for use in thrift_protocol implementations
that gives specs for the callbacks.

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

14 years agoerlang: Make the test_server use thrift_socket_server
David Reiss [Mon, 30 Aug 2010 22:05:17 +0000 (22:05 +0000)] 
erlang: Make the test_server use thrift_socket_server

thrift_server is deprecated, it seems.

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

14 years agoerlang: Make the test server compatible with the Python test client
David Reiss [Mon, 30 Aug 2010 22:05:16 +0000 (22:05 +0000)] 
erlang: Make the test server compatible with the Python test client

The Python test client expects a specific value in some responses.

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

14 years agoerlang: Make framed_transport not write out its buffer when closed
David Reiss [Mon, 30 Aug 2010 22:05:15 +0000 (22:05 +0000)] 
erlang: Make framed_transport not write out its buffer when closed

This complicates the code, and users can be expected to call flush
when they want to write data to the underlying transport.

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

14 years agoerlang: Make buffered_transport not write out its buffer when closed
David Reiss [Mon, 30 Aug 2010 22:05:13 +0000 (22:05 +0000)] 
erlang: Make buffered_transport not write out its buffer when closed

This complicates the code, and users can be expected to call flush
when they want to write data to the underlying transport.

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

14 years agoerlang: Don't print a warning for application-defined exceptions
David Reiss [Mon, 30 Aug 2010 22:05:12 +0000 (22:05 +0000)] 
erlang: Don't print a warning for application-defined exceptions

Application-defined exceptions are a normal occurrence as far as the
Thrift infrastructure is concerned, so we should not print a warning.

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

14 years agoerlang: Be a little more formal
David Reiss [Mon, 30 Aug 2010 22:05:11 +0000 (22:05 +0000)] 
erlang: Be a little more formal

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

14 years agoerlang: Spell behaviour properly
David Reiss [Mon, 30 Aug 2010 22:05:09 +0000 (22:05 +0000)] 
erlang: Spell behaviour properly

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

14 years agoerlang: Export cast/3 from thrift_client (dialyzer warning)
David Reiss [Mon, 30 Aug 2010 22:05:08 +0000 (22:05 +0000)] 
erlang: Export cast/3 from thrift_client (dialyzer warning)

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

14 years agoerlang: Fix a dialyzer warning in thrift_disk_log_transport
David Reiss [Mon, 30 Aug 2010 22:05:07 +0000 (22:05 +0000)] 
erlang: Fix a dialyzer warning in thrift_disk_log_transport

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

14 years agoerlang: Fix a compiler warning in the disk_log transport
David Reiss [Mon, 30 Aug 2010 22:05:06 +0000 (22:05 +0000)] 
erlang: Fix a compiler warning in the disk_log transport

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

14 years agoerlang: Remove some unused modules
David Reiss [Mon, 30 Aug 2010 22:05:05 +0000 (22:05 +0000)] 
erlang: Remove some unused modules

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

14 years agoerlang: Allow custom erlc flags for the test suite
David Reiss [Mon, 30 Aug 2010 22:05:04 +0000 (22:05 +0000)] 
erlang: Allow custom erlc flags for the test suite

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

14 years agoerlang: Enable compiler warnings for the library
David Reiss [Mon, 30 Aug 2010 22:05:02 +0000 (22:05 +0000)] 
erlang: Enable compiler warnings for the library

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

14 years agoerlang: Clean up some trailing whitespace
David Reiss [Mon, 30 Aug 2010 22:05:01 +0000 (22:05 +0000)] 
erlang: Clean up some trailing whitespace

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

14 years agoRollback a few recent Erlang changes to fix blame data
David Reiss [Mon, 30 Aug 2010 22:05:00 +0000 (22:05 +0000)] 
Rollback a few recent Erlang changes to fix blame data

My combined patch for THRIFT-599 was committed, but it is preferable
commit the individual patches to preserve the more detailed log and
blame data.  I'll recommit r987018 as a sequence of patches and r988722
as its own rev.

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

14 years agoTHRIFT-869. python: Disguise ECONNRESET as EOF on BSD
David Reiss [Mon, 30 Aug 2010 21:57:07 +0000 (21:57 +0000)] 
THRIFT-869. python: Disguise ECONNRESET as EOF on BSD

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

14 years agoTHRIFT-879. java: Remove @Override from TUnion.clear
Bryan Duxbury [Mon, 30 Aug 2010 20:27:32 +0000 (20:27 +0000)] 
THRIFT-879. java: Remove @Override from TUnion.clear

Removes the unnecessary annotation.

Patch: Dave Engberg

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

14 years agoTHRIFT-877. compiler: smalltalk namespace doesn't work
Bryan Duxbury [Mon, 30 Aug 2010 17:09:58 +0000 (17:09 +0000)] 
THRIFT-877. compiler: smalltalk namespace doesn't work

This patch adds a special case to map 'smalltalk' to 'st' when checking for valid namespace declarations.

Patch: Bruce Lowekamp

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

14 years agoTHRIFT-873. java: Java tests fail due to Too many open files
Todd Lipcon [Fri, 27 Aug 2010 06:16:37 +0000 (06:16 +0000)] 
THRIFT-873. java: Java tests fail due to Too many open files

- Drops TestTAsyncClientManager to use only 200 clients instead of 500
- Changes each unit test to run in its own JVM instead of sharing them.
- Allows the port used for binding the test servers to be configured from the command line

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

14 years agoClean up some style from r987565
David Reiss [Thu, 26 Aug 2010 21:49:45 +0000 (21:49 +0000)] 
Clean up some style from r987565

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

14 years agoTHRIFT-854. php: Provide configure option and make rules to build/install php extension
Bryan Duxbury [Wed, 25 Aug 2010 17:09:02 +0000 (17:09 +0000)] 
THRIFT-854. php: Provide configure option and make rules to build/install php extension

This patch adds a make target in lib/php that builds the php extension. By default configure will attempt to build this, but it can be disabled with --without-php_extension.

Patch: Anthony Molinaro

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

14 years agoTHRIFT-866. erlang: Make specs compatible with Erlang R12
David Reiss [Tue, 24 Aug 2010 20:52:56 +0000 (20:52 +0000)] 
THRIFT-866. erlang: Make specs compatible with Erlang R12

term() wasn't initially supported as an alias for any().

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

14 years agoTHRIFT-646. erlang: Fix build on machines without Erlang
David Reiss [Tue, 24 Aug 2010 20:45:24 +0000 (20:45 +0000)] 
THRIFT-646. erlang: Fix build on machines without Erlang

AC_ERLANG_SUBST_LIB_DIR aborts configure if erlc cannot be found.  Just
skip that and all of the other install stuff if we don't have Erlang.

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

14 years agoTHRIFT-693. java: Thrift compiler generated java code that throws compiler warnings...
Bryan Duxbury [Sat, 21 Aug 2010 17:48:18 +0000 (17:48 +0000)] 
THRIFT-693. java: Thrift compiler generated java code that throws compiler warnings about deprecated methods.

This patch removes the deprecated methods from TBase and makes some generator changes to accommodate.

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

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