Commit Graph

1667 Commits

Author SHA1 Message Date
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