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
e55e1833
Commit
e55e1833
authored
9 years ago
by
chai2010
Browse files
Options
Downloads
Patches
Plain Diff
fix build on windows
parent
478f55fe
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/core/iomgr/tcp_server_windows.c
+5
-3
5 additions, 3 deletions
src/core/iomgr/tcp_server_windows.c
with
5 additions
and
3 deletions
src/core/iomgr/tcp_server_windows.c
+
5
−
3
View file @
e55e1833
...
@@ -243,6 +243,9 @@ static void on_accept(void *arg, int from_iocp) {
...
@@ -243,6 +243,9 @@ static void on_accept(void *arg, int from_iocp) {
SOCKET
sock
=
sp
->
new_socket
;
SOCKET
sock
=
sp
->
new_socket
;
grpc_winsocket_callback_info
*
info
=
&
sp
->
socket
->
read_info
;
grpc_winsocket_callback_info
*
info
=
&
sp
->
socket
->
read_info
;
grpc_endpoint
*
ep
=
NULL
;
grpc_endpoint
*
ep
=
NULL
;
DWORD
transfered_bytes
;
DWORD
flags
;
BOOL
wsa_success
;
/* The general mechanism for shutting down is to queue abortion calls. While
/* The general mechanism for shutting down is to queue abortion calls. While
this is necessary in the read/write case, it's useless for the accept
this is necessary in the read/write case, it's useless for the accept
...
@@ -251,9 +254,8 @@ static void on_accept(void *arg, int from_iocp) {
...
@@ -251,9 +254,8 @@ static void on_accept(void *arg, int from_iocp) {
/* The IOCP notified us of a completed operation. Let's grab the results,
/* The IOCP notified us of a completed operation. Let's grab the results,
and act accordingly. */
and act accordingly. */
DWORD
transfered_bytes
=
0
;
transfered_bytes
=
0
;
DWORD
flags
;
wsa_success
=
WSAGetOverlappedResult
(
sock
,
&
info
->
overlapped
,
BOOL
wsa_success
=
WSAGetOverlappedResult
(
sock
,
&
info
->
overlapped
,
&
transfered_bytes
,
FALSE
,
&
flags
);
&
transfered_bytes
,
FALSE
,
&
flags
);
if
(
!
wsa_success
)
{
if
(
!
wsa_success
)
{
if
(
sp
->
shutting_down
)
{
if
(
sp
->
shutting_down
)
{
...
...
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