aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2015-09-22 00:07:14 +0200
committerGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2015-09-22 00:07:14 +0200
commit3a26c5bb5d854fbe1311396bd90c0c90f4e9a3df (patch)
tree1d787d996ac2464d5d222774ef57113b43bec7f6 /src/core
parent63dcc018f0e61a7d941bb36e99bc9f61f0cf5988 (diff)
Shutting down warning about operations on closed sockets.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/iomgr/tcp_windows.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/iomgr/tcp_windows.c b/src/core/iomgr/tcp_windows.c
index fe3673c607..725c18e6cc 100644
--- a/src/core/iomgr/tcp_windows.c
+++ b/src/core/iomgr/tcp_windows.c
@@ -144,7 +144,7 @@ static int on_read(grpc_tcp *tcp, int success) {
int do_abort = 0;
if (success) {
- if (socket->read_info.wsa_error != 0) {
+ if (socket->read_info.wsa_error != 0 && !tcp->shutting_down) {
if (socket->read_info.wsa_error != WSAECONNRESET) {
char *utf8_message = gpr_format_message(info->wsa_error);
gpr_log(GPR_ERROR, "ReadFile overlapped error: %s", utf8_message);
@@ -153,7 +153,7 @@ static int on_read(grpc_tcp *tcp, int success) {
success = 0;
gpr_slice_unref(tcp->read_slice);
} else {
- if (info->bytes_transfered != 0) {
+ if (info->bytes_transfered != 0 && !tcp->shutting_down) {
sub = gpr_slice_sub_no_ref(tcp->read_slice, 0, info->bytes_transfered);
gpr_slice_buffer_add(tcp->read_slices, sub);
success = 1;