Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/brpc/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down