51 Commits

Author SHA1 Message Date
Bright Chen 271b98fef7 Refactor NULL with nullptr in example (#3466) 2026-08-19 23:06:40 +08:00
darion-yaphet 0313102276 build(cxx): align all builds on a C++14 baseline (#3419)
* build(cxx): align all builds on a C++14 baseline

CMake, Make, tests, tools, and examples now require C++14 so every supported build path shares the same minimum language level. The compiler checks and user-facing documentation reflect that baseline.

* fix(test): keep cores scoped to the failing test

Clear prior cores before each test binary. A passing death test can leave a core that would otherwise be used to diagnose an unrelated later failure.

* revert src/butil/type_traits.h
2026-08-06 17:34:49 +08:00
Bright Chen 0608aa1e13 Fix gflag namespace of example and tools (#2879) 2025-01-19 21:28:55 +08:00
Yitao Wang 5dc6562049 fix thrift version gt 0.13.0 (#2257)
* fix thrift version gt 0.13.0

Signed-off-by: wangyitao <wangyitao999@outlook.com>

* address config_brpc.sh and fix issue

Signed-off-by: wangyitao <wangyitao999@outlook.com>

* make config_brpc.sh silent and make thrift_demo runable

---------

Signed-off-by: wangyitao <wangyitao999@outlook.com>
2023-09-07 17:00:10 +08:00
LorinLee a4e20bb4de Merge pull request #1840 from wasphin/feature/license-eyes
Add skywalking license eyes
2022-07-16 13:37:04 +08:00
Xiaofeng Wang 96bf3651db Add Apache license header 2022-07-15 22:53:27 +08:00
wangweibing 87e18c6a15 Fix __const__ compile error in gcc version >= 11.2.0 2022-06-07 14:51:21 +08:00
jamesge 74310245bf make by config_brpc.sh shows commands by default, add -s to hide 2020-02-10 17:03:22 +08:00
zhujiashun 60581f058c redis_server_protocol: remove Werror in thrift example 2019-12-12 12:30:39 +08:00
zhujiashun 2b96d08e94 insert_apache_header 2019-10-25 18:01:21 +08:00
Weibing Wang 078051f9bf Update license header to Apache 2019-06-20 14:22:57 +08:00
gejun c813572db1 Fix compilation issues in examples 2018-09-07 17:00:32 +08:00
Ge Jun 508b06f924 update thrift makefile 2018-07-18 03:13:10 -07:00
Ge Jun ad05b23e5c remove unused includsion in thrift client 2018-07-18 02:56:41 -07:00
Ge Jun 3fccb30174 fix the bug in SocketMapList that input is not cleared when socketmap is not created & add a multi-threaded client for thrift 2018-07-18 02:55:47 -07:00
Ge Jun 591dae77e1 include boost/make_shared on demand & suppress some strict aliasing warning 2018-07-17 07:44:57 -07:00
Ge Jun 58551f87fb add server2.cpp which is missed in last commit 2018-07-17 01:41:17 -07:00
Ge Jun 5954859713 Add a proxy example in example/thrift_extension_c++ 2018-07-17 01:37:06 -07:00
Ge Jun 515a8d0b9e 1. Add ThriftStub to send and receive native thrift messages & specify method-name directly. As a result, ThriftMessage<T> is removed.
2. ThriftFramedMessage (no matter Cast<>-ed or not) can be sent/received as well so that building proxies of thrift is much easier.
3. ThriftFramedMessage::Cast<T> can be called multiple times with reasonable behaviors, even if T is changed.
4. Server-side errors are sent to client as TApplicationException instead of closing the connection.
5. Code in ThriftService::ProcessThriftFramedRequest() can throw exceptions which will be sent to client as errors as well.
6. Simplify ThriftClosure which does not need many stuffs inherited from NsheadClosure.
7. Port protocol-related patches to thrift_protocol.cpp which was changed before the patches.
8. Remove the unnecessary default malloc when constructing TMemoryBuffer.
9. Use TBinaryProtocolT instead of TBinaryProtocol to make read/write non-virtual, and remove the unnecessary shared_ptr on iprot/oprot.
10. request/response must be ThriftFramedRequest when protocol is thrift, which was not checked before.
11. Limit max length of thrift_method_name (to a reasonable large value) so that intermediate buffer can be allocated on stack directly.
12. Make ThriftFramedMessage uncopyable since the TBase* inside does not have a general copy function.
2018-07-16 23:44:22 -07:00
wangxuefeng bab70ab0ae Update as comments. 2018-07-12 03:57:58 +00:00
wangxuefeng e634500c40 Fix thrift method name issue 2018-07-11 08:53:26 +00:00
wangxuefeng c53d23ae15 Add DYNAMIC_LINKINGS for thrift example 2018-07-04 02:22:53 +00:00
wangxuefeng c778e70f3f Remove thrift marco in user code. 2018-07-02 09:16:14 +00:00
Ge Jun 3ded5044ff Merge pull request #342 from kenshinxf/kenshinxf
Fix the issue that RegisterThriftProtocol is not in the right namespace
2018-05-25 12:15:01 +08:00
wangxuefeng dcabfa9ad6 Remove useless code in thrift example 2018-05-24 12:00:44 +00:00
wangxuefeng 5462d7b57c Update thrift example 2018-05-24 11:41:41 +00:00
wangxuefeng c00718bfc6 Fix register thrift protocol issue 2018-05-24 07:24:01 +00:00
Ge Jun f184cbc757 Polish thrift related docs 2018-05-24 00:10:35 -07:00
wangxuefeng b75dbd03a4 Fix native server issue 2018-05-22 03:29:44 +00:00
jamesge 05a0bd1076 Renamed ThriftMessage to ThriftFramedMessage, ThriftTemplateMessage to ThriftMessage
Removed thrift_binary_head.h and renamed thrift_binary_head_t to thrift_head_t which is in thrift_message.h
Adapt thrift 0.11 which uses shared_ptr defined in stdcxx.h
Simplify example/thrift_extension_c++ by roundrobin between processing by handler or directly.
Removed libbrpc_thrift.a, the objs are archived into libbrpc.a (and libbrpc.so) directly
2018-05-14 04:49:11 -07:00
wangxuefeng 00a5accf3c Trigger ci test 2018-05-08 05:02:48 +00:00
wangxuefeng 9a01a38f8a Update thrift example README 2018-05-06 02:55:04 +00:00
wangxuefeng 5a1b7235bd Update as comments 2018-05-03 06:43:13 +00:00
wangxuefeng 25b628526c Seperate libbrpc and librpc_thrift 2018-04-24 13:17:56 +00:00
wangxuefeng a9d8d2a848 Add Cmake support for thrift 2018-04-12 02:51:16 +00:00
wangxuefeng a97e3d2a8e Update according to comments by Gejun. 2018-04-11 09:56:07 +00:00
wangxuefeng e018977c25 Fix merge issue 2018-04-09 13:03:31 +00:00
wangxuefeng c2388562ef rename ThriftBinary* to ThriftFramed* 2018-04-09 11:39:03 +00:00
wangxuefeng c332d83968 refactor server side code, support raw pb manner way. 2018-04-09 09:50:41 +00:00
wangxuefeng ad4dbeca80 Thrift client side code refactor 2018-04-04 03:06:04 +00:00
wangxuefeng 47faf69530 Implement thrift brpc transport. 2018-04-01 06:48:01 +00:00
wangxuefeng abd72b3bcd Fix mem leak 2018-03-30 07:58:10 +00:00
wangxuefeng d33f601f39 Add reflection to server side to make the user life easy. 2018-03-30 03:41:03 +00:00
wangxuefeng 23afa52c51 Fix white space issue. 2017-11-06 11:54:14 +00:00
wangxuefeng d396f854dc Fix as comments by gejun. 2017-11-06 11:33:42 +00:00
wangxuefeng d7bbec1d28 Fix compile issue 2017-11-03 16:13:41 +00:00
wangxuefeng 835ac650f4 Update thrift client 2017-11-03 15:54:34 +00:00
wangxuefeng c824aca968 Jump back to root dir. 2017-11-03 15:49:58 +00:00
wangxuefeng abf27c615f Fix ci build 2017-11-03 15:21:17 +00:00
wangxuefeng 61c32158cd Update 2017-11-03 16:45:39 +08:00