[iomgr][windows] Fix suppressed error on AcceptEx pointer retrieval (#32155)

pull/32178/head
AJ Heller 2 years ago committed by GitHub
parent c1a4b526fb
commit 176a5fd749
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/core/lib/iomgr/tcp_server_windows.cc

@ -412,11 +412,9 @@ static grpc_error_handle add_socket_to_server(grpc_tcp_server* s, SOCKET sock,
&AcceptEx, sizeof(AcceptEx), &ioctl_num_bytes, NULL, NULL);
if (status != 0) {
char* utf8_message = gpr_format_message(WSAGetLastError());
gpr_log(GPR_ERROR, "on_connect error: %s", utf8_message);
gpr_free(utf8_message);
error = GRPC_WSA_ERROR(WSAGetLastError(), "AcceptEx pointer retrieval");
closesocket(sock);
return absl::OkStatus();
return error;
}
error = prepare_socket(sock, addr, &port);

Loading…
Cancel
Save