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
a7ed54cb
Commit
a7ed54cb
authored
9 years ago
by
Dan Born
Browse files
Options
Downloads
Patches
Plain Diff
Don't use ep after destroy in the test.
parent
76d21f9b
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
test/core/iomgr/tcp_posix_test.c
+0
-2
0 additions, 2 deletions
test/core/iomgr/tcp_posix_test.c
with
0 additions
and
2 deletions
test/core/iomgr/tcp_posix_test.c
+
0
−
2
View file @
a7ed54cb
...
@@ -437,7 +437,6 @@ static void release_fd_test(size_t num_bytes, size_t slice_size) {
...
@@ -437,7 +437,6 @@ static void release_fd_test(size_t num_bytes, size_t slice_size) {
gpr_slice_buffer_destroy
(
&
state
.
incoming
);
gpr_slice_buffer_destroy
(
&
state
.
incoming
);
grpc_tcp_destroy_and_release_fd
(
&
exec_ctx
,
ep
,
&
fd
,
&
fd_released_cb
);
grpc_tcp_destroy_and_release_fd
(
&
exec_ctx
,
ep
,
&
fd
,
&
fd_released_cb
);
GPR_ASSERT
(
grpc_tcp_fd
(
ep
)
<
0
);
gpr_mu_lock
(
GRPC_POLLSET_MU
(
&
g_pollset
));
gpr_mu_lock
(
GRPC_POLLSET_MU
(
&
g_pollset
));
while
(
!
fd_released_done
)
{
while
(
!
fd_released_done
)
{
grpc_pollset_worker
worker
;
grpc_pollset_worker
worker
;
...
@@ -446,7 +445,6 @@ static void release_fd_test(size_t num_bytes, size_t slice_size) {
...
@@ -446,7 +445,6 @@ static void release_fd_test(size_t num_bytes, size_t slice_size) {
}
}
gpr_mu_unlock
(
GRPC_POLLSET_MU
(
&
g_pollset
));
gpr_mu_unlock
(
GRPC_POLLSET_MU
(
&
g_pollset
));
GPR_ASSERT
(
fd_released_done
==
1
);
GPR_ASSERT
(
fd_released_done
==
1
);
GPR_ASSERT
(
grpc_tcp_fd
(
ep
)
<
0
);
GPR_ASSERT
(
fd
==
sv
[
1
]);
GPR_ASSERT
(
fd
==
sv
[
1
]);
grpc_exec_ctx_finish
(
&
exec_ctx
);
grpc_exec_ctx_finish
(
&
exec_ctx
);
...
...
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