common/thrift.git
13 years agoTHRIFT-1498:Allow TThreadedPoolServer.Args to pass a ExecutorService
Jake Farrell [Fri, 27 Jan 2012 03:19:01 +0000 (03:19 +0000)] 
THRIFT-1498:Allow TThreadedPoolServer.Args to pass a ExecutorService
Client: java
Patch: Scott Chen

Adds ability to assign a ExecutorService from TThreadedPoolServer.Args.

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

13 years agoTHRIFT-1504: Cocoa Generator should use local file imports for base Thrift headers
Jake Farrell [Fri, 27 Jan 2012 03:06:54 +0000 (03:06 +0000)] 
THRIFT-1504: Cocoa Generator should use local file imports for base Thrift headers
Client: cocoa
Patch: Steve White

Updates thrift headers as global imports instead of local imports

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

13 years agoTHRIFT-1478 TJSONProtocol in PHP
Roger Meier [Tue, 24 Jan 2012 20:18:07 +0000 (20:18 +0000)] 
THRIFT-1478 TJSONProtocol in PHP
fix: remove dist and add lunit log format

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

13 years agoadd info on proxy usage
Roger Meier [Tue, 24 Jan 2012 19:35:09 +0000 (19:35 +0000)] 
add info on proxy usage

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

13 years agoTHRIFT-1478 TJSONProtocol in PHP
Roger Meier [Tue, 24 Jan 2012 18:42:46 +0000 (18:42 +0000)] 
THRIFT-1478 TJSONProtocol in PHP
Patch: Greg Fodor, Andrew Grumet, Roger Meier

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

13 years agoTHRIFT-847 Test Framework harmonization across all languages
Roger Meier [Sat, 21 Jan 2012 09:18:05 +0000 (09:18 +0000)] 
THRIFT-847 Test Framework harmonization across all languages
add php TestClient to the testsuite

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

13 years agoTHRIFT-1489 Add support for WCF bindings (optionally) to C# compiler, allowing web...
Roger Meier [Fri, 20 Jan 2012 19:42:23 +0000 (19:42 +0000)] 
THRIFT-1489 Add support for WCF bindings (optionally) to C# compiler, allowing web service usage of Thrift generated code
Patch: Kieran Benton
fix: add missing area of XML documentation generation

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

13 years agoTHRIFT-1495 PHP TestClient fatals on missing class
Roger Meier [Fri, 20 Jan 2012 15:31:45 +0000 (15:31 +0000)] 
THRIFT-1495 PHP TestClient fatals on missing class
Patch: Andrew Grumet

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

13 years agoTHRIFT-1496 PHP compiler not namespacing enums
Roger Meier [Fri, 20 Jan 2012 14:34:49 +0000 (14:34 +0000)] 
THRIFT-1496 PHP compiler not namespacing enums
Patch: Andrew Grumet

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

13 years agoTHRIFT-1410 C# Partial Classes (for service implementation class)
Roger Meier [Tue, 17 Jan 2012 21:32:50 +0000 (21:32 +0000)] 
THRIFT-1410 C# Partial Classes (for service implementation class)
Patch: Kieran Benton

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

13 years agoTHRIFT-1489 Add support for WCF bindings (optionally) to C# compiler, allowing web...
Roger Meier [Tue, 17 Jan 2012 21:20:56 +0000 (21:20 +0000)] 
THRIFT-1489 Add support for WCF bindings (optionally) to C# compiler, allowing web service usage of Thrift generated code
Patch: Kieran Benton

changes by roger:
- use ServiceModel, DataContract only when wcf is enabled
- indent space vs tab
- remove issue on lib/cpp/README_WINDOWS
- add testStringMap on test/csharp/ThriftTest/TestServer.cs
- add build to test/csharp/ThriftTest/maketest.sh

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

13 years agoTHRIFT-1491 Uninitialize processorFactory_ member in TServer.h
Roger Meier [Tue, 17 Jan 2012 19:18:13 +0000 (19:18 +0000)] 
THRIFT-1491 Uninitialize processorFactory_ member in TServer.h
Patch: Ben Frederickson

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

13 years agoThrift:1488 - src/concurrency/Thread.h:91:58: error: invalid conversion from 'pthread...
Jake Farrell [Tue, 17 Jan 2012 14:28:05 +0000 (14:28 +0000)] 
Thrift:1488 - src/concurrency/Thread.h:91:58: error: invalid conversion from 'pthread_t {aka _opaque_pthread_t*}'
Client: cpp
Patch: Jake Farrell

Added cast to Thread.h get_current()

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

13 years agoTHRIFT-1490 Windows-specific header files - fixes & tweaks
Roger Meier [Tue, 17 Jan 2012 12:25:22 +0000 (12:25 +0000)] 
THRIFT-1490 Windows-specific header files - fixes & tweaks
Patch: Peace C

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

13 years agoTHRIFT-1267 Node.js can't throw exceptions
Roger Meier [Thu, 12 Jan 2012 21:38:29 +0000 (21:38 +0000)] 
THRIFT-1267 Node.js can't throw exceptions
Patch: Henrique Mendonca

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

13 years agoTHRIFT-847 Test Framework harmonization across all languages
Roger Meier [Tue, 10 Jan 2012 22:11:36 +0000 (22:11 +0000)] 
THRIFT-847 Test Framework harmonization across all languages
perl fixes:
 - include test/perl if perl is enabled

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

13 years agoTHRIFT-847 Test Framework harmonization across all languages
Roger Meier [Tue, 10 Jan 2012 21:30:02 +0000 (21:30 +0000)] 
THRIFT-847 Test Framework harmonization across all languages
perl fixes:
- generate Makfile for perl tests
- add inc path to test

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

13 years agoTHRIFT-847 Test Framework harmonization across all languages
Roger Meier [Mon, 9 Jan 2012 21:23:19 +0000 (21:23 +0000)] 
THRIFT-847 Test Framework harmonization across all languages
add test.sh as a first approach

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

13 years agoTHRIFT-1485 Performance: pass large and/or refcounted arguments as "const"
Roger Meier [Sun, 8 Jan 2012 21:51:08 +0000 (21:51 +0000)] 
THRIFT-1485 Performance: pass large and/or refcounted arguments as "const"
Patch: Jens Geyer

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

13 years ago.gitignore update
Roger Meier [Sun, 8 Jan 2012 21:49:12 +0000 (21:49 +0000)] 
.gitignore update

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

13 years agoTHRIFT-1473 JSON context stack may be left in an incorrect state when an exception...
Roger Meier [Sun, 8 Jan 2012 21:44:44 +0000 (21:44 +0000)] 
THRIFT-1473 JSON context stack may be left in an incorrect state when an exception is thrown during read or write operations
Patch: Jens Geyer

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

13 years agoTHRIFT-1486 Javascript manual testserver not returning content types
Roger Meier [Sat, 7 Jan 2012 20:32:24 +0000 (20:32 +0000)] 
THRIFT-1486 Javascript manual testserver not returning content types
Patch: Andrew Grumet

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

13 years agoTHRIFT-1479. php: Compiled PHP process functions missing writeMessageEnd()
Bryan Duxbury [Tue, 3 Jan 2012 17:35:26 +0000 (17:35 +0000)] 
THRIFT-1479. php: Compiled PHP process functions missing writeMessageEnd()

This patch adds in the missing call.

Patch: Andrew Grumet

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

13 years agoTHRIFT-1480. py: remove tabs, adjust whitespace and address PEP8 warnings
Bryan Duxbury [Tue, 3 Jan 2012 17:32:30 +0000 (17:32 +0000)] 
THRIFT-1480. py: remove tabs, adjust whitespace and address PEP8 warnings

This patch addresses a host of PEP8 lint problems.

Patch: Will Pierce

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

13 years agoTHRIFT-1483. java: java compiler does not generate type parameters for services in...
Bryan Duxbury [Tue, 3 Jan 2012 17:28:45 +0000 (17:28 +0000)] 
THRIFT-1483. java: java compiler does not generate type parameters for services in extended clauses

Patch: Ruslan Shevchenko

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

13 years agoTHRIFT-317. java: Issues with Java struct validation
Bryan Duxbury [Tue, 27 Dec 2011 22:26:59 +0000 (22:26 +0000)] 
THRIFT-317. java: Issues with Java struct validation

Nested structs will now be validated before serialization starts.

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

13 years agoTHRIFT-1468. java: Memory leak in TSaslServerTransport
Bryan Duxbury [Thu, 22 Dec 2011 19:04:16 +0000 (19:04 +0000)] 
THRIFT-1468. java: Memory leak in TSaslServerTransport

This patch changes a particular map element to a WeakReference and thus avoids some awkward un-GC-ableness.

Patch: Mithun Radhakrishnan"

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

13 years agoTHRIFT-1168 C++ cob client/server: void functions that throw exceptions
Roger Meier [Wed, 21 Dec 2011 21:23:28 +0000 (21:23 +0000)] 
THRIFT-1168 C++ cob client/server: void functions that throw exceptions
Patch: NewBlood

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

13 years agoTHRIFT-1469. java: Java isset space optimization
Bryan Duxbury [Wed, 21 Dec 2011 18:13:29 +0000 (18:13 +0000)] 
THRIFT-1469. java: Java isset space optimization

This patch gives the generated code some variable-sized options for the isset bit vector. The compiler will attempt to use byte, short, int and long types before reverting to a BitSet for structs with a LOT of optional fields. This should save a fair amount of memory in a lot of cases.

Patch: Brian Bloniarz

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

13 years agoThrift-1467:Possible AV with empty strings when using JSON protocol
Jake Farrell [Thu, 15 Dec 2011 20:50:31 +0000 (20:50 +0000)] 
Thrift-1467:Possible AV with empty strings when using JSON protocol
Client:delphi
Patch: Jens Geyer

Fixes exception raised on empty json strings.

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

13 years agoTHRIFT-1464: AbstractNonblockingServer.FrameBuffer TNonblockingTransport accessor...
Jake Farrell [Wed, 14 Dec 2011 23:48:22 +0000 (23:48 +0000)] 
THRIFT-1464: AbstractNonblockingServer.FrameBuffer TNonblockingTransport accessor changed from public to private
Client: java
Patch: Jake Farrell

Fixes accessor for TNonblockingTransport in AbstractNonblockingServer.FrameBuffer that was changed from public to private

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

13 years agoTHRIFT-1461 Recent TNonblockingServer changes broke --enable-boostthreads=yes, Windows
Roger Meier [Wed, 14 Dec 2011 23:35:28 +0000 (23:35 +0000)] 
THRIFT-1461 Recent TNonblockingServer changes broke --enable-boostthreads=yes, Windows
Patch: Alexandre Parenteau

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

13 years agoThrift-1462: add more strict compiler flags
Jake Farrell [Tue, 13 Dec 2011 20:12:26 +0000 (20:12 +0000)] 
Thrift-1462: add more strict compiler flags

Reverting MINGW addition for c+++0x

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

13 years agoThrift-1462: add more strict compiler flags
Jake Farrell [Tue, 13 Dec 2011 20:02:33 +0000 (20:02 +0000)] 
Thrift-1462: add more strict compiler flags

Reverting patch due to it breaking compilers older than 4.4 (os x, centos 5.x, etc)

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

13 years agoTHRIFT-1449. rb: Ruby client does not work on solaris (?)
Bryan Duxbury [Tue, 13 Dec 2011 18:33:15 +0000 (18:33 +0000)] 
THRIFT-1449. rb: Ruby client does not work on solaris (?)

This patch adds a new argument to the socket calls that seems to fix the problems while not causing any detriment to non-Solaris systems.

Patch: Erik Hetzner

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

13 years agoTHRIFT-1462 add more strict compiler flags
Roger Meier [Tue, 13 Dec 2011 00:36:01 +0000 (00:36 +0000)] 
THRIFT-1462 add more strict compiler flags
FIX: check for MINGW and use reduced compiler flag set for mingw

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

13 years agoadd fb303 stuff to .gitignore
Roger Meier [Mon, 12 Dec 2011 22:46:45 +0000 (22:46 +0000)] 
add fb303 stuff to .gitignore

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

13 years agoTHRIFT-1462 add more strict compiler flags(-Wall -Wextra -std=c++0x -pedantic)
Roger Meier [Mon, 12 Dec 2011 22:00:23 +0000 (22:00 +0000)] 
THRIFT-1462 add more strict compiler flags(-Wall -Wextra -std=c++0x -pedantic)

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

13 years agoTHRIFT-1459 declare shared_ptr as boost::shared_ptr
Roger Meier [Sun, 11 Dec 2011 22:08:51 +0000 (22:08 +0000)] 
THRIFT-1459 declare shared_ptr as boost::shared_ptr

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

13 years agoTHRIFT-1272 add subclass of ReadWriteMutex that avoids writer
Roger Meier [Sun, 11 Dec 2011 21:05:35 +0000 (21:05 +0000)] 
THRIFT-1272 add subclass of ReadWriteMutex that avoids writer
starvation
Patch: Dave Watson

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

13 years agoTHRIFT-1273 Replace assignment of a negative literal to an
Roger Meier [Sun, 11 Dec 2011 20:30:21 +0000 (20:30 +0000)] 
THRIFT-1273 Replace assignment of a negative literal to an
unsigned int with assignment of an unsigned int
Patch: Dave Watson

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

13 years agoTHRIFT-1337 support maximum frame size in TNonblockingServer
Roger Meier [Sun, 11 Dec 2011 20:07:21 +0000 (20:07 +0000)] 
THRIFT-1337 support maximum frame size in TNonblockingServer
Patch: Dave Watson

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

13 years agofix compiler warnings
Roger Meier [Sat, 10 Dec 2011 21:50:10 +0000 (21:50 +0000)] 
fix compiler warnings

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

13 years agoTHRIFT-1452 generate a swap() method for all generated structs
Roger Meier [Fri, 9 Dec 2011 19:33:07 +0000 (19:33 +0000)] 
THRIFT-1452 generate a swap() method for all generated structs

fix compiler warnings, when having empty structs

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

13 years agoTHRIFT-1440 debian packaging: minor-ish policy problems
Roger Meier [Fri, 9 Dec 2011 18:42:46 +0000 (18:42 +0000)] 
THRIFT-1440 debian packaging: minor-ish policy problems
Patch: Paul Cannon
Fix: Descriptions

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

13 years agoTHRIFT-1421 Debian Packages can not be built
Roger Meier [Fri, 9 Dec 2011 10:36:05 +0000 (10:36 +0000)] 
THRIFT-1421 Debian Packages can not be built
Patch: Brandon Arp
Fix: ruby build

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

13 years agoThrift-1441: Generate constructor with parameters for exception class to let it updat...
Jake Farrell [Fri, 9 Dec 2011 02:29:56 +0000 (02:29 +0000)] 
Thrift-1441: Generate constructor with parameters for exception class to let it update message property automatically.
Client:delphi
Patch: Kenjiro Fukumitsu

Add the function to delphi generator that generates constructor with parameters to initialize members,if the class is exception and have more than zero parameters.

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

13 years agoThrift-1456: System.Net.HttpWebRequest' does not contain a definition for 'Proxy'
Jake Farrell [Fri, 9 Dec 2011 02:21:37 +0000 (02:21 +0000)] 
Thrift-1456: System.Net.HttpWebRequest' does not contain a definition for 'Proxy'
Client: delphi
Patch: Jens Geyer

Fix for Silverlight 'System.Net.HttpWebRequest' does not contain a definition for 'Proxy'

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

13 years agoThrift-1452: generate a swap() method for all generated structs
Jake Farrell [Thu, 8 Dec 2011 21:15:50 +0000 (21:15 +0000)] 
Thrift-1452: generate a swap() method for all generated structs
Client: cpp
Patch: Dave Watson

Convenience method for all C++ thrift types to add swap() function

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

13 years agoTHRIFT-1433 TServerSocket fix for MSVC
Roger Meier [Thu, 8 Dec 2011 20:44:16 +0000 (20:44 +0000)] 
THRIFT-1433 TServerSocket fix for MSVC
Patch: Peace C

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

13 years agoTHRIFT-1442 TNonblockingServer: Refactor to allow multiple IO Threads
Roger Meier [Thu, 8 Dec 2011 19:34:01 +0000 (19:34 +0000)] 
THRIFT-1442 TNonblockingServer: Refactor to allow multiple IO Threads
Fix Warnings
Patch: Dave Watson

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

13 years agoTHRIFT-1037 Proposed changes to support Silverlight, Windows Phone and AsyncCTP v3
Roger Meier [Thu, 8 Dec 2011 13:39:56 +0000 (13:39 +0000)] 
THRIFT-1037 Proposed changes to support Silverlight, Windows Phone and AsyncCTP v3
Patch: Damian Mehers & Jens Geyer

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

13 years agoreturn 1 if transport open fails
Roger Meier [Thu, 8 Dec 2011 13:20:12 +0000 (13:20 +0000)] 
return 1 if transport open fails

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

13 years agoTHRIFT-1325 Thrift SVN and latest GCC issue: Undefined symbols: "apache::thrift:...
Roger Meier [Thu, 8 Dec 2011 11:32:21 +0000 (11:32 +0000)] 
THRIFT-1325 Thrift SVN and latest GCC issue: Undefined symbols: "apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TTransport>::VERSION_MASK"
Patch: Brandon Arp

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

13 years agoThrift-1451:FramedTransport: Prevent infinite loop when writing
Jake Farrell [Thu, 8 Dec 2011 02:08:38 +0000 (02:08 +0000)] 
Thrift-1451:FramedTransport: Prevent infinite loop when writing
Client: cpp
Patch: Dave Watson

Invoked test client with a big enough query to trigger the resize
code.

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

13 years agoThrift-1454:Better handling of write on a closed TSocket
Jake Farrell [Thu, 8 Dec 2011 02:02:20 +0000 (02:02 +0000)] 
Thrift-1454:Better handling of write on a closed TSocket
Client: cpp
Patch: Dave Watson

TSocket.send() was expecting a send() on the underlying socket
to fail by returning zero, but the actual behavior is to raise
an exception.

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

13 years agoThrift-1090: Document the generation of a file called "Constants.java"
Jake Farrell [Tue, 6 Dec 2011 03:13:55 +0000 (03:13 +0000)] 
Thrift-1090: Document the generation of a file called "Constants.java"
Client: java
Patch: Jake Farrell

Fixing test cases left out in initial patch.

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

13 years agoThrift-1445:minor C++ generator variable cleanup
Jake Farrell [Tue, 6 Dec 2011 02:59:04 +0000 (02:59 +0000)] 
Thrift-1445:minor C++ generator variable cleanup
Client: cpp
Patch: Dave Watson

In generate_process_function(), service_func_name is always used as a
string literal. Therefore, construct it with the double quotes
built-in, rather than having to add them everywhere we use it.

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

13 years agoThrift-1444:FunctionRunner - add syntactic sugar to create shared_ptrs
Jake Farrell [Tue, 6 Dec 2011 01:41:59 +0000 (01:41 +0000)] 
Thrift-1444:FunctionRunner - add syntactic sugar to create shared_ptrs
Client: cpp
Patch: Dave Watson

Simplify FunctionRunner addTask calls.

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

13 years agoThrift-1442: TNonblockingServer: Refactor to allow multiple IO Threads
Jake Farrell [Tue, 6 Dec 2011 01:17:26 +0000 (01:17 +0000)] 
Thrift-1442: TNonblockingServer: Refactor to allow multiple IO Threads
Client: cpp
Patch: Dave Watson

Ads multiple IO threads to TNonblocking Server

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

13 years agoThrift-1340: Add support of ARC to Objective-C
Jake Farrell [Tue, 6 Dec 2011 01:07:17 +0000 (01:07 +0000)] 
Thrift-1340: Add support of ARC to Objective-C
Client: Objective-c
Patch: Hirano Satoshi

Adds -objc-arc flag to compiler and if used removes the retain/release/autorelease from generated code

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

13 years agoThrift-1446:Compile error with Delphi 2009 in constant initializer
Jake Farrell [Tue, 6 Dec 2011 00:59:30 +0000 (00:59 +0000)] 
Thrift-1446:Compile error with Delphi 2009 in constant initializer
Client: delphi
Patch: Kenjiro Fukumitsu

Generated code cannot be compiled with Delphi 2009 due to the bug in constant initializer.

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

13 years agoThrift-1090: Document the generation of a file called "Constants.java"
Jake Farrell [Tue, 6 Dec 2011 00:48:04 +0000 (00:48 +0000)] 
Thrift-1090: Document the generation of a file called "Constants.java"
Client: java
Patch: Mike Riley

Adds program_name to the Constants file in java to match all other client libs.

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

13 years agoUpdating trunk to 0.9.0 version.
Jake Farrell [Wed, 30 Nov 2011 02:09:46 +0000 (02:09 +0000)] 
Updating trunk to 0.9.0 version.

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

13 years agoThrift-1427: PHP library uses non-multibyte safe functions with mbstring function...
Jake Farrell [Tue, 29 Nov 2011 16:45:51 +0000 (16:45 +0000)] 
Thrift-1427: PHP library uses non-multibyte safe functions with mbstring function overloading
Client: php
Patch: Bryan Alves

Fixes issue with php overloaded mbstring to be binary-safe for strlen and substr.

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

13 years agoThrift-1421: Debian Packages can not be built
Jake Farrell [Mon, 28 Nov 2011 20:00:10 +0000 (20:00 +0000)] 
Thrift-1421: Debian Packages can not be built

Removing Erlang package from debian rules and control

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

13 years agoThrift-1330: PHP Namespaces no longer generated
Jake Farrell [Sat, 26 Nov 2011 18:24:43 +0000 (18:24 +0000)] 
Thrift-1330: PHP Namespaces no longer generated
Client: php
Patch: Mike Riley

Fixes namespaces in PHP generator to with with php >= 5.3.x

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

13 years agoThrift-386: Make it possible to build the Python library without the extension
Jake Farrell [Sat, 26 Nov 2011 05:23:09 +0000 (05:23 +0000)] 
Thrift-386: Make it possible to build the Python library without the extension
Client: py
Patch: Jake Farrell

patch for py lib which will attempt to build the C extension and if it fails falls back to just building the library without any extensions.

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

13 years agoTHRIFT-1434 Node.js Thrift compiler fails to generate server code using inheritance
Roger Meier [Wed, 23 Nov 2011 21:02:46 +0000 (21:02 +0000)] 
THRIFT-1434 Node.js Thrift compiler fails to generate server code using inheritance
Patch: Wade Simmons

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

13 years agoTHRIFT-1431 Rename 'sys' module to 'util'
Roger Meier [Wed, 23 Nov 2011 20:44:09 +0000 (20:44 +0000)] 
THRIFT-1431 Rename 'sys' module to 'util'
Patch: David Worms

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

13 years agoThrift-1435: make TException.Message property conformant to the usual expectations
Jake Farrell [Wed, 23 Nov 2011 14:30:41 +0000 (14:30 +0000)] 
Thrift-1435: make TException.Message property conformant to the usual expectations
Client: delphi
Patch: Jens Geyer

Make delphi exceptions act like standard TException within other languages

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

13 years agoThrift-1432: Javascript struct constants declared in the same file as their struct...
Jake Farrell [Mon, 21 Nov 2011 13:52:51 +0000 (13:52 +0000)] 
Thrift-1432: Javascript struct constants declared in the same file as their struct definition will cause an error
Client: js
Patch: Mike Riley

Flips print out of constants and structs within the generator to allow for use of constants within the structs.

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

13 years agoThrift-1391: Improved Delphi XE test cases
Jake Farrell [Thu, 17 Nov 2011 00:17:29 +0000 (00:17 +0000)] 
Thrift-1391: Improved Delphi XE test cases
Client: delphi
Patch: Jens Geyer

Improved TestClient:
 - collects test results and reports errors
 - added or completed a number of tests, like listTest, mapmapTest, multiExceptionTest and others
 - exception content test also included

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

13 years agoTHRIFT-1387 Build MSVC libraries with Boost Threads instead of Pthreads
Roger Meier [Wed, 16 Nov 2011 19:11:34 +0000 (19:11 +0000)] 
THRIFT-1387 Build MSVC libraries with Boost Threads instead of Pthreads
Minor Fix: add PDB files to vcxproj files
Patch: Peace C

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

13 years agoThrift-1426: Dist package missing files for release 0.8
Jake Farrell [Wed, 16 Nov 2011 12:58:36 +0000 (12:58 +0000)] 
Thrift-1426: Dist package missing files for release 0.8
Client: build
Patch: Jake Farrell

Cleans up dist target and removes extra folders.

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

13 years agoThrift-1428: shared.thrft does not include namespace for php, so thrift compiler...
Jake Farrell [Wed, 16 Nov 2011 12:12:37 +0000 (12:12 +0000)] 
Thrift-1428: shared.thrft does not include namespace for php, so thrift compiler generate incorrect name
Client: test
Patch: Ruslan Shevchenko

shared.thrft does not include namespace for php, so thrift compiler generate incorrect name

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

13 years agoTHRIFT-1411. java: java generator does not provide type parameter for TBaseProcessor
Bryan Duxbury [Mon, 14 Nov 2011 23:12:20 +0000 (23:12 +0000)] 
THRIFT-1411. java: java generator does not provide type parameter for TBaseProcessor

Patch: Jake Douglas

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

13 years agoThrift-1425:The Node package is incompatible with latest node (0.6) & npm (1.0.27)
Jake Farrell [Sat, 12 Nov 2011 14:18:30 +0000 (14:18 +0000)] 
Thrift-1425:The Node package is incompatible with latest node (0.6) & npm (1.0.27)
Client: nodejs
Patch: David Worms

Changes web to url within bug stanza for nodejs packaging

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

13 years agoThrift-1401: JSON-protocol for Delphi XE Libraries
Jake Farrell [Thu, 10 Nov 2011 21:11:46 +0000 (21:11 +0000)] 
Thrift-1401: JSON-protocol for Delphi XE Libraries
Client: delphi
Patch: Jake Farrell

Fixing windows newlines removed incorrectly.

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

13 years agoThrift-1401: JSON-protocol for Delphi XE Libraries
Jake Farrell [Thu, 10 Nov 2011 20:32:44 +0000 (20:32 +0000)] 
Thrift-1401: JSON-protocol for Delphi XE Libraries
Client: delphi
Patch: Jens Geyer

Adds support for the JSON protocol to the existing Delphi XE libraries.

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

13 years agoThrift-1424:Ruby specs fail when run with rake
Jake Farrell [Thu, 10 Nov 2011 00:53:17 +0000 (00:53 +0000)] 
Thrift-1424:Ruby specs fail when run with rake
Client: ruby
Patch: Peter Sanford

Fixes specs failing to load the spec_helper in ruby 1.9.2

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

13 years agoThrift-1421: Debian Packages can not be built
Jake Farrell [Wed, 9 Nov 2011 15:24:25 +0000 (15:24 +0000)] 
Thrift-1421: Debian Packages can not be built
Client: debian
Patch: Jake Farrell

Commenting out erlang from debian build until jsx can be fixed.

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

13 years agoThrift-184: Add OSGi Manifest headers to the libthrift java library to be able to...
Jake Farrell [Tue, 8 Nov 2011 01:39:47 +0000 (01:39 +0000)] 
Thrift-184: Add OSGi Manifest headers to the libthrift java library to be able to use Thrift in the OSGi runtime
Client: java
Patch: Jake Farrell

Updated manifest to add OSGI support.

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

13 years agoRemoving trailing quote in java build.properties file.
Jake Farrell [Sun, 6 Nov 2011 23:40:07 +0000 (23:40 +0000)] 
Removing trailing quote in java build.properties file.

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

13 years agoThrift-1421: Debian Packages can not be built (ruby build fails)
Jake Farrell [Sun, 6 Nov 2011 20:29:26 +0000 (20:29 +0000)] 
Thrift-1421: Debian Packages can not be built (ruby build fails)
Client: deb
Patch: Jake Farrell

Removing ruby from deb as it is now available as a gem.

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

13 years agoThrift-1382: Bundle install doesnot work because thrift crashes
Jake Farrell [Sun, 6 Nov 2011 19:58:32 +0000 (19:58 +0000)] 
Thrift-1382: Bundle install doesnot work because thrift crashes
Client: ruby

Fixing strlcpy header.

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

13 years agoThrift-1382: Bundle install doesnot work because thrift crashes
Jake Farrell [Sun, 6 Nov 2011 17:43:44 +0000 (17:43 +0000)] 
Thrift-1382: Bundle install doesnot work because thrift crashes
Client: ruby

Adding header for strlcpy.

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

13 years agoThrift-1382: Bundle install doesnot work because thrift crashes
Jake Farrell [Sun, 6 Nov 2011 16:07:45 +0000 (16:07 +0000)] 
Thrift-1382: Bundle install doesnot work because thrift crashes
Client: ruby
Patch: Jake Farrell

Fixes strlcpy header include issue with ruby 1.9.x.

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

13 years agoThrift-1251: Generated java code should indicate which fields are required and which...
Jake Farrell [Sun, 6 Nov 2011 15:02:30 +0000 (15:02 +0000)] 
Thrift-1251: Generated java code should indicate which fields are required and which are optional
Client: java
Patch: Jake Farrell

Fixes optional/required comments on fields.

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

13 years agoTHRIFT-1361 revert compiler/cpp/src/thrifty.yy change
Roger Meier [Sun, 6 Nov 2011 12:04:28 +0000 (12:04 +0000)] 
THRIFT-1361 revert compiler/cpp/src/thrifty.yy change
=> breaks mingw build
=> memleak fixes reported by cppcheck

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

13 years agoTHRIFT-1361 Optional replacement of pthread by boost::thread
Roger Meier [Sun, 6 Nov 2011 11:29:41 +0000 (11:29 +0000)] 
THRIFT-1361 Optional replacement of pthread by boost::thread
Patch: Alexandre Parenteau
rev3

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

13 years agoTHRIFT-1277 Node.js serializes false booleans as null
Roger Meier [Sun, 6 Nov 2011 10:37:11 +0000 (10:37 +0000)] 
THRIFT-1277 Node.js serializes false booleans as null
revert patch => breaks js

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

13 years agoThrift-1415: delphi: add version Info to the library
Jake Farrell [Sat, 5 Nov 2011 13:36:27 +0000 (13:36 +0000)] 
Thrift-1415: delphi: add version Info to the library
Client: delphi
Patch: Jens Geyer

Adding versioning to delphi library

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

13 years agoThrift-1277: Node.js serializes false booleans as null
Jake Farrell [Sat, 5 Nov 2011 13:16:34 +0000 (13:16 +0000)] 
Thrift-1277: Node.js serializes false booleans as null
Client: js
Patch: Hans Duedal

When serializing boolean types, false booleans are serialized as null instead of false switching to  using loose compare instead

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

13 years agoTHRIFT-1335: Add accept timeout to TServerSocket
Roger Meier [Fri, 4 Nov 2011 11:55:49 +0000 (11:55 +0000)] 
THRIFT-1335: Add accept timeout to TServerSocket
Client: cpp
Patch: Dave Watson

FIX: add accTimout_ Initialization to DomainSocket Constructor

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

13 years agoTHRIFT-1420. java: Nonblocking and HsHa server should make sure to close all their...
Bryan Duxbury [Fri, 4 Nov 2011 00:23:30 +0000 (00:23 +0000)] 
THRIFT-1420. java: Nonblocking and HsHa server should make sure to close all their socket connections when the selector exits

This patch makes the selector threads close out all of their open sockets before completely exiting. In testing, this appears to alleviate issues with hanging clients.

Patch: Thomas Kielbus

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

13 years agoTHRIFT-1419. java: AbstractNonBlockingServer does not catch errors when invoking...
Bryan Duxbury [Wed, 2 Nov 2011 22:40:01 +0000 (22:40 +0000)] 
THRIFT-1419. java: AbstractNonBlockingServer does not catch errors when invoking the processor

This patch changes the invoke() method to catch Throwables instead of just Exceptions.

Patch: Thomas Kielbus"

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

13 years agoTHRIFT-1416 Python Unit test is broken on ci
Roger Meier [Tue, 1 Nov 2011 21:03:33 +0000 (21:03 +0000)] 
THRIFT-1416 Python Unit test is broken on ci
remove repr from TestSuite

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

13 years agoThrift-1409: Name conflict check does not work properly for exception object(Delphi).
Jake Farrell [Tue, 1 Nov 2011 01:08:46 +0000 (01:08 +0000)] 
Thrift-1409: Name conflict check does not work properly for exception object(Delphi).
Client: delphi
Patch: Kenjiro Fukumitsu

Delphi compiler's naming check does not work properly with exception object in the function that generates struct writer.

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

13 years agoTHRIFT-1413: Generated code does not read MapEnd / ListEnd / SetEnd
Jake Farrell [Mon, 31 Oct 2011 14:13:13 +0000 (14:13 +0000)] 
THRIFT-1413: Generated code does not read MapEnd / ListEnd / SetEnd
Client: delphi
Patch: Jens Geyer

The generated code lacks calls to ReadMapEnd, ReadListEnd and ReadSetEnd. Although actually no problem occurs with the BinaryProtocol, other protocols (like JSON) do some important things there.

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