Merge pull request #1420 from zeliard/master

make initializing overlapped-struct obvious for preventing a ciritical bug
pull/1408/head^2
Nicolas Noble 10 years ago
commit 7a509048f6
  1. 2
      src/core/iomgr/tcp_windows.c

@ -289,7 +289,7 @@ static grpc_endpoint_write_status win_write(grpc_endpoint *ep,
return ret;
}
memset(&socket->write_info, 0, sizeof(OVERLAPPED));
memset(&socket->write_info.overlapped, 0, sizeof(OVERLAPPED));
status = WSASend(socket->socket, buffers, tcp->write_slices.count,
&bytes_sent, 0, &socket->write_info.overlapped, NULL);
if (allocated) gpr_free(allocated);

Loading…
Cancel
Save