Commit Graph

885 Commits

Author SHA1 Message Date
Jens Geyer
1a3632351e THRIFT-2541 reclaim TFramedTransport's read and write buffers for thrift cpp
Client: C++
Patch: Huabin <4130944@qq.com>
2014-07-14 19:51:36 +02:00
jfarrell
8fd8c6366d THRIFT-2602:Fix missing dist files
Client: build process
Patch: jfarrell

Add all missing files to the dist package.
2014-07-10 09:14:51 -04:00
Konrad Grochowski
b7af66e189 THRIFT-2614 - C++ Library - TNonblockingServer.cpp MSVC warning removed
Signed-off-by: Roger Meier <roger@apache.org>
2014-07-08 23:03:08 +02:00
Roger Meier
2e9be756ce THRIFT-2610 MSVC warning in TSocket.cpp
Patch: Konrad Grochowski
2014-07-08 07:46:11 +02:00
Roger Meier
3e50a9a1d0 THRIFT-2605 TSocket warning on gcc 4.8.3
Patch: Konrad Grochowski
2014-07-08 07:29:12 +02:00
Roger Meier
f83c0e13b7 THRIFT-2416 Cannot use TCompactProtocol with MSVC
Patch: Konrad Grochowski
2014-07-07 22:06:45 +02:00
Roger Meier
5f61d29a26 THRIFT-2609 TFileTransport.h unused field warning (clang 3.4)
Patch: Konrad Grochowski
2014-07-07 22:02:57 +02:00
Roger Meier
2768eb29ce THRIFT-2608 TNonblockingServer.cpp warnings on clang 3.4
Patch: Konrad Grochowski
2014-07-07 21:56:44 +02:00
Roger Meier
9a242c02f6 THRIFT-2607 ThreadManager.cpp warning on clang++ 3.4
Patch: Konrad Grochowski
2014-07-07 21:55:27 +02:00
Roger Meier
ca545bd429 THRIFT-2606 ThreadManager.h warning in clang++ 3.4
Patch: Konrad Grochowski
2014-07-07 21:53:04 +02:00
Roger Meier
464a3a4432 THRIFT-2092 TNonblocking server should release handler as soon as connection closes
Patch: Konrad Grochowski
2014-07-07 21:48:28 +02:00
Roger Meier
1a5127b76d THRIFT-1998 TCompactProtocol.tcc - one more warning on Visual 2010
Patch: Konrad Grochowski
2014-07-07 21:44:30 +02:00
Jens Geyer
81b3a42c93 THRIFT-2524 Visual Studio project is missing TThreadedServer files
Client: C++
Patch: Jens Geyer
2014-07-04 22:30:14 +02:00
Jens Geyer
41312c7e92 THRIFT-2590 C++ Visual Studio solution doesn't include Multiplexing support
Client: C++
Patch: Jens Geyer, based on a patch proposal from Thomas Lazar
2014-07-04 22:09:31 +02:00
Jens Geyer
9a4f40de19 THRIFT-2590 C++ Visual Studio solution doesn't include Multiplexing support
Client: C++
Patch: Pascal Bach
2014-07-04 22:02:21 +02:00
henrique
c9bdd50270 THRIFT-2579 C++ lib Windows CE support 2014-06-25 13:13:23 +02:00
henrique
58993d1205 THRIFT-2577 C++ TFileTransport missuse of closesocket on windows platform
Patch: suuyaoo

    This closes #142

---
2014-06-24 16:08:22 +02:00
henrique
ad67aa0acf THRIFT-2581 C++ TFDTransport destructor should not throw 2014-06-24 15:45:41 +02:00
Randy Abernethy
44c9b4411a THRIFT-2539:TSocket.cpp AI_ADDRCONFIG problems on Windows
Client: C++ Lib
Patch: Michal Gazda

AI_ADDRCONFIG keeps Windows from making local connections
when no NICs are present.
2014-06-16 21:15:23 -07:00
Roger Meier
63fcb7e756 THRIFT-2520 cpp:cob_style generates incorrect .tcc file
This closes #118

commit 22d266eefaf16f21ffd0ad193a6a54403de65197
Author: N.Sukegawa <nsukeg@gmail.com>
Date: 2014-05-07T19:36:43Z
2014-06-15 21:51:32 +02:00
Roger Meier
faf52db216 THRIFT-2569 Introduce file to specify third party library locations on Windows
This closes #136

----
commit f55437d55549ced475092518f432936c4e760639
Author: Pascal Bach <pascal.bach@siemens.com>
Date:   2014-04-09T09:19:18Z

    TPipeServer requires OverlappedSubmissionThread.cpp|h

    so include it in the corresponding VS files

commit 63a3309a83e6fb09b589a61fe56c5abe1157acb5
Author: Pascal Bach <pascal.bach@siemens.com>
Date:   2014-03-26T15:44:07Z

    Replace Env variables for 3rdparty

----

Patch: Pascal Bach
2014-06-09 22:41:06 +02:00
Roger Meier
73b58a2469 THRIFT-1771 "make check" fails on x64 for libboost_unit_test_framework.a
update ax_boost_base.m4 from http://www.gnu.org/software/autoconf-archive/
Patch: Roger Meier
2014-05-11 17:39:34 +02:00
Roger Meier
37042270ef THRIFT-2512 lib/${language}/README.md
Client: cpp

remove README_WINDOWS.md from WINDOWS_DIST
2014-05-04 22:58:15 +02:00
Roger Meier
2c60625b53 THRIFT-2512 lib/${language}/README.md
Client: cpp

remove README_SSL.md from EXTRA_DIST
2014-05-04 22:56:44 +02:00
Roger Meier
4fba9d2c3c THRIFT-2512 lib/${language}/README.md
Client: cpp

doc cosmetics
2014-05-04 22:34:44 +02:00
Roger Meier
6370cfdd7a THRIFT-2512 lib/${language}/README.md
Client: cpp

merge README_WINDOWS.md and README.SSL.md into README.md
2014-05-04 22:21:58 +02:00
Jens Geyer
885c679123 THRIFT-2471 Make cpp.ref annotation language agnostic
Client: compiler general
Patch: Dave Watson

This closes #113

commit 52b99af4ee1574253dcb77933d76a7ebb2d830df
 Author: Dave Watson <davejwatson@fb.com>
 Date: 2014-04-23T20:05:56Z

change cpp.ref to &

commit 3f9d31cc6140367529fd8f7b1b67056ec321786f
 Author: Dave Watson <davejwatson@fb.com>
 Date: 2014-04-23T21:50:29Z

Recursion depth limit

commit 61468e4534ce9e6a4f4f643bfd00542d13600d83
 Author: Dave Watson <davejwatson@fb.com>
 Date: 2014-04-25T19:59:18Z

shared_ptr for reference type
2014-05-02 21:31:55 +02:00
jfarrell
524b924f61 Thrift-2421:Tree/Recursive struct support in thrift
Client: compiler
Patch: Dave Watson

Patch to go along with pull request 84 to fix missing destructors.

Github Pull Request: This closes #98
----
commit f4daec9b0af386e8f6e9e66fb688aab8cd949fdc
Date:   2014-04-09T17:33:18Z

    Also generate destructor for _result, presult, args, pargs
2014-04-09 14:55:54 -04:00
jfarrell
e0e8316838 THRIFT-2421: Tree/Recursive struct support in thrift
Client: cpp
Patch:  Dave Watson

Github Pull Request: This closes #84
----
commit b6134cedf292845e5ed01052919894df6b561bf2
Date:   2014-03-20T18:12:04Z

    Recursive structs support in parser

    A common complaint is that you can't express trees or other recursive structures in thrift easily - unlike protobufs. This diff loosens up the parser to allow using structs before they are defined (and uses typedef as a forward declaration).
    This diff is actually enough to make recursive types work for some dyamic languages (I tried php, works out of the box!)

    Other languages will need forward declarations, or ways to box types, to make this work (i.e. C++ needs both forward decls and a way to express structs as pointers)
2014-04-08 22:45:01 -04:00
jfarrell
02c95c1c40 THRIFT-2258:Add TLS v1.1/1.2 support to TSSLSocket.cpp
Client: cpp
Patch:  Chris Stylianou

Enables TSSLSocketFactory to set the required protocol.
2014-03-31 23:58:32 -04:00
Jens Geyer
ea6076f175 THRIFT-2430 Crash during TThreadPoolServer shutdown
Patch: Lars Benner
2014-03-28 22:45:27 +02:00
Roger Meier
16fcad0b25 THRIFT-2407 use markdown (rename README => README.md)
Patch: Roger Meier
2014-03-19 06:47:47 +01:00
jfarrell
db536cf6bb Revert "THRIFT-2258 cpp: Add TLS v1.1/1.2 support to TSSLSocket.cpp"
This reverts commit 01386c95a8.
2014-02-21 13:50:10 -05:00
Roger Meier
01386c95a8 THRIFT-2258 cpp: Add TLS v1.1/1.2 support to TSSLSocket.cpp
Patch: Chris Stylianou
2014-02-19 23:07:25 +01:00
Roger Meier
9f4f5157a3 THRIFT-2367 Build failure: stdlib and boost both define uint64_t
Fix: remove "using namespace boost;"
Patch: Roger Meier
2014-02-19 16:28:35 +01:00
Roger Meier
22888ce3a8 THRIFT-2352 msvc failed to compile thrift tests
Patch: Sergei Nikulov & Roger Meier
2014-02-09 11:31:02 +01:00
Roger Meier
0f60bd4f54 THRIFT-2224 cpp: TSSLSocket.h and TSSLServerSocket.h should use the platfromsocket too
Patch: soyer
2014-02-03 00:29:23 +01:00
Roger Meier
301dfa94d6 THRIFT-2225 cpp: SSLContext destroy before cleanupOpenSSL
Patch: soyer
2014-02-02 23:56:19 +01:00
Roger Meier
aefd9c4899 cpp: TSSLServerSocket should use THRIFT_SOCKET 2014-01-25 19:59:27 +01:00
Roger Meier
09cc5e7728 THRIFT-2316 cpp: TFileTransportTest is to restrictive 2014-01-15 10:13:18 +01:00
Jake Farrell
5d02b80e9c Thrift-2029:Port C++ tests to Windows
Client: cpp
Patch: Ben Craig

Updates cpp tests to work with windows and c++11
2014-01-07 21:42:01 -05:00
Roger Meier
88103ca7f4 THRIFT-2040 "uninitialized variable" warnings on MSVC/windows
Patch: Konrad Grochowski
2013-12-06 20:47:39 +01:00
Ben Craig
f4e6e62ea0 THRIFT-2214: System header sys/param.h is included inside the Thrift namespace
Client: cpp
Patch: Vladimir Strisovsky
2013-11-05 19:49:12 -06:00
Ben Craig
0d671c091c THRIFT-2034: Give developers' C++ code direct access to socket FDs on
server side
Client: cpp
Patch: Ben Craig
2013-10-14 20:32:29 -05:00
Ben Craig
7f10de7ee8 THRIFT-2026: Fix TCompactProtocol 64 bit builds
Client: cpp
Patch: Ben Craig
2013-10-14 20:27:18 -05:00
Ben Craig
49a7663c79 THRIFT-2226: TServerSocket - keepAlive wrong initialization order
Client: cpp
Patch: Konrad Grochowski
2013-10-11 08:07:06 -05:00
Ben Craig
71b5a10b61 THRIFT-1892: Socket timeouts are declared in milli-seconds, but are
actually set in micro-seconds
Client: cpp
Patch: Ben Craig
2013-10-10 08:55:16 -05:00
Ben Craig
d856ac8c30 THRIFT-2019: Writing on a disconnected socket on Mac causes SIG PIPE
Client: cpp
Patch: Ben Craig
2013-10-09 15:27:38 -05:00
Ben Craig
fd64c15c4f THRIFT-2021: Improve large binary protocol string performance
Client: cpp
Patch: Ben Craig
2013-10-09 15:26:05 -05:00
Ben Craig
96ea9daf80 THRIFT-1751: definition of increase_max_fds doesn't compile when
HAVE_SYS_RESOURCE_H is not defined
Client: cpp
Patch: Ben Craig
2013-10-09 15:23:49 -05:00
Ben Craig
6493523e96 THRIFT-2027: Minor 64-bit and NOMINMAX issues in C++ library
Client: cpp
Patch: Ben Craig
2013-10-09 15:21:38 -05:00
Ben Craig
19244ed87f THRIFT-2031: Make SO_KEEPALIVE configurable for C++ lib
Client: cpp
Patch: Ben Craig
2013-10-09 15:18:55 -05:00
Ben Craig
aea8bfe0f0 THRIFT-2139: MSVC 2012 Error - Cannot compile due to BoostThreadFactory
Client: cpp
Patch: Alex Loukissas
2013-09-27 10:44:54 -05:00
Ben Craig
fd7ddef729 THRIFT-1944: Binding to zero port
Client: cpp
Patch: Akshat Aranya
2013-09-16 15:41:39 -05:00
Ben Craig
b2501a71a7 THRIFT-2069: TPipeServer creates overlapped pipes, then uses synchronous I/O on them with TPipe
Client: cpp
Patch: Ben Craig
2013-09-13 12:29:43 -05:00
Roger Meier
657b933f28 THRIFT-1481 cpp: Unix domain sockets in C++ do not support the abstract namespace
Patch: Ben Craig
2013-09-02 20:43:57 +02:00
Roger Meier
acf15dc304 THRIFT-2160 Warning in thrift.h when compiling with -Wunused and NDEBUG
Patch: Frank Meerkoetter
2013-09-02 20:16:49 +02:00
Ben Craig
d5f617f6a3 THRIFT-2020: Thrift library has some empty files that haven't really been
deleted
Client: cpp
Patch: Ben Craig
2013-08-30 08:18:06 -05:00
Ben Craig
cd54ec6249 THRIFT-1999: warning on gcc 4.7 while compiling BoostMutex.cpp
Client: cpp
Patch: Konrad Grochowski
2013-08-29 10:45:21 -05:00
Ben Craig
91058ef4ba THRIFT-2037: More general macro THRIFT_UNUSED_VARIABLE
Client: cpp
Patch: Konrad Grochowski
2013-08-29 10:38:25 -05:00
Ben Craig
9df014012e THRIFT-2023: gettimeofday implementation in Windows errors when no time
zone is passed in
Client: cpp
Patch: Ben Craig
2013-08-28 15:08:23 -05:00
jfarrell
b591203746 Thrift-2126: missing cpp lib concurrency STD* files from DIST
Client: build
Patch: jfarrell

Updates cpp makefile to include missing STD* files.
2013-08-15 19:21:43 -04:00
Roger Meier
d051ca0b23 THRIFT-2042 visual 2010 warnings - unused variable Patch: Konrad Grochowski 2013-08-15 01:37:55 +02:00
Roger Meier
56a648d0ff THRIFT-2093 added the ability to set compression level in C++ zlib transport
Patch: Randy Abernethy
2013-07-19 23:28:22 +02:00
Roger Meier
e802aa40af THRIFT-2094 TNonblocking server no longer works on windows
Patch: Konrad Grochowski
2013-07-19 21:10:54 +02:00
Roger Meier
0be9ffacb7 THRIFT-2038 THRIFT_INVALID_SOCKET added to PlatformSocket.h
Patch: Konrad Grochowski
2013-07-19 21:10:01 +02:00
Jens Geyer
4f7ad2d98b THRIFT-2091 Unnecessary 'friend' declaration causes warning in TWinsockSingleton
Patch: Konrad Grochowski
2013-07-16 20:58:38 +02:00
Roger Meier
ba406d3a02 THRIFT-2089 Compiler ignores duplicate typenames
Patch: Randy Abernethy
2013-07-15 22:41:34 +02:00
Roger Meier
6f2a503710 THRIFT-1442 TNonblockingServer: Refactor to allow multiple IO Threads
Patch: Pavlin Radoslavov
2013-07-08 23:35:25 +02:00
Roger Meier
ffbfd03cc2 THRIFT-2074 cppcheck error removed from ThreadManager.cpp
Patch: Konrad Grochowski
2013-06-29 14:51:30 +02:00
Roger Meier
7158d3306c THRIFT-2044 Util.h uses defines from PlatformSocket but does not include it
Patch: Konrad Grochowski
2013-06-29 12:48:05 +02:00
Roger Meier
7295745b17 THRIFT-2071 clang 3.2 reports warning when comparing shared_ptr<X> == NULL
Patch: Konrad Grochowski
2013-06-29 00:28:50 +02:00
Roger Meier
42cb873ea9 THRIFT-2072 TNonblocking server compilation FAILS with C++11 support enabled
Patch: Konrad Grochowski
2013-06-28 22:49:14 +02:00
Roger Meier
ff77d075ec THRIFT-2039 config.h --> thrift-config.h
Patch: Ben Craig
2013-06-28 22:26:43 +02:00
Jens Geyer
8095447478 THRIFT-2066 'make install' does not install two headers required for C++ bindings
Patch: Lalith Suresh
2013-06-25 21:36:29 +02:00
Konrad Grochowski
a1b5728ee6 THRIFT-2039 config.h --> thrift-config.h
Signed-off-by: Roger Meier <roger@apache.org>
2013-06-22 22:10:23 +02:00
Konrad Grochowski
9be4e687c4 THRIFT-2039 config.h --> thrift-config.h
Signed-off-by: Roger Meier <roger@apache.org>
2013-06-22 22:03:31 +02:00
Ben Craig
cc25c52de4 THRIFT-2024 TServer.cpp warns on 64-bit platforms about truncating an rlim_t into an int
Signed-off-by: Roger Meier <roger@apache.org>
2013-06-20 23:44:46 +02:00
Roger Meier
bb98ed44d7 THRIFT-1458 cpp: use the C++ standard (c++0x or later c++11) to improve code quality and cross platform capability
Signed-off-by: Nate Rosenblum <nater@maginatics.com>
2013-06-20 01:06:22 +02:00
Roger Meier
4285ba29f2 THRIFT-2014 Change C++ lib includes to use <namespace/> style throughout
Patch: Randy Abernethy
2013-06-10 21:17:23 +02:00
Carl Yeksigian
7cb7fc8a73 THRIFT-1753: Multiple C++ Windows, OSX, and iOS portability issues
Client: cpp
Patch: Ben Craig
2013-06-07 07:33:01 -04:00
Henrique Mendonça
b6dfc9036b THRIFT-1986 fix TCompactProtocol constants 2013-06-05 14:46:06 +02:00
Jake Farrell
37e655c71b Thrift-1997:Add accept backlog configuration method to TServerSocket
Client: cpp
Patch: Randy Abernethy

TServerSocket hard codes the accept backlog to 1024. This patch adds a setAcceptBacklog() method which can be used to change the backlog size (must be called prior to listen()).
2013-06-04 23:04:16 -04:00
Roger Meier
d65216df19 THRIFT-1982 vsnprintf on Windows have different semantics
Patch: Konrad Grochowski
2013-06-04 22:25:06 +02:00
Roger Meier
f2b094f1f1 THRIFT-1983 %z printf format is not available in Visual
Patch: Konrad Grochowski
2013-06-04 22:09:37 +02:00
Roger Meier
cde23dfd2d THRIFT-1986 TCompactProtocol constants truncated on Windows (C4309)
Patch: Konrad Grochowski
2013-06-04 21:28:06 +02:00
Roger Meier
64a799d28e THRIFT-1987 TCompactProtocol.tcc/h warnings on Visual
Patch: Konrad Grochowski
2013-06-04 20:59:01 +02:00
Carl Yeksigian
3e93711464 THRIFT-1992: Fix TCompactProtocol compiler warnings
Client: cpp
Patch: Konrad Grochowski
2013-06-03 14:23:55 -04:00
Roger Meier
16ee0d17a6 THRIFT-1968 Thrift's include path is wrong in pkg-config files
THRIFT-1552 fix include path => thrift/Thrift.h
2013-05-30 09:57:00 +02:00
Roger Meier
5ed5e8b3f0 THRIFT-1917 Task expiration in TThreadPoolServer
Patch: Ivan Fastov
2013-05-06 00:21:04 +02:00
Roger Meier
7f1df99247 THRIFT-1932 TFileTransport::readEvent() casts values read from input stream into a pointer and then dereferences it.
Patch: Hugo Mildenberger
2013-05-05 23:29:34 +02:00
Roger Meier
967600ef4f THRIFT-1850 make check hangs on TSocket tests in TransportTest.cpp
Patch: Randy Abernethy
2013-05-03 22:39:53 +02:00
Jake Farrell
c613cd2d9b Thrift-1846:Restore socket.h header to support builds with Android NDK
Client: cpp
Patch: Nicolas Trésegnie

moves the <sys/socket.h> include from TSocket.h to the .cpp to minimize the risk of hidden dependencies.
2013-04-01 21:39:03 -04:00
Roger Meier
3a931b50d9 THRIFT-1902 C++: Support for Multiplexing Services on any Transport, Protocol and Server
Patch: Patrik Lindblom
2013-03-26 22:14:03 +01:00
Roger Meier
a7ab94d414 THRIFT-1845 cpp: Fix compiler warning caused by implicit string conversion with Xcode 4.6
Patch: Nate Rosenblum
2013-03-22 22:34:16 +01:00
Roger Meier
0c04fccf3a THRIFT-1881 TNonblockingServer does not release open connections or threads on shutdown
Patch: Randy Abernethy
2013-03-22 19:52:08 +01:00
Jens Geyer
552440e6e5 THRIFT-1890 C++: Make named pipes server work asynchronously
Patch: Jens Geyer & Ben Craig
2013-03-21 19:55:27 +02:00
Roger Meier
d34bea0c04 THRIFT-1837 Deploy and use cxxfunctional.h in cpp code generated in cob_style mode
Patch: Nate Rosenblum
2013-01-22 21:36:42 +01:00
Roger Meier
c095919087 THRIFT-1829 cpp unit tests fail to build using multiple make jobs
Patch: David Rennalls and Roger Meier
2013-01-15 23:20:19 +01:00
Roger Meier
b2f29d8402 THRIFT-1657 Chrome browser sending OPTIONS method before POST in xmlHttpRequest
Patch: Shantanu Choudhary
2012-12-23 20:23:39 +01:00
Roger Meier
0193149842 THRIFT-1801 Sync up TApplicationException codes across languages and thrift implementations
Patch: Andrew Cox
2012-12-22 21:31:03 +01:00
Roger Meier
8252577ec9 THRIFT-1740 Make C++ library build on OS X and iOS
Patch: Ben Craig
minor modification by Roger Meier


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1410127 13f79535-47bb-0310-9956-ffa450edef68
2012-11-16 00:38:27 +00:00
Roger Meier
0069a44640 THRIFT-1748 Guard and RWGuard macros defined in global namespace
Patch: Bud Bundy


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1406793 13f79535-47bb-0310-9956-ffa450edef68
2012-11-07 20:26:03 +00:00
Henrique Mendonca
36ae65cf2e THRIFT-1744: Compilation failure under Android NDK toolchain
Client: C++ and Android NDK
Patch: Vlad Troyanker

include config.h



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1403549 13f79535-47bb-0310-9956-ffa450edef68
2012-10-29 21:55:46 +00:00
Roger Meier
9bb65ae29d THRIFT-1730 error: numeric_limits is not a member of std
Patch: Martin Vogt


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1399451 13f79535-47bb-0310-9956-ffa450edef68
2012-10-17 22:02:01 +00:00
Jake Farrell
6fcecd45a7 Updating Thrift trunk version to 1.0.0-dev
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1397293 13f79535-47bb-0310-9956-ffa450edef68
2012-10-11 20:34:25 +00:00
Jake Farrell
7c7a5e05ba Thrift-1721:Dist broken due to 0.8.0 to 0.9.0 changes
Client: build
Patch: Jake Farrell

Fix dist build to create the 0.9.0 release



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1396880 13f79535-47bb-0310-9956-ffa450edef68
2012-10-11 00:29:11 +00:00
Jake Farrell
a32ac7a010 Thrift-1718:Incorrect check in TFileTransportTest
Client: cpp
Patch: Diwaker Gupta

Fixes cpp tests



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1396258 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 19:59:35 +00:00
Roger Meier
271e47a74d THRIFT-1716 max allowed connections should be PIPE_UNLIMITED_INSTANCES
Patch: Jens Geyer


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1396190 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 18:46:55 +00:00
Roger Meier
dfb8298b28 THRIFT-1558 Named Pipe and Anonymous Pipe transport for Windows
minor fix


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1394935 13f79535-47bb-0310-9956-ffa450edef68
2012-10-06 06:10:57 +00:00
Roger Meier
1f4be7e857 THRIFT-1690
Non-linux OSes use int's in bsd socket calls as well.


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1394931 13f79535-47bb-0310-9956-ffa450edef68
2012-10-06 06:00:47 +00:00
Roger Meier
b69d24dbf7 THRIFT-1690 Sockets and Pipe Handles truncated on Win64
Patch: Ben Craig


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1394182 13f79535-47bb-0310-9956-ffa450edef68
2012-10-04 18:02:15 +00:00
Henrique Mendonca
962b35309d THRIFT-1689: don't exit(-1) in TNonblockingServer
Client: c++
Patch: Brian Fallik

use standard exit(1) instead



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1388019 13f79535-47bb-0310-9956-ffa450edef68
2012-09-20 13:19:55 +00:00
Jake Farrell
afd3ab2714 Thrift-1656: Setting proper headers in THttpServer.cpp so that "Cross-Origin Resource Sharing" on js client can work.
Client: cpp
Patch: Shantanu Choudhary

Set headers from server side, in the response, so that Javascript can handle Cross-site HTTP requests.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1375883 13f79535-47bb-0310-9956-ffa450edef68
2012-08-22 02:57:07 +00:00
Roger Meier
ae44abc6f9 THRIFT-1064 TClientInfoServerHandler::processContext() is not called for TNonblockingServer server event handler
Patch: Pavlin Radoslavov


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1362773 13f79535-47bb-0310-9956-ffa450edef68
2012-07-18 05:42:51 +00:00
Roger Meier
bd057f6a5e THRIFT-1633 Add windows build configurations to support static linking
Patch: Adam Duffy


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1353315 13f79535-47bb-0310-9956-ffa450edef68
2012-06-24 19:18:00 +00:00
Jake Farrell
f42ae012aa Thrift-1567:Thrift/cpp: Allow alternate classes to be used for strings
Client: cpp
Patch: dreiss

The goal of this diff is to allow Thrift strings to be used without
depending on std::string, since it looks like we're starting to move
away from std::string instead of moving to a better implementation.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1352765 13f79535-47bb-0310-9956-ffa450edef68
2012-06-22 03:22:53 +00:00
Roger Meier
f9f841d769 THRIFT-1626 concurrency::Mutex timedlock fix and lesser improvements
Patch: Andrew Majorov

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1351845 13f79535-47bb-0310-9956-ffa450edef68
2012-06-19 20:42:33 +00:00
Roger Meier
89cc4303aa THRIFT-1631 Fix C++ server constructor typos
Patch: Andrew Cox

THRIFT-1573 Error on TNonblockingServer constructor
Patch: Denis

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1351472 13f79535-47bb-0310-9956-ffa450edef68
2012-06-18 20:02:36 +00:00
Roger Meier
87b704fd91 Thrift-1558 _xplatform_pipe_6-5-2012.patch
fix compile error

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1347604 13f79535-47bb-0310-9956-ffa450edef68
2012-06-07 13:24:22 +00:00
Roger Meier
7d0a040153 Thrift-1558 _xplatform_pipe_6-5-2012.patch
Patch: Peace C

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1346555 13f79535-47bb-0310-9956-ffa450edef68
2012-06-05 19:57:10 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Roger Meier
9db5e50b42 THRIFT-1070 C++ compiler and runtime have 32/64bit problems
Patch: Rich Salz


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1075121 13f79535-47bb-0310-9956-ffa450edef68
2011-02-27 19:24:45 +00:00
Roger Meier
598bf48f77 THRIFT-1071 invalid cast breaks build
Patch: Rowan Kerr


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1073526 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 21:56:33 +00:00
Bryan Duxbury
cd9aea1136 THRIFT-151. cpp: TSSLServerSocket and TSSLSocket implementation
This patch adds an implementation of the above ssl sockets.

Patch: Ping Li, Kevin Worth, Rowan Kerr

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1073441 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 18:12:06 +00:00
Christian Lavoie
2bbc328212 Patch from Chris Morgan, fixing gcc warnings.
THRIFT-1057: casts in TBinaryProtocol.tcc causing "dereferencing type-punned pointer will break strict-aliasing rules" warnings from gcc



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1068672 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 23:05:47 +00:00
Roger Meier
c0b5d9065c THRIFT-998 Silence g++ -Wswitch-enum warning in header
Patch: Rich Salz


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1040758 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 20:23:44 +00:00
Christian Lavoie
cbf87cb89c THRIFT-916: Commit THRIFT-916_fix_no-overflow.patch -- remove overflow coming from a few constants.
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1039885 13f79535-47bb-0310-9956-ffa450edef68
2010-11-28 14:34:26 +00:00
Christian Lavoie
af65f1b478 THRIFT-916: Commit a partial fix for flex-generated code infested with warnings on Mac OS X
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1038844 13f79535-47bb-0310-9956-ffa450edef68
2010-11-24 21:58:05 +00:00
Roger Meier
5f9614cf9a THRIFT-916 long long becomes int64_t
Patch: Christian Lavoie



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1037500 13f79535-47bb-0310-9956-ffa450edef68
2010-11-21 16:59:05 +00:00
Roger Meier
d3bfe70030 THRIFT-916 Wall_Wextra_pedantic_Wno-long-long_Wno-variadic-macros_Wno-overflow_NOWARNINGS_DebianLenny.patch applied
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1037127 13f79535-47bb-0310-9956-ffa450edef68
2010-11-20 06:48:47 +00:00
Roger Meier
3b771a10f1 THRIFT-916 compile with -Wall -Wextra without warning on Debian Lenny
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1036250 13f79535-47bb-0310-9956-ffa450edef68
2010-11-17 22:11:26 +00:00
Christian Lavoie
01c5cebfdd THRIFT-916: Fix warnings in C++ when compiling with -Wall.
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1031222 13f79535-47bb-0310-9956-ffa450edef68
2010-11-04 20:35:15 +00:00
Christian Lavoie
4f42ef7aa5 THRIFT-953: Fix compilation of TransportTest.cpp on Mac (actual tests still fail) and fix boost m4 macros for Mac.
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1031148 13f79535-47bb-0310-9956-ffa450edef68
2010-11-04 18:51:42 +00:00
Bryan Duxbury
4a2bc1b161 THRIFT-977. cpp: Hex Conversion Bug in C++ TJSONProtocol
This patch fixes a silly bug in hex-to-int conversion in TSJONProtocol.

Patch: Aravind Narayanan

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1030576 13f79535-47bb-0310-9956-ffa450edef68
2010-11-03 17:57:38 +00:00
Roger Meier
178f8f2c52 THRIFT-916 partial commit of v3-fix-all-warnings.patch and member initialization in Thrift.h
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1027092 13f79535-47bb-0310-9956-ffa450edef68
2010-10-25 12:36:04 +00:00
David Reiss
63228e53c2 cpp: Support oneway calls in TDebugProtocol.cpp
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1023913 13f79535-47bb-0310-9956-ffa450edef68
2010-10-18 17:25:40 +00:00
David Reiss
f770befe17 cpp: Add a little extra whitespace to TDebugProtocol.cpp
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1023912 13f79535-47bb-0310-9956-ffa450edef68
2010-10-18 17:25:13 +00:00
Roger Meier
d11ca5a95e THRIFT-916 gcc warnings(partial) use snprintf instead of sprintf
Patch: Christian Lavoie


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1023682 13f79535-47bb-0310-9956-ffa450edef68
2010-10-18 08:22:57 +00:00