Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
773a8825
Commit
773a8825
authored
8 years ago
by
yang-g
Browse files
Options
Downloads
Patches
Plain Diff
Minor fixes
parent
55ca239b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/core/lib/iomgr/udp_server.c
+2
-2
2 additions, 2 deletions
src/core/lib/iomgr/udp_server.c
src/cpp/server/server_posix.cc
+1
-1
1 addition, 1 deletion
src/cpp/server/server_posix.cc
with
3 additions
and
3 deletions
src/core/lib/iomgr/udp_server.c
+
2
−
2
View file @
773a8825
...
@@ -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
);
buf
fer
_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
);
buf
fer
_size_bytes
);
goto
error
;
goto
error
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/cpp/server/server_posix.cc
+
1
−
1
View file @
773a8825
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment