Commit Graph

1933 Commits

Author SHA1 Message Date
Bryan Duxbury
e25db162a5 THRIFT-1613. Add code back into empty source file ToStringTest.java
Actually, should have just deleted the file.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1343889 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 18:13:39 +00:00
Roger Meier
4cb8e40d8a THRIFT-1612 Base64 encoding is broken
Patch: Andrew Cox

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1343074 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 18:05:16 +00:00
Roger Meier
83042b9078 THRIFT-1613 Add code back into empty source file ToStringTest.java
Patch: Andrew Cox

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1343032 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 10:54:17 +00:00
Roger Meier
2d59b9e2ad THRIFT-1336 thrift: added server and processor test code
revert partly: disable processor test, it breaks the builds

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1341996 13f79535-47bb-0310-9956-ffa450edef68
2012-05-23 19:40:40 +00:00
Roger Meier
b6617836d4 THRIFT-1585 C++ library fails to build with OS X pthread implementation
Patch: David Nadlinger

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1341990 13f79535-47bb-0310-9956-ffa450edef68
2012-05-23 19:17:20 +00:00
Jake Farrell
86d2a4ada8 THRIFT-1610:IWebProxy not available on WP7 platform
Client: csharp
Patch: Jens Geyer

Fix WP7 clients which do not have IWebProxy available.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1340487 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 14:29:15 +00:00
Roger Meier
3f972b1cf1 THRIFT-1593 Pass on errors like "connection closed" to the handler module
Patch: Björn Bylander
+ bump jsx

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1340073 13f79535-47bb-0310-9956-ffa450edef68
2012-05-18 11:35:51 +00:00
Roger Meier
6849f2014d THRIFT-1598 Update Haskell generated code to use Text, Hash{Map,Set}, Vector
Patch: Itai Zukerman

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1340014 13f79535-47bb-0310-9956-ffa450edef68
2012-05-18 07:35:19 +00:00
Jake Farrell
6c5ee6ad20 Thrift-1604:Python exxception handeling for changes from PEP3110
Client: py
Patch: Jake Farrell

Python PEP 3110 changed exception handling by replacing the ',' with 'as'. This was initially introduced in python 2.6 and in 3.0 the ',' usage is no longer suppported. Since exception handling through out the py lib uses the ',' it will need to be converted over to using the 'as' syntax for exceptions



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1339941 13f79535-47bb-0310-9956-ffa450edef68
2012-05-18 01:00:39 +00:00
Jake Farrell
5e022aa686 THRIFT-1159:THttpClient->Flush() issue (connection thru proxy)
Client: csharp
Patch: Joshua Samuel + Alex Gaas

Resolve HttpClient flush issues with proxy.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1339934 13f79535-47bb-0310-9956-ffa450edef68
2012-05-18 00:33:54 +00:00
Jake Farrell
970c86a5f2 Thrift-1607:Incorrect file modes for several source files
Client: build
Patch: Andrew Cox

File modes of some non-script text files (e.g. .xml, .java, .cc) in the source tree include execute permissions (because these files have the svn:executable property).



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1339492 13f79535-47bb-0310-9956-ffa450edef68
2012-05-17 05:41:09 +00:00
Jake Farrell
94bb7f26f6 Thrift-1606:Race condition in BoostThreadFactory.cpp
Client: cpp
Patch: alexandre parenteau

Race condition between the line that set state_ to "starting", and the line that checked to make sure that it was "starting". That ended meaning that sometimes calling "start()" would not result in the thread's runnable being called.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1339477 13f79535-47bb-0310-9956-ffa450edef68
2012-05-17 04:32:10 +00:00
Roger Meier
a30930f677 THRIFT-1599 Fixing HTTP client(Ruby)
Patch: Tomas

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1337323 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 18:08:58 +00:00
Roger Meier
dd16f0538b THRIFT-1336 thrift: added server and processor test code
last commit was wrong! otherway around!
disable concurrency instead of processor_test ... does not run properly on build slaves

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1337177 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 14:19:48 +00:00
Roger Meier
4f260f7a5f THRIFT-1336 thrift: added server and processor test code
disable processor_test ... does not run properly on build slaves

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1337162 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 13:50:11 +00:00
Roger Meier
2b1a5289a7 THRIFT-1336 thrift: added server and processor test code
move the tests from src to test:
lib\cpp\src\thrift\concurrency\test to lib\cpp\test\concurrency
lib\cpp\src\thrift\processor\test to lib\cpp\test\processor

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1337098 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 10:12:39 +00:00
Jake Farrell
b87e5667a4 Thrift-1079:Support i64 in AS3
Client: as3
Patch: Reverting 

Reverting patch due to usage of non public library which breaks ability to export as3 client to maven central during a release.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1337007 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 02:23:00 +00:00
Roger Meier
67377e7f3b fix broken build introduced with THRIFT-1336
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1336895 13f79535-47bb-0310-9956-ffa450edef68
2012-05-10 21:17:53 +00:00
Roger Meier
2be7f24102 THRIFT-1336 thrift: added server and processor test code
Patch: Dave Watson
- rework made by roger

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1336544 13f79535-47bb-0310-9956-ffa450edef68
2012-05-10 09:01:45 +00:00
Roger Meier
0b92274003 THRIFT-1597 TJSONProtocol.php is missing from Makefile.am
Patch: Andrew Grumet


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1335717 13f79535-47bb-0310-9956-ffa450edef68
2012-05-08 19:42:33 +00:00
Roger Meier
bb6de7aab0 THRIFT-1596 Delphi: Test clients should have a return codes that reflect whether they succeeded or not
Patch: Jens Geyer

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1334250 13f79535-47bb-0310-9956-ffa450edef68
2012-05-04 23:35:45 +00:00
Roger Meier
99b3672530 THRIFT-1588 Java Generated Exceptions don't follow inheritance pattern as other Languages
- fix the build!
- add test/gen-html for ThriftTest.thrift

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1333628 13f79535-47bb-0310-9956-ffa450edef68
2012-05-03 21:21:43 +00:00
Roger Meier
f50df7f2ba THRIFT-1588 Java Generated Exceptions don't follow inheritance pattern as other Languages
Patch: Nathaniel Cook

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1333239 13f79535-47bb-0310-9956-ffa450edef68
2012-05-02 22:49:55 +00:00
Roger Meier
95b1bd71e3 THRIFT-1588 Java Generated Exceptions don't follow inheritance pattern as other Languages
- reduce NUM_QUERIES within test for slow machines ;-r

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1332809 13f79535-47bb-0310-9956-ffa450edef68
2012-05-01 20:43:26 +00:00
Roger Meier
f666d07289 THRIFT-1514 Callbacks with newer jQuery versions don't work
Patch: Andrew Grumet

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1332619 13f79535-47bb-0310-9956-ffa450edef68
2012-05-01 11:20:12 +00:00
Roger Meier
b70e04cab0 THRIFT-1586 Two small D issues
Patch: David Nadlinger

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1331810 13f79535-47bb-0310-9956-ffa450edef68
2012-04-28 19:20:23 +00:00
Roger Meier
c75797d906 THRIFT-1583 c_glib leaks memory
THRIFT-1578 C_GLib generated code does not compile
THRIFT-1582 Bad includes of nested thrift files in c_glib

Patch: José Antonio Santos
Minor Modificatons by roger:
- thrift prefix for includes
- g_object_unref instead of g_clear_object (needs glib>=2.28)

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1331752 13f79535-47bb-0310-9956-ffa450edef68
2012-04-28 11:33:58 +00:00
Roger Meier
7c7679198f THRIFT-1577 Compile thrift with php module for php 5.4.0 failed. need to replace function_entry with zend_function_entry
Patch: Matrix Ji

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1327152 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 16:03:21 +00:00
Roger Meier
b661e83fab THRIFT-1277 Node.js serializes false booleans as null
Patch: Henrique Mendonca

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1326371 13f79535-47bb-0310-9956-ffa450edef68
2012-04-15 15:58:43 +00:00
Roger Meier
2badac7bd2 THRIFT-1552 Thrift (cpp) include files shouldn't require adding "thrift" to the compilers include path
Some additional fixes to build it on windows as well
Patch: Benoit Dion and Roger Meier

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1326087 13f79535-47bb-0310-9956-ffa450edef68
2012-04-14 11:03:43 +00:00
Roger Meier
1516be04e0 Merge branch 'trunk' of https://github.com/benoitdion/thrift into trunk
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1326086 13f79535-47bb-0310-9956-ffa450edef68
2012-04-14 11:03:21 +00:00
Roger Meier
92a90ff8cf THRIFT-1566 Thrift/cpp: Use some different string operations
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325792 13f79535-47bb-0310-9956-ffa450edef68
2012-04-13 14:50:32 +00:00
Roger Meier
cfff8569bb THRIFT-1569 thrift: add stop() method to python TNonblockingServer
Patch: Dave Watson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325784 13f79535-47bb-0310-9956-ffa450edef68
2012-04-13 14:24:55 +00:00
Roger Meier
3f5a264cd9 THRIFT-1568 Thrift: Add User-Agent header to Python THttpClient
Patch: Dave Watson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325781 13f79535-47bb-0310-9956-ffa450edef68
2012-04-13 14:20:08 +00:00
Roger Meier
a3410db0c8 THRIFT-1564 Minor fixes to TZlibTransport
Patch: Dave Watson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325712 13f79535-47bb-0310-9956-ffa450edef68
2012-04-13 10:30:11 +00:00
Roger Meier
33eaa0f100 THRIFT-1552 Thrift (cpp) include files shouldn't require adding "thrift" to the compilers include path.
roger: some additional fixes

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325677 13f79535-47bb-0310-9956-ffa450edef68
2012-04-13 09:13:13 +00:00
Roger Meier
49ff8b123a THRIFT-1552 Include paths for c/c++ should be prefixed with 'thrift/'
To ensure there are no include path collisions the C and C++ header
include paths should include 'thrift' as the root leaf. This will
prevent having to place /usr/include/thrift into the compilers include
header search path, which might otherwise result in the compiler
accidentally picking up headers that it shouldn't.

e.g. #include <foo/bar.h> should be #include <thrift/foo/bar.h>

Change-Id: I48f2b0f549bda0fc81e85506ac857adc800b98a1

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325674 13f79535-47bb-0310-9956-ffa450edef68
2012-04-13 09:12:31 +00:00
Roger Meier
49ef6587b4 THRIFT-1079 Support i64 in AS3
Patch: Ethan Urie

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325048 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 22:28:26 +00:00
Roger Meier
fa392e91ad THRIFT-1560 Add setCustomHeaders() method to python thrift lib
Patch: Dave Watson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325041 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 22:15:15 +00:00
Roger Meier
02c827bcfe THRIFT-1562 Fix issue with TFramedTransport::readSlow
Patch: Dave Watson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325034 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 21:59:57 +00:00
Roger Meier
d8f50f3ffe THRIFT-1563 thrift: make serve() throw an exception if it fails
Patch: Dave Watson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325026 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 21:48:56 +00:00
Roger Meier
ec8027ffad THRIFT-1561 expose #active connections
Patch: Dave Watson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325024 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 21:43:25 +00:00
Roger Meier
d1bf5d0336 THRIFT-1558 Named Pipe and Anonymous Pipe transport for Windows
Patch: Peace C

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325020 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 21:38:56 +00:00
Roger Meier
b1ec4ccca1 THRIFT-1412 Thrift Transport classes should manage the lifetime of objects implementing IDisposable by implementing IDisposable themselves
Patch: Joshua Garvin

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325013 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 21:21:41 +00:00
Roger Meier
7699b40232 add license headers, fix compiler warnings
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1311065 13f79535-47bb-0310-9956-ffa450edef68
2012-04-08 18:18:44 +00:00
Jake Farrell
b95b0ffa72 THRIFT-1500: d programming language support
Client: D
Patch: David Nadlinger

D program language library and additions



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1304085 13f79535-47bb-0310-9956-ffa450edef68
2012-03-22 21:49:10 +00:00
Anthony F. Molinaro
f485e2bdb3 THRIFT-1343 - remove internal min function, it seems the same as erlang:min/2
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1303672 13f79535-47bb-0310-9956-ffa450edef68
2012-03-22 07:04:37 +00:00
Anthony F. Molinaro
e2378f69ef THRIFT-1344 - fix http deprecation warning
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1303671 13f79535-47bb-0310-9956-ffa450edef68
2012-03-22 07:02:15 +00:00
Anthony F. Molinaro
3bba214c13 THRIFT-1532 - slightly better fix, take into account requiredness when adding default values
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1303666 13f79535-47bb-0310-9956-ffa450edef68
2012-03-22 06:48:33 +00:00
Anthony F. Molinaro
31835148b2 THRIFT-1532/THRIFT-1475 - fix record generation for erlang
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1303663 13f79535-47bb-0310-9956-ffa450edef68
2012-03-22 06:23:36 +00:00
Jake Farrell
9c6773aeef THRIFT-1537:TFramedTransport issues
Client: delphi
Patch: Jens Geyer

TFramedTransport fixes for:
 - The offset "off" is ignored, instead always 0 is used fpor reads and writes
 - Trying to write an empty byte array results in range check exceptions



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1303637 13f79535-47bb-0310-9956-ffa450edef68
2012-03-22 02:40:45 +00:00
Jake Farrell
ca620e3788 THRIFT-1429:The nonblocking servers is supposed to use TransportFactory to read the data
Client: Java
Patch: Bryan Duxbury 

Enforce the transport factory on the server-read side as well as on the server-write side



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1296060 13f79535-47bb-0310-9956-ffa450edef68
2012-03-02 05:56:03 +00:00
Jake Farrell
4ca8c3b819 THRIFT-1523: clientTimeout not worked as expected in TServerSocket created by TSSLTransportFactory
Client: java
Patch: Alexey Sviridov

Adds server timeout to SSLTransportFactory



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1296053 13f79535-47bb-0310-9956-ffa450edef68
2012-03-02 05:22:02 +00:00
Jake Farrell
363f6d414b THRIFT-1128:MAC OS X thrift.h incompatibility with Thrift.h
Client: cpp, c_glib
Patch: Jake Farrell

Moving c_glib headers into $(includedir)/thrift/c_glib to not collide with cpp headers.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1296038 13f79535-47bb-0310-9956-ffa450edef68
2012-03-02 02:50:50 +00:00
Bryan Duxbury
38087708b5 THRIFT-1529. java: TupleProtocol can unintentionally include an extra byte in bit vectors when number of optional fields is an integral of 8
This patch harmonizes the math between writeBitSet and readBitSet to eliminate the mismatch in number of bytes calculation, allowing structs to be serialized correctly.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1295995 13f79535-47bb-0310-9956-ffa450edef68
2012-03-01 23:41:09 +00:00
Bryan Duxbury
f85ad51765 THRIFT-1526. java: Union TupleSchemeFactory returns StandardSchemes
This patch makes it return nice, proper TupleSchemes.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1294925 13f79535-47bb-0310-9956-ffa450edef68
2012-02-29 01:12:27 +00:00
Ilya Maykov
a81b040ee0 THRIFT-369: sets and maps break equality
Client: ruby
Patch: Ilya Maykov
Added a unit test demonstrating that equality is not broken for structs with nested containers.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1294917 13f79535-47bb-0310-9956-ffa450edef68
2012-02-29 00:39:38 +00:00
Roger Meier
35f977c28e THRIFT-1524 TNonBlockingServer does not compile in Visual Studio 2010
Patch: Christian Taedcke

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1294824 13f79535-47bb-0310-9956-ffa450edef68
2012-02-28 20:50:13 +00:00
Roger Meier
8b1adf42e2 THRIFT-1524 TNonBlockingServer does not compile in Visual Studio 2010
Patch: Christian Taedcke

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1294819 13f79535-47bb-0310-9956-ffa450edef68
2012-02-28 20:34:06 +00:00
Roger Meier
5b9693c9fa THRIFT-1388 Delphi XE code-generation test case
Patch: Jens Geyer

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1294798 13f79535-47bb-0310-9956-ffa450edef68
2012-02-28 19:32:55 +00:00
Anthony F. Molinaro
cb4e116ea7 THRIFT-1520 : embed version number in .app file for easier integration with rebar
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1292466 13f79535-47bb-0310-9956-ffa450edef68
2012-02-22 19:33:43 +00:00
Roger Meier
2b828b1a94 THRIFT-1516 TProtocolException in C# should be public
Patch: Stefan Gmeiner

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1292148 13f79535-47bb-0310-9956-ffa450edef68
2012-02-22 07:08:36 +00:00
Roger Meier
2fbde0eff0 THRIFT-1517 TTransport.ReadAll() should set exception type to EndOfFile
Patch: Stefan Gmeiner

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1291039 13f79535-47bb-0310-9956-ffa450edef68
2012-02-19 18:53:08 +00:00
Bryan Duxbury
b405ca6be8 THRIFT-1447. java: NullpointerException in ProcessFunction.class :in 'oneway' method
Patch: Ihor Mysak

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1244272 13f79535-47bb-0310-9956-ffa450edef68
2012-02-14 23:35:22 +00:00
Roger Meier
19a991528f THRIFT-1348 C++ Qt bindings
Patch: Doug Rosvick
qt-cleanup.patch applied

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1243124 13f79535-47bb-0310-9956-ffa450edef68
2012-02-11 19:09:30 +00:00
Roger Meier
0bab154d9f THRIFT-1348 C++ Qt bindings
fix: remove moc_TQTcpServer.cpp (was added by accident)

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1242921 13f79535-47bb-0310-9956-ffa450edef68
2012-02-10 21:08:36 +00:00
Roger Meier
86e8986587 THRIFT-1348 C++ Qt bindings
Patch: Doug Rosvick and Vitali Lovich

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1242900 13f79535-47bb-0310-9956-ffa450edef68
2012-02-10 19:53:20 +00:00
Roger Meier
64af51bbbb THRIFT-1512 Thrift socket support for Windows XP
Patch: Peace C

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1241171 13f79535-47bb-0310-9956-ffa450edef68
2012-02-06 20:46:06 +00:00
Jake Farrell
6f0f527583 THRIFT-1510:There should be an implementation of the JsonProtocol for ruby
Client: ruby
Patch: Wim Crols

JSON impl for ruby



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1238144 13f79535-47bb-0310-9956-ffa450edef68
2012-01-31 03:39:30 +00:00
Jake Farrell
c00d83b26a Thrift-1453:Don't change types of arguments when serializing with thrift php extension
Client:php
patch: Dave Watson

Don't change types of arguments when serializing with thrift php extension



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1236972 13f79535-47bb-0310-9956-ffa450edef68
2012-01-28 03:57:58 +00:00
Jake Farrell
f9f01fa1e0 THRIFT-1394:Treatment of optional fields is not consistent between C++ and Java
Client: cpp
Patch: Diwaker Gupta

In CPP, all optional fields are guarded by the isset helper struct. On Java, however, the generated code takes advantage of nullable types: for containers, structs, exceptions, enums, and, notably, strings, the generator elides explicit use of an "isset" bit vector and instead emits checks of the form "field null". This leads to varying behavior between the two languages: an optional string field with a default value will have {{isset[fieldid]}} false on C, but the equivalent test in Java will be true.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1236529 13f79535-47bb-0310-9956-ffa450edef68
2012-01-27 04:48:26 +00:00
Jake Farrell
6ce2704a14 Thrift-1502:TSimpleServer::serve(): Do not print out error message if server was stopped.
Client: cpp
Patch: Vibhav Sreekanti

Print msg on TSimpleServer stop.


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1236523 13f79535-47bb-0310-9956-ffa450edef68
2012-01-27 04:32:17 +00:00
Jake Farrell
b2c4952799 Thrift-1465:Visibility of methods in generated java code
Client: java
Patch: Ashutosh Chauhan

Changes visibility of processor getProcessMap() and getEmptyArgs() methods


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1236515 13f79535-47bb-0310-9956-ffa450edef68
2012-01-27 04:01:54 +00:00
Jake Farrell
100f616afd 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
2012-01-27 03:19:01 +00:00
Roger Meier
ac70b5f832 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
2012-01-24 20:18:07 +00:00
Roger Meier
6823b6d729 add info on proxy usage
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1235438 13f79535-47bb-0310-9956-ffa450edef68
2012-01-24 19:35:09 +00:00
Roger Meier
33b720a958 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
2012-01-24 18:42:46 +00:00
Roger Meier
f0e517db99 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
2012-01-17 21:20:56 +00:00
Roger Meier
36f7a72646 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
2012-01-17 19:18:13 +00:00
Jake Farrell
d77d180355 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
2012-01-17 14:28:05 +00:00
Roger Meier
4749b4f66e 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
2012-01-17 12:25:22 +00:00
Roger Meier
eaa61d8fda 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
2012-01-12 21:38:29 +00:00
Roger Meier
333bbf3d88 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
2012-01-08 21:51:08 +00:00
Roger Meier
45a372679d 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
2012-01-08 21:44:44 +00:00
Roger Meier
c8d5d4d911 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
2012-01-07 20:32:24 +00:00
Bryan Duxbury
6972041392 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
2012-01-03 17:32:30 +00:00
Bryan Duxbury
a3df547c84 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
2011-12-27 22:26:59 +00:00
Bryan Duxbury
e7bec40882 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
2011-12-22 19:04:16 +00:00
Bryan Duxbury
1e79cb40f5 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
2011-12-21 18:13:29 +00:00
Jake Farrell
a2a9ee993e 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
2011-12-15 20:50:31 +00:00
Jake Farrell
f3e48d4a2e 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
2011-12-14 23:48:22 +00:00
Roger Meier
12d705390d 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
2011-12-14 23:35:28 +00:00
Jake Farrell
ea949fbaf9 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
2011-12-13 20:02:33 +00:00
Bryan Duxbury
3371925d18 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
2011-12-13 18:33:15 +00:00
Roger Meier
ca10fd4a51 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
2011-12-12 22:00:23 +00:00
Roger Meier
611f90cf9e 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
2011-12-11 22:08:51 +00:00
Roger Meier
3fc4819617 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
2011-12-11 21:05:35 +00:00
Roger Meier
1d282a95c6 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
2011-12-11 20:30:21 +00:00
Roger Meier
3781c2419c 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
2011-12-11 20:07:21 +00:00
Jake Farrell
343c61d6a7 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
2011-12-09 02:29:56 +00:00
Jake Farrell
12ac2acfaf 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
2011-12-09 02:21:37 +00:00
Roger Meier
6c26fad246 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
2011-12-08 20:44:16 +00:00
Roger Meier
d0cdecf4a1 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
2011-12-08 19:34:01 +00:00
Roger Meier
284a9b56d7 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
2011-12-08 13:39:56 +00:00
Roger Meier
406fc7497d 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
2011-12-08 11:32:21 +00:00
Jake Farrell
f05e1486e4 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
2011-12-08 02:08:38 +00:00
Jake Farrell
23bf35daa3 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
2011-12-08 02:02:20 +00:00
Jake Farrell
21f8dc900a 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
2011-12-06 03:13:55 +00:00
Jake Farrell
753b6c5674 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
2011-12-06 01:41:59 +00:00
Jake Farrell
b0d9560c33 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
2011-12-06 01:17:26 +00:00
Jake Farrell
9689d89df1 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
2011-12-06 01:07:17 +00:00
Jake Farrell
6fa2b30940 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
2011-12-06 00:59:30 +00:00
Jake Farrell
9901069442 Updating trunk to 0.9.0 version.
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1208214 13f79535-47bb-0310-9956-ffa450edef68
2011-11-30 02:09:46 +00:00
Jake Farrell
b03a59cc5c 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
2011-11-29 16:45:51 +00:00
Jake Farrell
a0dd75d7c8 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
2011-11-26 05:23:09 +00:00
Roger Meier
289cbb2e4c 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
2011-11-23 20:44:09 +00:00
Jake Farrell
ac10256fcc 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
2011-11-23 14:30:41 +00:00
Jake Farrell
e34009b76c 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
2011-11-17 00:17:29 +00:00
Roger Meier
1b533e9177 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
2011-11-16 19:11:34 +00:00
Jake Farrell
e0c5316736 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
2011-11-16 12:58:36 +00:00
Jake Farrell
e24ba11cbb 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
2011-11-12 14:18:30 +00:00
Jake Farrell
29defeb6a7 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
2011-11-10 21:11:46 +00:00
Jake Farrell
2727422951 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
2011-11-10 20:32:44 +00:00
Jake Farrell
8941458f72 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
2011-11-10 00:53:17 +00:00
Jake Farrell
34e1db48db 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
2011-11-08 01:39:47 +00:00
Jake Farrell
d889d8ddfa 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
2011-11-06 23:40:07 +00:00
Jake Farrell
9e7a88267c 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
2011-11-06 19:58:32 +00:00
Jake Farrell
d5df77a906 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
2011-11-06 17:43:44 +00:00
Jake Farrell
ceead00409 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
2011-11-06 16:07:45 +00:00
Roger Meier
6f7681f91d 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
2011-11-06 12:04:28 +00:00
Roger Meier
38315786e5 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
2011-11-06 11:29:41 +00:00
Jake Farrell
28459dc9c5 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
2011-11-05 13:36:27 +00:00
Roger Meier
17b8469d16 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
2011-11-04 11:55:49 +00:00
Bryan Duxbury
df971daf37 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
2011-11-04 00:23:30 +00:00
Bryan Duxbury
e7bdf70dab 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
2011-11-02 22:40:01 +00:00
Jake Farrell
73a921f85c Thrift-1408: Delphi Test Server: Exception test case fails due to naming conflict with e.message
Client: delphi
Patch: jens Geyer

Fix name comflict with e.message 



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1195461 13f79535-47bb-0310-9956-ffa450edef68
2011-10-31 14:07:14 +00:00
Jake Farrell
1290d42162 THRIFT-1407: Typo in Python socket server causes Thrift to fail when we enable a global socket timout
Client: py
Patch: adalc

Fixes typo in python socket server timeout



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1189170 13f79535-47bb-0310-9956-ffa450edef68
2011-10-26 12:36:17 +00:00
Jake Farrell
806d298042 THRIFT-1399: One of the TServerImpl.Create CTORs lacks implementation
Client: delphi
Patch: Jens Geyer

Adding delphi test server missing constructor. 



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1189007 13f79535-47bb-0310-9956-ffa450edef68
2011-10-26 02:33:31 +00:00
Jake Farrell
d09362c5c7 THRIFT-1404: Delphi compiler generates struct reader code with problem.
Client: delphi
Patch: Kenjiro Fukumitsu

After recieved STOP,it calls additional ReadFieldEnd, which is different from the implementation of other language compiler.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1189005 13f79535-47bb-0310-9956-ffa450edef68
2011-10-26 02:25:07 +00:00
Bryan Duxbury
bcbf6d6fcd THRIFT-1400. rb: Ruby native extension aborts with __stack_chk_fail in OSX
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1188248 13f79535-47bb-0310-9956-ffa450edef68
2011-10-24 17:29:16 +00:00
Roger Meier
266a6b5c11 THRIFT-1361 Optional replacement of pthread by boost::thread
revert boost changes

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1186049 13f79535-47bb-0310-9956-ffa450edef68
2011-10-19 09:27:01 +00:00
Roger Meier
0dab3832c7 THRIFT-1361 Optional replacement of pthread by boost::thread
Patch: Alexandre Parenteau

Remark: lib/cpp/src/concurrency/BoostMutex.cpp is unmodified

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1185904 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 22:19:30 +00:00
Jake Farrell
711c70c786 Thrift-1393: TTransportException's thrown from THttpClient contain superfluous slashes in the Exception message
Client : php
Patch: Nick Jones

The THttpClient class ensures the $uri_ property has a slash prefixed by appending one if needed in the constructor. However in THttpClient::read, there are 2 exceptions thrown where a slash is concatenated between the port and uri. This results in a superfluous slash in the TTransportException message.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1185723 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 15:31:17 +00:00
Jake Farrell
7ae13e10f7 Thrift-1366: Delphi generator, lirbrary and unit test.
Client: delphi
Patch: Kenjiro Fukumitsu

Adding delphi XE generator, lib and unit tests.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1185688 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 14:35:26 +00:00
Roger Meier
857a8b8bf8 THRIFT-1261 STDIO support for node-thrift
Patch: Jordan Shaw

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1183221 13f79535-47bb-0310-9956-ffa450edef68
2011-10-14 06:35:28 +00:00
Roger Meier
bf12239d2e THRIFT-1381 Thrift C++ libs have incorrectly versioned names
Patch: Jake Farrell

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1182052 13f79535-47bb-0310-9956-ffa450edef68
2011-10-11 19:48:57 +00:00
Roger Meier
878a948894 THRIFT-1387 Build MSVC libraries with Boost Threads instead of Pthreads
Patch: Peace C & Alexandre Parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1182024 13f79535-47bb-0310-9956-ffa450edef68
2011-10-11 19:02:37 +00:00
Jake Farrell
51700649d0 Thrift-1377: abort PHP deserialization on unknown field type
client: php
Patch: Dave Watson

Previously the code incorrectly ignored unknown field types. After
reading the field header, if it was an unknown type it would incorrectly
assume there was no data, and start trying to read the next field
immediately. 



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1179907 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 00:17:25 +00:00
Jake Farrell
336a1599d7 Thrift-1375: fixed a hex char conversion bug in TJSONProtocol
Client: java
Patch: Dave Watson

Fixed a hex char conversion bug in TJSONProtocol: 10 ~ 15 <=> 'a' ~ 'f'.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1179904 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 00:10:20 +00:00
Roger Meier
20e6ef136e THRIFT-1361 Optional replacement of pthread by boost::thread (minor fix)
FIX: member initialization order within constructor

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1178532 13f79535-47bb-0310-9956-ffa450edef68
2011-10-03 19:37:09 +00:00
Roger Meier
3faaedf46b THRIFT-1361 Optional replacement of pthread by boost::thread
Patch: alexandre parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1178176 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 10:51:45 +00:00
Roger Meier
3516e0e306 THRIFT-1031 Patch to compile Thrift for vc++ 9.0 and 10.0
Patch: Peace

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1177817 13f79535-47bb-0310-9956-ffa450edef68
2011-09-30 20:23:34 +00:00
Bryan Duxbury
9a1d2f01c6 add utility for benchmarking protocols against each other
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1177458 13f79535-47bb-0310-9956-ffa450edef68
2011-09-29 22:51:54 +00:00
Bryan Duxbury
44b2bb6bb5 revert THRIFT-959
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1176472 13f79535-47bb-0310-9956-ffa450edef68
2011-09-27 17:07:19 +00:00
Bryan Duxbury
40d51a28d7 THRIFT-1365. java: TupleProtocol#writeBitSet unintentionally writes a variable length byte array
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1176072 13f79535-47bb-0310-9956-ffa450edef68
2011-09-26 21:29:15 +00:00
Bryan Duxbury
f35741729f inconsequential indentation fix to java compiler
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1176034 13f79535-47bb-0310-9956-ffa450edef68
2011-09-26 20:32:59 +00:00
Jake Farrell
7dcd49f1f9 THRIFT-1357: Erlang dependency breaks build
Client: erl
Patch: Peter Neumark

Updates json protocol to work with JSX 0.9.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1175906 13f79535-47bb-0310-9956-ffa450edef68
2011-09-26 15:29:03 +00:00
Roger Meier
db3c9249c8 THRIFT-1359 --gen-cob cpp:cob_style does not compile anymore
Patch: Alexandre Parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1175308 13f79535-47bb-0310-9956-ffa450edef68
2011-09-25 07:16:17 +00:00
Jake Farrell
5209237739 Thrift-1355: Running make in lib/rb doesn't build the native extensions
Client: rb
Patch: jfarrell

Builds extension prior to running spec calls to resolve test deps.




git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1174896 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 17:24:00 +00:00
Roger Meier
8cd3b1aa3c THRIFT-1031 Patch to compile Thrift for vc++ 9.0 and 10.0
=> some more improvements

Patch: James Dickson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1174801 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 14:25:22 +00:00
Jake Farrell
4bd4f0ec25 Thrift-1354: Add rake task to build just the gem file
Client: rb
Patch: jfarrell

Updates ruby build to now build the gem by default and adds a rake task to create the gem.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1174393 13f79535-47bb-0310-9956-ffa450edef68
2011-09-22 21:15:02 +00:00
Bryan Duxbury
18784d7ccc THRIFT-1339. java: Extend Tuple Protocol to TUnions
This patch implements TupleProtocol (and general Scheme support) to TUnion descendants.

Patch: Armaan Sarkar

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1173418 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 22:53:31 +00:00
Bryan Duxbury
e80a194c47 THRIFT-1331. rb: Ruby library deserializes an empty map to nil
This patch properly detects when the metadata is omitted in Compact Protocol messages.

Patch: Armaan Sarkar

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1173300 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 18:45:56 +00:00
Jake Farrell
7e3b866a35 THRIFT-1350: Go library code does not build against latest release
Client: go
Patch: Kyle Consalus

Go has moved it's URL-handling code into a "url" package, patch updates for these new changes.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1172901 13f79535-47bb-0310-9956-ffa450edef68
2011-09-19 23:38:39 +00:00
Anthony F. Molinaro
a653067e8c THRIFT-1227 - erlang implementation of thrift json protocol
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1172199 13f79535-47bb-0310-9956-ffa450edef68
2011-09-18 04:57:50 +00:00
Roger Meier
84e4a3c181 THRIFT-1031 Patch to compile Thrift for vc++ 9.0 and 10.0
Patch: James Dickson and Alexandre Parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1171777 13f79535-47bb-0310-9956-ffa450edef68
2011-09-16 20:58:44 +00:00
Jake Farrell
32e7b2c7e3 THRIFT-1335: Add accept timeout to TServerSocket
Client: cpp
Patch: Dave Watson

Added an accept timeout to the TServerSocket poll loop



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1170443 13f79535-47bb-0310-9956-ffa450edef68
2011-09-14 06:19:10 +00:00
Jake Farrell
627f1a0088 Thrift-1345: Allow building without test cases
Client: build env
Patch: Vitali Lovich

Adds --without-tests to configure to omit processing/building the test directories.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1170426 13f79535-47bb-0310-9956-ffa450edef68
2011-09-14 03:43:49 +00:00
Roger Meier
c3f033f40b THRIFT-1342 Compilation problem on Windows of fastbinary.c
Patch: alexandre parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1170180 13f79535-47bb-0310-9956-ffa450edef68
2011-09-13 13:54:05 +00:00
Roger Meier
a93848b684 THRIFT-1341 TProtocol.h endian detection wrong with boost
Patch: alexandre parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1169963 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 22:20:11 +00:00
Roger Meier
f4eec7a57b THRIFT-1115 python TBase class for dynamic (de)serialization, and __slots__ option for memory savings
Patch: Will Pierce

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1169492 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 18:16:21 +00:00
Roger Meier
08077bf9d8 THRIFT-1243 TAsyncChannel callbacks
improved exception handling
Patch: Alexandre Parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1167679 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 07:28:54 +00:00
Roger Meier
4f8a523fa0 THRIFT-1238 Thrift JS client cannot read map of structures
Patch: Henrique Mendonca

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1167032 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 08:17:02 +00:00
Jake Farrell
2e9f5105b8 THRIFT-1333: Make RWGuard not copyable
Client: cpp
Patch: Dave Watson

Copying would cause contained mutex to unlock twice, changing to noncopyable.




git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1166996 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 04:32:36 +00:00
Jake Farrell
4013fa3117 Thrift-1334: Add more info to IllegalStateException
Client cpp
Patch: Dave Watson

Add support for the message field in IllegalStateException



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1166992 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 04:10:32 +00:00
Jake Farrell
251939c6b1 THRIFT-1332: TSSLTransportParameters class uses hard coded value keyManagerType: SunX509
Client: java
Patch: Vladimir Zhilyaev

Convert Keymanger and TrustManager over to using detected jvm values rather than hard coded.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1166798 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 16:57:40 +00:00
Bryan Duxbury
f099873704 THRIFT-1328. java: TBaseHelper.toString(...) appends ByteBuffer data outside of valid buffer range
This patch now correctly considers both arrayOffset and position when determining how to access the backing array of a buffer.

Patch: Andy Schlaikjer

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1166292 13f79535-47bb-0310-9956-ffa450edef68
2011-09-07 18:12:34 +00:00
Jake Farrell
eb7a755af4 Thrift-1322: OCaml lib fail to compile: Thrift.ml line 305, int vs int32 mismatch
Client: OCaml

Updates the ocaml lib INTERNAL and PROTOCOL error enums to use the correct numeric values



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1165753 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 16:26:58 +00:00
Roger Meier
2fa9c31e06 THRIFT-1320 Consistency of configure generated config.h
Patch: Alexandre Parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1165400 13f79535-47bb-0310-9956-ffa450edef68
2011-09-05 19:15:53 +00:00
Roger Meier
212022cce6 THRIFT-322 IHttpHandler for Thrift
Patch: Nils Huegelmann

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1164723 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 21:45:44 +00:00
Roger Meier
267c181c6a remove unused variable sz
add .gitignore stuff

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1164696 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 20:33:33 +00:00
Bryan Duxbury
adaf82615b THRIFT-1319. java: Mismatch between how a union reads and writes a container
This patch fixes the problem in the java generator (and removes an unnecessary comment). It also amends TestTUnion to catch this.

Patch: Armaan Sarkar

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1164202 13f79535-47bb-0310-9956-ffa450edef68
2011-09-01 18:54:07 +00:00
Bryan Duxbury
7a9fb81796 THRIFT-1316. cpp: update server classes to accept
TProcessorFactory objects

Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1164201 13f79535-47bb-0310-9956-ffa450edef68
2011-09-01 18:31:53 +00:00
Bryan Duxbury
6dd9cd0e3b THRIFT-1314. cpp: add TProcessorFactory
Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1164190 13f79535-47bb-0310-9956-ffa450edef68
2011-09-01 18:06:20 +00:00
Bryan Duxbury
2173ce0250 THRIFT-1315. cpp: generate server interface factory classes
Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1164187 13f79535-47bb-0310-9956-ffa450edef68
2011-09-01 18:00:37 +00:00
Bryan Duxbury
c58c9e8e41 THRIFT-1317. cpp: Remove copy constructibility from
thrift::concurrency::Guard

Patch: Jordan DeLong

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1164164 13f79535-47bb-0310-9956-ffa450edef68
2011-09-01 16:52:56 +00:00
Bryan Duxbury
266b1737a5 THRIFT-1305. cpp: make TConnection a private inner class of
TNonblockingServer

The previous patch reverted some elements of THRIFT-1217. Fixed.

Patch: Alexandre Parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1164161 13f79535-47bb-0310-9956-ffa450edef68
2011-09-01 16:50:28 +00:00
Jake Farrell
9c39f7765e Thrift-1286: Modernize the Thrift Ruby Library Dev Environment
Client: Ruby
Patch: jfarrell

Updates to ruby build process with the following changes:
 - Removes dependency on echoe for spec generation
 - Adds gemfile for bulider and uses thrift.gemspec for dependency management.
 - Adds checks in configure for builder and only calls if available (make check-local on ci servers)
 - Adds checks in configure for Ruby and rake (bundler as well but this is optional for check-local and auto dependency management)
 - Still allows for rake to do its thing if all dependencies are in place
 - Removed Manifest and setup.rb
 - Adds a install task which will generate a gem and then install that gem to locally configured ruby path (no more prefix or destdir with this client)



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1163341 13f79535-47bb-0310-9956-ffa450edef68
2011-08-30 19:12:10 +00:00
Bryan Duxbury
526fa8e47f THRIFT-1305. cpp: make TConnection a private inner class of
TNonblockingServer

Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1162987 13f79535-47bb-0310-9956-ffa450edef68
2011-08-29 20:28:23 +00:00
Bryan Duxbury
489f8f1d59 THRIFT-1304. cpp: TNonblockingServer: pass in the connection context to
process()

Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1162943 13f79535-47bb-0310-9956-ffa450edef68
2011-08-29 18:50:12 +00:00
Jake Farrell
2cb3913f99 THRIFT-1306: Fix stale documentation
Client: cpp
Patch: Diwaker Gupta

Fix documentation to match API change. Also format to 80 chars.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1162937 13f79535-47bb-0310-9956-ffa450edef68
2011-08-29 18:34:41 +00:00
Bryan Duxbury
9759266f2d THRIFT-1302. cpp: raise an exception if send() times out in
TSocket::write()

Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1162923 13f79535-47bb-0310-9956-ffa450edef68
2011-08-29 18:05:26 +00:00
Bryan Duxbury
c7fed1f90c THRIFT-1301. cpp: consolidate common code in TNonblockingServer constructors
Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1162920 13f79535-47bb-0310-9956-ffa450edef68
2011-08-29 18:01:24 +00:00
Bryan Duxbury
b8c8e0b9bc THRIFT-1298. java: Standard scheme doesn't read or write metadata along with field values
This patch makes StandardScheme write metadata, and adds tests against a static known-good Binary-serialized struct for a reference.

Patch: Armaan Sarkar

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1162917 13f79535-47bb-0310-9956-ffa450edef68
2011-08-29 17:50:31 +00:00
Jake Farrell
13b21184f4 Thrift-1257: thrift's dependency scope on javax.servlet:servlet-api should be 'provided'
Client: java
Patch: jfarrell

Updated artifact servlet-api scope to provided.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1162568 13f79535-47bb-0310-9956-ffa450edef68
2011-08-28 18:24:45 +00:00
Jake Farrell
b5c618a66d Thrift-1240: TBinarySerializer.php invalid serialization due to TBufferTransport not flushing last chunk of data into TMemoryBuffer
Client: php
Patch: Marimuthu Ponnambalam

Simple Serialization errors out, due to the TBufferTransport not flushing the data into TMemoryBuffer after $object->write($protocol) in TBinarySerializer.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1161968 13f79535-47bb-0310-9956-ffa450edef68
2011-08-26 02:42:14 +00:00
Jake Farrell
6df4d34447 Thrift-1295: Duplicate include in TSocket.cpp
Client: cpp
Patch: Diwaker Gupta

TSocket.cpp includes netdb.in which is already included by TSocket.h.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1161775 13f79535-47bb-0310-9956-ffa450edef68
2011-08-25 22:02:38 +00:00
Bryan Duxbury
e04159c52b THRIFT-1294. cpp: fix log message typos in TSimpleServer
Patch: Adam Simpkins"


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1161663 13f79535-47bb-0310-9956-ffa450edef68
2011-08-25 17:43:56 +00:00
Bryan Duxbury
1e9875878a THRIFT-1293. cpp: improve handling of exceptions thrown by
process()

Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1161660 13f79535-47bb-0310-9956-ffa450edef68
2011-08-25 17:33:03 +00:00
Bryan Duxbury
756d73e464 THRIFT-1292. cpp: silence log spew from TThreadedServer
Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1161659 13f79535-47bb-0310-9956-ffa450edef68
2011-08-25 17:30:21 +00:00