Commit Graph

502 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
Roger Meier
3075ffc563 fix memoryleak detected by cppcheck
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1154039 13f79535-47bb-0310-9956-ffa450edef68
2011-08-04 22:36:07 +00:00
Roger Meier
52e751d137 THRIFT-916 remove i64 => fix build and compile without warning on CI
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1154022 13f79535-47bb-0310-9956-ffa450edef68
2011-08-04 21:23:27 +00:00
Roger Meier
184281c1a1 THRIFT-916 printf %lld for 32bit platform only by using __ia64__
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1153638 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 20:12:32 +00:00
Roger Meier
9e0f0743f3 THRIFT-1256 Unit Test Logging Output for CI
pass BOOST environment variables to the test suite arguments and create a tests.xml with the results

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1153594 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 17:36:55 +00:00
Roger Meier
345ecc739a THRIFT-690 add new ApplicationExceptions (INTERNAL_ERROR, PROTOCOL_ERROR) to the following languages: as3, c_glib, cocoa, cpp, erl, hs, js, nodejs, ocaml, perl, py, rb
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1153412 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 09:49:27 +00:00
Roger Meier
c190558787 THRIFT-1184 event_base memory freeing by class TNonblockingServer
adds option to use existing event base
Patch: Pavlin Radoslavov

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1153307 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 23:37:36 +00:00
Roger Meier
d2f8da4bb8 THRIFT-1244 using 'using' to disambiguate between functions in different bases does not conform to C++ standard and will not compile on certain compilers
Patch: Anatoly Fayngelerin

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1151945 13f79535-47bb-0310-9956-ffa450edef68
2011-07-28 18:04:30 +00:00
Roger Meier
285cfaa199 THRIFT-1243 TAsyncChannel callbacks (use void instead of bool)
Patch: Alexandre Parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1151940 13f79535-47bb-0310-9956-ffa450edef68
2011-07-28 17:51:36 +00:00
Roger Meier
a8cef6e55b THRIFT-916 gcc warnings in c++ header files
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1147700 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 18:55:59 +00:00
Roger Meier
7e056e7572 THRIFT-1222 Unhandled exception for TEvhttpServer request
Patch: Alexandre Parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1147542 13f79535-47bb-0310-9956-ffa450edef68
2011-07-17 07:28:28 +00:00
Jake Farrell
fd39193aa0 THRIFT-1231: Remove bogus include
Client: c++
Patch: Diwaker Gupta

Removing unused import TTransportUtils.h from TAsyncChannel.h.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1144395 13f79535-47bb-0310-9956-ffa450edef68
2011-07-08 17:32:44 +00:00
Roger Meier
30aae0ca87 THRIFT-1217 Use evutil_socketpair instead of pipe
Patch: alexandre parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1144286 13f79535-47bb-0310-9956-ffa450edef68
2011-07-08 12:23:31 +00:00
Bryan Duxbury
d580dc6b8a trash an inaccurate comment (via Chad Walters)
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1141710 13f79535-47bb-0310-9956-ffa450edef68
2011-06-30 20:47:09 +00:00
Bryan Duxbury
82dc2e2e96 THRIFT-1221. cpp: Remove SimpleCallback.h
This file was unused.

Patch: Diwaker Gupta

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1140746 13f79535-47bb-0310-9956-ffa450edef68
2011-06-28 17:43:30 +00:00
Roger Meier
1ebeffb0d8 THRIFT-1197 TFileTransportTest.cpp fails on slower machines
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1132712 13f79535-47bb-0310-9956-ffa450edef68
2011-06-06 18:00:03 +00:00
Roger Meier
18f1050e71 THRIFT-1196 Unix Domain Socket Support is broken
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1131352 13f79535-47bb-0310-9956-ffa450edef68
2011-06-04 08:57:43 +00:00
Jake Farrell
c1fe30b94f THRIFT-1192: Typo: TProtocol.h tests for HAVE_SYS_PARAM_H_
Client: cpp
Patch: Eric Rannaud

Fixes the typo in the check for HAVE_SYS_PARAM_H



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1130293 13f79535-47bb-0310-9956-ffa450edef68
2011-06-01 20:34:26 +00:00
Roger Meier
bb09f4442a THRIFT-1166 C++ tests in test/cpp broken
Patch: David Nadlinger, Roger Meier


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1129908 13f79535-47bb-0310-9956-ffa450edef68
2011-05-31 20:35:37 +00:00
Roger Meier
b94b5514b5 THRIFT-1185 Bogus forward declaration of class TAsyncTransport inside file lib/cpp/src/async/TAsyncChannel.h
Patch: Pavlin Radoslavov


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1129346 13f79535-47bb-0310-9956-ffa450edef68
2011-05-30 20:14:00 +00:00
Roger Meier
330b5ae1bf THRIFT-1139 C++ compilation of classes generated for an enum
Patch: Xavier Lepaul


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1094710 13f79535-47bb-0310-9956-ffa450edef68
2011-04-18 19:46:02 +00:00
Roger Meier
0ae0542152 THRIFT-1136 C++ SSL implementation cleanup
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1091553 13f79535-47bb-0310-9956-ffa450edef68
2011-04-12 19:23:10 +00:00
Roger Meier
3460393675 THRIFT-1116 Compilation error in file TSSLSocket.cpp on FreeBSD-8.0
Patch: Pavlin Radoslavov


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1085347 13f79535-47bb-0310-9956-ffa450edef68
2011-03-25 12:22:17 +00:00
Bryan Duxbury
d081dd668b THRIFT-1106. cpp: C++ code TAsyncProtocolProcessor.h & TAsyncBufferProcessor.h dont have virtual functions but no virtual destructor. Causes warnings on -Wall
Patch: Fasih

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1084656 13f79535-47bb-0310-9956-ffa450edef68
2011-03-23 18:05:27 +00:00
Roger Meier
46d32b4f08 THRIFT-1030 C++ THttpTransport doesn't support chucked transfer encoding
Patch: Rowan Kerr


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1075399 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 16:04:51 +00:00