Commit Graph

773 Commits

Author SHA1 Message Date
Jim King
9de9b1f1be THRIFT-2850 get windows cmake working again and building the unit tests for lib/cpp, and pass make check through cmake - also resolve some compiler warnings 2015-04-30 22:40:26 +02:00
Jens Geyer
1a8e048bd0 THRIFT-3120 Minor spelling errors and an outdated URL
Client: C++
Patch: Calvin Sun <675313675@qq.com>

This closes #471
2015-04-30 20:37:20 +02:00
Jim King
79c9911b87 THRIFT-3084 add optional concurrent client limit enforcement to lib/cpp threaded servers 2015-04-30 19:48:15 +02:00
Jim King
21b6852408 THRIFT-3083 consolidate simple and threaded server run loops 2015-04-30 12:41:16 +02:00
Konrad Grochowski
87bb771d89 THRIFT-3105 - C++ TNonblockingServer compilation on Windows fixed
Client: C++
Patch: James E. King, III <jim.king@simplivity.com>

This closes #453
2015-04-30 11:38:39 +02:00
Jim King
5ec805b22b THRIFT-3081 consolidate client processing loop in Simple, Threaded, and Thread Pool servers 2015-04-26 20:58:17 +02:00
Roger Meier
71f2d8a714 THRIFT-3067 C++ cppcheck performance related warnings
Patch: Arijit Chattopadhyay <arijitnit06@gmail.com>

This closes #444
2015-04-26 17:00:04 +02:00
Ben Craig
1684c42950 THRIFT-2441 Cannot shutdown TThreadedServer when clients are still connected
Author: James E. King, III <Jim.King@simplivity.com>
2015-04-24 08:52:44 -05:00
Marco Molteni
98201b0605 THRIFT-3090 cmake build is broken on MacOSX. 2015-04-20 22:26:37 +02:00
Marco Molteni
83494259d1 THRIFT-3099 cmake build is broken on FreeBSD 2015-04-16 22:23:27 +02:00
Roger Meier
8f27189dfd THRIFT-3090 cmake build is broken (set CMake version to 2.8.12) 2015-04-14 22:05:50 +02:00
Roger Meier
afc3777f9b THRIFT-3069 fix socket leak if fcntl fails
This closes #419

commit 467f67d13248c433fc3a9b50882e39837dc62376
Author: Jim King <jim.king@simplivity.com>
Date: 2015-04-03T01:01:00Z
2015-04-14 21:50:31 +02:00
Roger Meier
efd14e7c25 THRIFT-3062 fix segfault on invalid port number
This closes #425

commit 9d5654389daab6ab6be6bdae110a1acede51e945
Author: Jim King <jim.king@simplivity.com>
Date: 2015-04-04T19:47:34Z
2015-04-14 21:06:14 +02:00
Jim King
1673adf94a THRIFT-3094 fix broken cmake build of C++ library with alternate threading 2015-04-13 21:05:53 +02:00
Roger Meier
932c3ee66e THRIFT-3061 eliminate potential for client to hang SSLSocket close
This closes #423

commit 5cb13f25ee6d292f2fde0051a2b7ee56b7884055
Author: Jim King <jim.king@simplivity.com>
Date: 2015-04-03T18:56:27Z
2015-04-12 22:11:04 +02:00
Roger Meier
5af78c8776 Revert "THRIFT-3014 AppVeyor support - fix format"
This reverts commit 81b3c440c6.

commit included modified CMakeLists.txt files, as part from local test
2015-04-12 21:43:12 +02:00
Roger Meier
81b3c440c6 THRIFT-3014 AppVeyor support - fix format 2015-04-12 21:06:11 +02:00
Jim King
8ccd634946 THRIFT-3077 TFileTransport fix ignored ftruncate result 2015-04-07 23:23:31 +02:00
Lei Feiwei
b5ebcd199c THRIFT-3080: use select() instead poll() for early windows compatibility. 2015-04-07 22:38:25 +02:00
abadcafe
38772c9c8d THRIFT-3080: fix connection leak of C++ Nonblocking Server while huge number connections are accepted and unix socket stream fd is busy. 2015-04-07 22:38:25 +02:00
Jim King
7848d887e0 THRIFT-3086 fix a few minor valgrind identified issues 2015-04-07 20:46:48 +02:00
Roger Meier
3815e0b2dc THRIFT-1025 C++ ServerSocket should inherit from Socket with the necessary Ctor to listen on connections from a specific host (similar to perl library)
add new test to CMakeLists.txt
2015-04-04 16:26:30 +02:00
Roger Meier
011445528f THRIFT-1025 C++ ServerSocket should inherit from Socket with the necessary Ctor to listen on connections from a specific host (similar to perl library)
Patch: Jim King <jim.king@simplivity.com>
This closes PR: #417
2015-04-04 16:14:08 +02:00
Jens Geyer
434edf6d5d THRIFT-3066 C++ TDenseProtocol assert modifies instead of checks
Client: C++
Patch: James E. King, III <jim.king@simplivity.com>
2015-04-03 12:52:01 +02:00
Roger Meier
6fc2115e18 THRIFT-2441 ccp: Cannot shutdown TThreadedServer when clients are still connected 2015-03-29 20:56:04 +02:00
Roger Meier
6f7399b355 cpp: remove unused variable g_socket_syscalls 2015-03-04 14:32:59 +01:00
Randy Abernethy
f702fed427 THRIFT-3020:Repair CPP11 init of member in TFramedTrans
Client: CPP
Patch: Zachary Sims

Github Pull Request:
This closes #384
commit dacbee68444aeded794ff445559367b538113c91
Author: Zachary Sims <z.sims@qsr.com.au>
Date: 2015-03-03T05:12:31Z
Removes C++11-style field initialisation in TBufferTransports.h
2015-03-03 08:14:12 -08:00
Konrad Grochowski
12b06e4f8c THRIFT-2870 - C++: JSON protocol will read & write doubles using "C" locale
Client: C++
Patch: Simon Falsig
2015-02-23 17:19:33 +01:00
Roger Meier
0d964d8e52 THRIFT-2937 Allow setting a maximum frame size
Set maximum frame size to 256MB (same as TNonblockingServer)

Client: cpp
Patch: Cristian Klein & Roger Meier
2015-02-15 19:24:50 +01:00
Sergei Nikulov
283899bf9a Use Boost C++ >= 1.53.0 2015-02-15 00:04:46 +01:00
Konrad Grochowski
3bc6424c76 THRIFT-2724 - Coding standards template added all over project
Client: All
Patch: Konrad Grochowski

This closes #371
2015-02-05 12:15:19 +01:00
Nobuaki Sukegawa
a0c5ab711e THRIFT-2971 - C++ test and tutorial parallel build is unstable 2015-02-02 22:06:39 +01:00
Nobuaki Sukegawa
208738a6e3 THRIFT-2972 - Missing backstash in lib/cpp/test/Makefile.am 2015-02-02 22:04:29 +01:00
Randy Abernethy
da80afe740 THRIFT-2936 Minor memory leak in CPP SSL
Client: CPP
Patch: Cristian Klein
2015-01-09 14:32:24 -08:00
Nobuaki Sukegawa
8016af800f THRIFT-2924 TNonblockingServer crashes when user-provided event_base is used 2015-01-04 16:50:59 +01:00
Nobuaki Sukegawa
c444fb581d THRIFT-2925 CMake build does not work with OpenSSL nor anything installed in non-system location
This diff fixes them by correcting invalid CMake variable names:
* OPENSSL_... rather than OpenSSL_...
* LIBEVENT_... rather than Libevent_...
* Boost_INCLUDE_DIRS rather than Boost_INCLUDE_DIR
* LIBEVENT_INCLUDE_DIRS rather than LIBEVENT_INCLUDE_DIR
* ZLIB_INCLUDE_DIRS rather than ZLIB_INCLUDE_DIR

Note:
* OPENSSL_INCLUDE_DIR is correct (rather than ..._DIRS)
* Boost_INCLUDE_DIR exists and actually works for most cases but
  Boost_INCLUDE_DIRS is the one desinged to be included

Also, library headers are now included as SYSTEM headers.
2015-01-03 10:08:09 +01:00
Jens Geyer
4461a2fc16 THRIFT-2910 libevent is not really optional
Client: C++
Patch: Nobuaki Sukegawa <nsukeg@gmail.com>

This closes #337
2014-12-23 18:22:54 +01:00
Jens Geyer
2ac3a3c821 THRIFT-2912 Autotool build for C++ Qt library is invalid
Client: C++
Patch: Nobuaki Sukegawa <nsukeg@gmail.com>

This closes #336

* Fix incorrect AC_PATH_PROGS usage
* Exclude generated source code from distribution
2014-12-23 18:18:58 +01:00
Nobuaki Sukegawa
6622877a09 THRIFT-2098 Add support for Qt5+ 2014-12-21 16:36:47 +01:00
Nobuaki Sukegawa
6304a53414 THRIFT-2903 Qt4 library built with CMake does not work 2014-12-21 16:36:46 +01:00
Nobuaki Sukegawa
2825664f25 THRIFT-2893 CMake build fails with boost thread or std thread
Following changes are made to fix the build
* Add USE_..._THREAD compiler definitions correctly
* Link to boost_thread and boost_system when configured with boost thread
* Link to pthread if platform is posix and std thread is used
* Use PlatformThreadFactory in test code
2014-12-21 16:36:46 +01:00
Konrad Grochowski
38bf23404c THRIFT-2907 - macro ntohll defined only when needed
Client: C++
Patch: Jon Parise

This closes #334
2014-12-20 13:23:27 +01:00
Konrad Grochowski
ec8d8778b5 THRIFT-2906 - linking with boost_unit_test_framework made more portable
Client: C++
Patch: Jon Parise

BOOST_TEST_LDADD Makefile variable added and should be used when linking
with boost_unit_test_framework

This closes #333
2014-12-20 12:50:30 +01:00
Pascal Bach
d5f87e1f21 CMake: Add CMake support for Thrift libraries
Currently the following libraries are supported:
- C++
- C_Glib
- Java (using Ant wrapper)

The compilers CMake file is adjusted to work with the new global CMakeLists.txt file.

Signed-off-by: Roger Meier <r.meier@siemens.com>
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Also-by: Sergei Nikulov <sergey.nikulov@gmail.com>
2014-12-13 22:02:29 +01:00
Jon Parise
a195a2574e THRIFT-2887 Respect --with-openssl when building C++ support. 2014-12-13 21:36:25 +01:00
Konrad Grochowski
3876ea70a2 make style applied 2014-12-09 15:24:56 +01:00
Nobuaki Sukegawa
d0d7a65581 THRIFT-2838 TNonblockingServer can bind to port 0 (i.e., get an OS-assigned port) but there is no way to get the port number 2014-12-07 17:00:02 +01:00
Konrad Grochowski
4c1fde226e make style applied 2014-12-06 19:54:26 +01:00
Pascal Bach
3de6b8fe23 THRIFT-2873 Make TPipe and TPipeServer working with unicode on windows
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
2014-12-06 16:30:03 +01:00
Konrad Grochowski
9db4b51b66 THRIFT-2876: C++ - tests: coping __isset structure in copy constructor
Client: C++
Patch: Nobuaki Sukegawa

Test verifies THRIFT-2526
This closes #303
2014-12-04 23:32:52 +01:00