Commit Graph

1460 Commits

Author SHA1 Message Date
Bright Chen f60af19c46 Fix bthread_usleep return unexpected ESTOP (#2511) 2024-01-31 11:54:20 +08:00
Bright Chen 09b9600260 Fix Content-Length and Transfer-Encoding problem (#2518) 2024-01-31 11:53:48 +08:00
Bright Chen df69b95cce Support memory builtin service (#2505)
* Support TCMalloc builtin service

* Support memory service
2024-01-23 13:32:11 +08:00
Bright Chen 313258e982 Support async logging (#2413)
* Support async logging

* Set max async log queue size

* Flush async log before exit

* Use sync log for the first LogRequest

* Support usec of logging for macOS
2024-01-23 13:29:46 +08:00
youtao guo a3280c6263 change UserDataDeleter type from function ptr to std::function (#2431)
* change UserDataDeleter type from function ptr to std::function

* add unittest

* check that no copy happen when append the stateful user data

* check the destruction is performed correctly
2024-01-23 13:27:07 +08:00
Bright Chen 3bacab8a58 Support A Multiple Producer, Single Consumer Queue (#2492) 2024-01-23 13:22:08 +08:00
jiangyt-git ff75449bef support grpc health check (#2493)
* support grpc health check protocol

* add grpc health check ut

---------

Co-authored-by: jiangyuting <jiangyutingwangyi@163.com>
2024-01-23 13:21:45 +08:00
Bright Chen 7dbe7752a3 Opt HttpResponseSender move constructor (#2504) 2024-01-23 13:21:15 +08:00
Weibing Wang 210ebfb312 Support c++20 coroutine (#2121)
* Support c++20 coroutine

* Fix CI UT failed

* Add example coroutine Makefile

* Add usercode_in_coroutine flag

* Add coroutine document

* Add experimental namespace for coroutine
2024-01-23 12:12:59 +08:00
Yang,Liming aad1fc6972 modify GetGlobalEventDispatcher for rdma (#2513) 2024-01-22 11:00:41 +08:00
Bright Chen 09141d4d87 Opt contention: support tcmalloc GetStackTrace and reduce hash calculations (#2488) 2024-01-17 10:28:21 +08:00
Bright Chen 68432abe28 Opt Content-Length in response to HEAD request (#2469) 2024-01-17 10:26:13 +08:00
Dongsheng He b8d45bb9c8 fix LoadBalancerWithNaming memory leak when ssl init failed (#2503) 2024-01-11 23:22:43 +08:00
yaphet 801a7a0230 fix typo memcache_binary_protocol (#2501) 2024-01-11 23:07:47 +08:00
Bright Chen 7ceb8ed9d9 Support 100-continue of server and remove expect header of request (#2499) 2024-01-10 10:17:09 +08:00
Yang,Liming ab5a496f83 modify bthread attribute with tag (#2476)
Co-authored-by: Yang Liming <yangliming02@meituan.com>
2024-01-09 15:30:17 +08:00
Didier Raboud f19ae4f253 Fix english typos (#2496)
* Fix ploting -> plotting typo
* Fix is not enable -> is not enabled typo
* Fix allowd -> allowed typo
* Fix paramters -> parameters typo
* Fix reponse -> response typo
* Fix seperated -> separated typo
2024-01-05 13:59:22 +08:00
Li Zhiyuan 9fd7e21ef7 Fix scoped_refptr leave ptr_ uninit when move construct by nullptr (#2491)
* Fix scoped_refptr leave ptr_ uninit when move construct by nullptr

---------

Co-authored-by: 扬宁 <yangning.lzy@alibaba-inc.com>
2024-01-02 22:22:15 -08:00
Bright Chen 023fa14e13 Support uint32 reloadable flags (#2483) 2023-12-27 15:50:56 +08:00
Menci 4b14951862 Add client ALPN support (#2251)
* Add client ALPN support

* Fix build error

* Remove ALPN code from mesalink_ssl_helper

* Add alpn_protocol.size() to error message

* Add docs
2023-12-25 11:52:48 +08:00
miko song d6f6f7cf6f Optimize ParallelChannel AddChannel Interface (#2467) 2023-12-25 10:12:43 +08:00
binarycopycode 3d8c0f2e32 add #include <memory> in brpc/details/http_message.h for compilation in CentOS8 (#2474) 2023-12-22 10:11:31 +08:00
Bright Chen 2098dd3927 Support user fields of baidu protocol (#2406)
* Support user fields of baidu protocol

* Use request_user_fields before RPC
2023-12-20 11:49:31 +08:00
Yang,Liming 73b307a768 bthread task group add tag (#2358)
Co-authored-by: Yang Liming <yangliming02@meituan.com>
2023-12-20 11:47:26 +08:00
LorinLee 9b15c3b7a0 Merge pull request #2435 from chenBright/fix_usleep
usleep returns ESTOP when schedule timer failed
2023-12-16 12:19:40 +08:00
jiangyt-git 249df0f388 fix window update threshold (#2418)
Co-authored-by: jiangyuting <jiangyutingwangyi@163.com>
2023-12-13 21:58:43 -06:00
Divyansh200102 a665f60d10 remove the docs and comments related to HealthCheckThread (#2463) 2023-12-13 22:53:48 +01:00
Bright Chen da1f542a67 Fix http verbose memory leak (#2429) 2023-12-03 17:26:05 +01:00
Bright Chen e6e5516e32 Opt ssl read log (#2451)
* Opt ssl read log

* Log with fatal error
2023-12-03 17:23:20 +01:00
Bright Chen 308b3c81e1 Remove Content-Length header of GET request (#2458) 2023-12-03 17:20:02 +01:00
Bright Chen 00dcd13da4 Support max width of flame graph image (#2452) 2023-11-27 17:24:12 +08:00
jiangyt-git 3da0a66c0c add wrr lb fallback strategy (#2441)
Co-authored-by: jiangyuting <jiangyutingwangyi@163.com>
2023-11-27 17:19:34 +08:00
Yazawa Nico 713bbb1758 lalb try left server nodes (#2428)
* lalb try left server nodes

* beautify

* add comment

* typo

---------

Co-authored-by: zhoushan <zhoushan@pinduoduo.com>
2023-11-27 17:19:14 +08:00
Bright Chen 806f4d46c9 Fix comment of http parser and some typos (#2445) 2023-11-15 11:39:54 +08:00
Bright Chen 405b110b38 Fix stream write in background not work (#2440) 2023-11-10 16:50:10 +08:00
Bright Chen bef942b2b6 Disallow copy and assign of Channel (#2439) 2023-11-10 16:49:03 +08:00
dylan 6de560b84f Fixup mbvar convert prometheus metrics format issue (#2082) (#2235) 2023-11-07 14:05:37 +08:00
yaphet ef6f91616b remove useless and (#2438) 2023-11-02 18:13:27 +08:00
Bright Chen eded407e62 usleep returns ESTOP when schedule timer failed 2023-11-01 11:41:34 +08:00
Dongsheng He 761b399e50 Support compile with boringssl (#2399)
* support boringssl

* add CMakeLists

* fix

* suopport boring ssl bazel

* fix AddBioBuffer code

* fix compile

* add boringssl compile bazel ci

* set compile with boringssl as a dependent job

---------

Co-authored-by: Dongsheng He <hds@dipeak.com>
2023-10-25 15:04:53 +08:00
Bright Chen a3becd3ab0 Reserve at least one idle socket (#2390) 2023-10-25 15:03:42 +08:00
aba_aba_da_duo_duo 7247c6a512 fix (#2373) 2023-10-25 15:03:19 +08:00
zhaixiaojuan@loongson.cn d88f077de2 Add support for loongarch64 (#2364) 2023-10-25 15:02:40 +08:00
Bright Chen ded7c2256f Support url safe base64 (#2337)
* Support url safe base64

* Update base64url license

* Update base64url license
2023-10-25 15:02:09 +08:00
youcheng huang e1a88638fb send response之后,request/response对象析构之前执行一些自定义逻辑 (#2328)
* call_after_rpc_resp

* fix function name & add examples & add ut

* fix mistake

* fix compile error

* fix compile error

* update ut

* complete ut

* update ut

* modify function name

---------

Co-authored-by: yuncheng <yuncheng@pinduoduo.com>
2023-10-25 15:01:45 +08:00
Lijin Xiong d142274c8a fix huge rdma_recv_block_type no effect issue. (#2326)
It has no effect for `huge` type of recv_block_size
which is as large as 2^21, because the `block_size`
variable is defined as type `uint16_t`, its maximum
value is 2^16. So, change the type of `block_size`
to `uint32_t` with relevant updates.

Signed-off-by: Lijin Xiong <lijin.xiong@zstack.io>
Co-authored-by: Lijin Xiong <lijin.xiong@zstack.io>
2023-10-25 15:00:19 +08:00
Simon Cho 3527165b22 [FIX] fix compile on ubuntu18.04 + use anonymous namespace for hardcode var (#2422) 2023-10-25 14:26:38 +08:00
wwbmmm d866be27ed Fix RetryPolicy blocks HealthCheck 2023-10-19 20:13:55 +08:00
ehds 1245d5c754 fix lint 2023-10-18 11:50:39 +08:00
ehds ddfd893b7c set dir = nullptr 2023-10-18 01:34:34 +08:00