Skip to content
Snippets Groups Projects
Commit 773a8825 authored by yang-g's avatar yang-g
Browse files

Minor fixes

parent 55ca239b
Branches
Tags
No related merge requests found
...@@ -243,13 +243,13 @@ static int prepare_socket(int fd, const struct sockaddr *addr, ...@@ -243,13 +243,13 @@ static int prepare_socket(int fd, const struct sockaddr *addr,
if (!grpc_set_socket_sndbuf(fd, buffer_size_bytes)) { if (!grpc_set_socket_sndbuf(fd, buffer_size_bytes)) {
gpr_log(GPR_ERROR, "Failed to set send buffer size to %d bytes", gpr_log(GPR_ERROR, "Failed to set send buffer size to %d bytes",
buf_size_bytes); buffer_size_bytes);
goto error; goto error;
} }
if (!grpc_set_socket_rcvbuf(fd, buffer_size_bytes)) { if (!grpc_set_socket_rcvbuf(fd, buffer_size_bytes)) {
gpr_log(GPR_ERROR, "Failed to set receive buffer size to %d bytes", gpr_log(GPR_ERROR, "Failed to set receive buffer size to %d bytes",
buf_size_bytes); buffer_size_bytes);
goto error; goto error;
} }
......
...@@ -42,8 +42,8 @@ namespace grpc { ...@@ -42,8 +42,8 @@ namespace grpc {
void AddInsecureChannelFromFd(Server* server, int fd) { void AddInsecureChannelFromFd(Server* server, int fd) {
grpc_server_add_insecure_channel_from_fd( grpc_server_add_insecure_channel_from_fd(
server->c_server(), server->completion_queue()->cq(), fd); server->c_server(), server->completion_queue()->cq(), fd);
}
#endif // GPR_SUPPORT_CHANNELS_FROM_FD #endif // GPR_SUPPORT_CHANNELS_FROM_FD
}
} // namespace grpc } // namespace grpc
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment