Skip to content

Commit

Permalink
Support .net 6 for tcp keep alive (#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiweiv authored Feb 8, 2022
1 parent 8f4ee45 commit d74f357
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/KubernetesClient/Kubernetes.ConfigInit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ private void CreateHttpClient(DelegatingHandler[] handlers, KubernetesClientConf
FirstMessageHandler = HttpClientHandler = CreateRootHandler();


#if NET5_0
#if NET5_0_OR_GREATER
// https://github.com/kubernetes-client/csharp/issues/587
// let user control if tcp keep alive until better fix
if (config.TcpKeepAlive)
Expand Down
2 changes: 1 addition & 1 deletion src/KubernetesClient/Kubernetes.WebSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ protected async Task<WebSocket> StreamConnectAsync(Uri uri, string webSocketSubP
}
else
{
#if NET5_0
#if NET5_0_OR_GREATER
var content = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
#else
var content = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
Expand Down

0 comments on commit d74f357

Please sign in to comment.