Commit Graph

2643 Commits

Author SHA1 Message Date
Roger Meier
6869112f5e THRIFT-1296 SSL detection is broken
mingw toolchain used to build "Thrift Compiler for Windows"
does not support libcrypto, so we just check if we building the cpp library

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1167013 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 06:19:35 +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
Jake Farrell
c4beda9802 Thrift-1279: type set is handled incorrectly when writing object
Client: php
Patch: Darius Staisiunas

Fixes issue to iIterate through scalar types correctly.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1165703 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 15:19:18 +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
Jake Farrell
6993569d04 Thrift-1299: If SSL is available, 'thrift' binary links against it
Patch: jfarrell

Removes the dependencies added from configure.ac in the thrift compiler makefile.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1162927 13f79535-47bb-0310-9956-ffa450edef68
2011-08-29 18:22:11 +00:00
Jake Farrell
012dfdab4c Thrift-1296: SSL detection is broken
Patch: jfarrell

Updated configure to check for crypto and then ssl and error along the way if unavailable.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1162925 13f79535-47bb-0310-9956-ffa450edef68
2011-08-29 18:18:55 +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
47f5ab3f06 Thrift-1303: Twisted tutorial client does not include correct generated path
Client: tutorial

Updated path in python client to include correct generated code.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1162866 13f79535-47bb-0310-9956-ffa450edef68
2011-08-29 15:27:41 +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
Bryan Duxbury
37874ca848 THRIFT-1290. cpp: TNonblockingServer: clean up state in the
destructor

Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1161655 13f79535-47bb-0310-9956-ffa450edef68
2011-08-25 17:28:23 +00:00
Bryan Duxbury
76c43688ba THRIFT-1289. cpp: implement TNonblockingServer::stop()
Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1161283 13f79535-47bb-0310-9956-ffa450edef68
2011-08-24 21:26:48 +00:00
Bryan Duxbury
cff83579d7 THRIFT-1288. cpp: Allow typedefed exceptions in throws clauses
Patch: David Reiss

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1161271 13f79535-47bb-0310-9956-ffa450edef68
2011-08-24 20:53:03 +00:00
Bryan Duxbury
b68f16634a THRIFT-1287. cpp: start refactoring some of the C++ processor
Move the generation of Processors into a separate subclass.

Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1161223 13f79535-47bb-0310-9956-ffa450edef68
2011-08-24 18:35:55 +00:00
Bryan Duxbury
3746b29b8a THRIFT-1280. cpp: Improve Monitor exception-free interfaces
Patch: Mark Rabkin

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1160944 13f79535-47bb-0310-9956-ffa450edef68
2011-08-24 00:35:52 +00:00
Bryan Duxbury
0fa8ff7fd4 THRIFT-1281. compiler: add @generated to the docblock
Patch: Bill Fumerola

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1160943 13f79535-47bb-0310-9956-ffa450edef68
2011-08-24 00:28:18 +00:00
Bryan Duxbury
bce6fadf3b THRIFT-1282. java: Upgrade httpclient to 4.1.2 (from 4.0.1)
Patch: Aravind Srini

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1160941 13f79535-47bb-0310-9956-ffa450edef68
2011-08-24 00:22:30 +00:00
Bryan Duxbury
8eebc2c3e0 THRIFT-1284. cpp: fix processor inheritance
Don't make processors that have a proper parent class also inherit from TProcessor.

Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1160933 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 23:26:58 +00:00
Bryan Duxbury
1b90e3dc25 THRIFT-1283. cpp: wrap t_cpp_generator::generate_process_function() to 80
Adjust the line width to 80 for generated CPP classes.

Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1160931 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 23:21:59 +00:00
Roger Meier
b7d7227eb0 THRIFT-1278 javadoc warnings - compilation
Patch: Aravind Srini

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1160883 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 20:27:19 +00:00
Roger Meier
a94d2e5921 THRIFT-1269 thrift: handle undeclared exceptions in the async
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1160453 13f79535-47bb-0310-9956-ffa450edef68
2011-08-22 21:38:50 +00:00
Roger Meier
0c3c8959a3 THRIFT-1274 Making * a known symbol
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1160451 13f79535-47bb-0310-9956-ffa450edef68
2011-08-22 21:38:16 +00:00
Bryan Duxbury
da9c6e1aba THRIFT-1254. javame: Code can't be compiled against a regular JRE: Object.clone() override has a different return type
This patch mirrors a previous commit to the main Java library by removing the clone() implementation altogether.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1160333 13f79535-47bb-0310-9956-ffa450edef68
2011-08-22 16:59:20 +00:00
Bryan Duxbury
160cbe6718 THRIFT-1271. cpp: missing namespace in generated local reflection
Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1159734 13f79535-47bb-0310-9956-ffa450edef68
2011-08-19 18:32:51 +00:00
Bryan Duxbury
235f8b5899 THRIFT-1274. compiler: fail compilation if an unexpected token is encountered
This patch makes the lexer throw an exception when an unexpected token is encountered, as opposed to the standard behavior of just printing it out and doing nothing.

Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1159733 13f79535-47bb-0310-9956-ffa450edef68
2011-08-19 18:27:47 +00:00
Bryan Duxbury
0b7eeb5975 THRIFT-1275. cpp: always prefix namespaces with ' ::'
Ensures no accidental namespace clashes.

Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1159729 13f79535-47bb-0310-9956-ffa450edef68
2011-08-19 18:23:39 +00:00
Roger Meier
887ff756cb THRIFT-1276 Add thrift compiler option to suppress warnings about
Patch: Dave Watson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1159593 13f79535-47bb-0310-9956-ffa450edef68
2011-08-19 11:25:39 +00:00
Roger Meier
b6af6dbf05 (void) unused parameters to reduce compiler warnings to zero!
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1159405 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 20:31:16 +00:00