This is an automated email from the ASF dual-hosted git repository. guangmingchen pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/brpc.git
The following commit(s) were added to refs/heads/master by this push: new d9dd7b05 Make socket default bthread tag right (#2948) d9dd7b05 is described below commit d9dd7b05b930a9bedb7d45e4c8cc91e12ef0971e Author: Yang,Liming <liming.y...@139.com> AuthorDate: Sun Apr 13 20:53:28 2025 +0800 Make socket default bthread tag right (#2948) --- src/brpc/socket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/brpc/socket.h b/src/brpc/socket.h index a84c0abd..875f3f85 100644 --- a/src/brpc/socket.h +++ b/src/brpc/socket.h @@ -284,7 +284,7 @@ struct SocketOptions { // Only linux supports TCP_USER_TIMEOUT. int tcp_user_timeout_ms{ -1}; // Tag of this socket - bthread_tag_t bthread_tag{BTHREAD_TAG_DEFAULT}; + bthread_tag_t bthread_tag{bthread_self_tag()}; }; // Abstractions on reading from and writing into file descriptors. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org