This is an automated email from the ASF dual-hosted git repository.
chenBright 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 2e20ccb7 Fix SetHostSocket when add stream failed (#3386)
2e20ccb7 is described below
commit 2e20ccb705a948b61c24f813a1fd5a610e3636b9
Author: lo-tk <[email protected]>
AuthorDate: Thu Jul 16 17:09:22 2026 +0800
Fix SetHostSocket when add stream failed (#3386)
Co-authored-by: luocongkai <[email protected]>
---
src/brpc/stream.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/brpc/stream.cpp b/src/brpc/stream.cpp
index 01504d3d..2667614d 100644
--- a/src/brpc/stream.cpp
+++ b/src/brpc/stream.cpp
@@ -672,7 +672,7 @@ int Stream::SetHostSocket(Socket *host_socket) {
}
_host_socket = ptr.release();
});
- return 0;
+ return _host_socket != NULL ? 0 : -1;
}
void Stream::FillSettings(StreamSettings *settings) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]