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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Bryan Duxbury [Thu, 22 Apr 2010 00:22:34 +0000 (00:22 +0000)]
THRIFT-759. java: Make TBase implement Comparable
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@936581
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Thu, 15 Apr 2010 07:01:51 +0000 (07:01 +0000)]
java: convert UnionTest to TestTUnion using JUnit
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@934300
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 14 Apr 2010 17:33:01 +0000 (17:33 +0000)]
THRIFT-755. php: Fix compilation as a static module
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@934036
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Mon, 5 Apr 2010 16:28:21 +0000 (16:28 +0000)]
THRIFT-754. java: Improvements to varint reading in Compact Protocol
This patch makes readVarint32 about 30% faster and readVarint64 about 25% faster (when using transports that support direct buffer access).
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@930898
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Sun, 4 Apr 2010 04:01:07 +0000 (04:01 +0000)]
THRIFT-753. java: Don't look up TFieldIdEnum values with a map
Instead of using a generated map, use a big switch statement.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@930618
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Sat, 3 Apr 2010 23:19:52 +0000 (23:19 +0000)]
THRIFT-746. java: Generated services Iface/Client inner classes do not derive from base classes
This patch causes all generated Client classes to inherit from TServiceClient, an interface that provides a way to get the protocols the Client is using. Also, it causes a new TServiceClientFactory implementation to generated for each Service, which provides a generic, reflection-free way to get Clients. These changes make it easier to build generic pools of Client objects.
Patch: Mathias Herberts
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@930601
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Sat, 3 Apr 2010 22:52:03 +0000 (22:52 +0000)]
THRIFT-752. java: Use a faster Stack implementation in TCompactProtocol
This patch adds ShortStack, an internal implementation of Stack that works directly on primitive short objects, and makes TCompactProtocol use this. A brief performance test shows that this makes serialization about 8% faster and deserialization about 15% faster, though the actual gain you see will be dependent on the nature of your structs - the more levels, the more gain.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@930593
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Sat, 3 Apr 2010 20:25:04 +0000 (20:25 +0000)]
java: Enhance TMemoryInputTransport to allow operation on specific range of a buffer rather than the whole thing. This will allow us to avoid making array copies in some instances.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@930574
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Sat, 3 Apr 2010 19:45:20 +0000 (19:45 +0000)]
java: add a basic test for TMemoryInputTransport
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@930568
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Sat, 3 Apr 2010 15:18:47 +0000 (15:18 +0000)]
java: reorganize ProtocolTestBase slightly
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@930530
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Sat, 3 Apr 2010 05:04:48 +0000 (05:04 +0000)]
THRIFT-663. java: JavaBean code generator produces incorrect setter methods
This patch causes the beans option to suppress the builder-style setter methods. It also adds a new 'private-members' option that leaves the builder-style methods, but makes the actual instance variables private.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@930474
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Mon, 29 Mar 2010 23:57:09 +0000 (23:57 +0000)]
THRIFT-723: java: Thrift buffers with set and map types in Java should implement Comparable
This makes structs that contain sets and maps in their hierarchy Comparable.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@928944
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Mon, 29 Mar 2010 21:12:10 +0000 (21:12 +0000)]
java: Make TProtocolFactory extend Serializable.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@928901
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Sun, 28 Mar 2010 21:02:38 +0000 (21:02 +0000)]
THRIFT-363. java: Maven Deploy
This commit adds changes to build.xml so that we can generate a POM file and publish the artifact to the Apache Maven repo. For now, we haven't published yet - we'll do that at the next release.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@928494
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Sat, 27 Mar 2010 06:24:12 +0000 (06:24 +0000)]
java: Move contents of CompareTest into TestStruct; delete old version
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@928159
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Sat, 27 Mar 2010 06:13:09 +0000 (06:13 +0000)]
java: Move contents of DeepCopyTest to TestStruct; delete old version
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@928157
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Sat, 27 Mar 2010 05:56:26 +0000 (05:56 +0000)]
java: Move contents of IdentityTest into TestStruct
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@928153
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Fri, 26 Mar 2010 23:45:41 +0000 (23:45 +0000)]
java: get rid of old OverloadNonblockingServer.java (since it's not actually a test), move Fixtures up to o.a.thrift
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@928103
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Fri, 26 Mar 2010 23:38:23 +0000 (23:38 +0000)]
java: convert PartialDeserializeTest to testcase of TestTDeserializer (new junit test); add apache header to a few of the new test files.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@928101
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Fri, 26 Mar 2010 23:30:35 +0000 (23:30 +0000)]
java: convert Framed Transport test to JUnit, remove old version of test
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@928100
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Fri, 26 Mar 2010 16:59:46 +0000 (16:59 +0000)]
java: Convert TJSONProtocol test to JUnit, making a few minor changes to ProtocolTestBase in the process.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@927967
13f79535-47bb-0310-9956-
ffa450edef68
Bryan Duxbury [Fri, 26 Mar 2010 05:59:59 +0000 (05:59 +0000)]
java: Stop trying to run the deprecated version of binary and compact protocol tests, since they don't exist anymore
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@927701
13f79535-47bb-0310-9956-
ffa450edef68