Skip to content

Fix ServiceChannel auto-close when server initiates session shutdown #5946

Open
afifi-ins wants to merge 1 commit into
dotnet:mainfrom
afifi-ins:service-channel-auto-close-stuck-5803
Open

Fix ServiceChannel auto-close when server initiates session shutdown #5946
afifi-ins wants to merge 1 commit into
dotnet:mainfrom
afifi-ins:service-channel-auto-close-stuck-5803

Fix ServiceChannel auto-close when server initiates session shutdown …

a2300ba
Select commit
Loading
Failed to load commit list.
Azure Pipelines / dotnet-wcf-ci failed Jul 24, 2026 in 16m 28s

Build #20260724.1 had test failures

Details

Tests

  • Failed: 4 (0.05%)
  • Passed: 7,729 (89.85%)
  • Other: 869 (10.10%)
  • Total: 8,602

Annotations

Check failure on line 9 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-wcf-ci

Build log #L9

Error: Not found SourceFolder: /__w/1/s/artifacts/log/Debug

Check failure on line 42 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-wcf-ci

Build log #L42

Bash exited with code '1'.

Check failure on line 99 in .packages\microsoft.dotnet.helix.sdk\11.0.0-beta.26372.4\tools\Microsoft.DotNet.Helix.Sdk.MultiQueue.targets

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-wcf-ci

.packages\microsoft.dotnet.helix.sdk\11.0.0-beta.26372.4\tools\Microsoft.DotNet.Helix.Sdk.MultiQueue.targets#L99

.packages\microsoft.dotnet.helix.sdk\11.0.0-beta.26372.4\tools\Microsoft.DotNet.Helix.Sdk.MultiQueue.targets(99,5): error : Work item Client.ChannelLayer.IntegrationTests.dll in job e82b2022-007e-4f72-9293-2de9f254ef1e has failed.
Failure log: https://helix.dot.net/api/2019-06-17/jobs/e82b2022-007e-4f72-9293-2de9f254ef1e/workitems/Client.ChannelLayer.IntegrationTests.dll/console

Check failure on line 99 in .packages\microsoft.dotnet.helix.sdk\11.0.0-beta.26372.4\tools\Microsoft.DotNet.Helix.Sdk.MultiQueue.targets

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-wcf-ci

.packages\microsoft.dotnet.helix.sdk\11.0.0-beta.26372.4\tools\Microsoft.DotNet.Helix.Sdk.MultiQueue.targets#L99

.packages\microsoft.dotnet.helix.sdk\11.0.0-beta.26372.4\tools\Microsoft.DotNet.Helix.Sdk.MultiQueue.targets(99,5): error : Work item Client.ChannelLayer.IntegrationTests.dll in job 941372da-4623-4937-947f-2cc7af16c277 has failed.
Failure log: https://helix.dot.net/api/2019-06-17/jobs/941372da-4623-4937-947f-2cc7af16c277/workitems/Client.ChannelLayer.IntegrationTests.dll/console

Check failure on line 1 in ServerInitiatedSessionShutdownTests.ServerInitiatedShutdown_ClientChannelTransitionsToClosed

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-wcf-ci

ServerInitiatedSessionShutdownTests.ServerInitiatedShutdown_ClientChannelTransitionsToClosed

System.ServiceModel.CommunicationException : The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:00:09.8472973'.
---- System.Net.Sockets.SocketException : An existing connection was forcibly closed by the remote host.
Raw output
   at System.ServiceModel.Channels.SocketConnection.ReadCoreAsync(Memory`1 buffer, TimeSpan timeout, Boolean closing)
   at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.SendPreambleAsync(IConnection connection, Memory`1 preamble, TimeSpan timeout)
   at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnectionAsync(TimeSpan timeout)
   at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpenAsync(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.OnOpenAsyncInternal(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.System.ServiceModel.IAsyncCommunicationObject.OpenAsync(TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.OnOpenAsync(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.OnOpenAsyncInternal(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.System.ServiceModel.IAsyncCommunicationObject.OpenAsync(TimeSpan timeout)
   at System.Runtime.TaskHelpers.WaitForCompletion(Task task)
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open()
   at System.ServiceModel.Channels.ServiceChannelProxy.System.ServiceModel.ICommunicationObject.Open()
   at ServerInitiatedSessionShutdownTests.ServerInitiatedShutdown_ClientChannelTransitionsToClosed() in /_/src/System.Private.ServiceModel/tests/Scenarios/Client/ChannelLayer/ServerInitiatedSessionShutdownTests.cs:line 58
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
----- Inner Stack Trace -----
   at System.ServiceModel.Channels.SocketAwaitableEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
   at System.ServiceModel.Channels.SocketConnection.ReadCoreAsync(Memory`1 buffer, TimeSpan timeout, Boolean closing)

Check failure on line 1 in Client.ChannelLayer.IntegrationTests.dll.WorkItemExecution

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-wcf-ci

Client.ChannelLayer.IntegrationTests.dll.WorkItemExecution

The Helix Work Item failed. Often this is due to a test crash. Please see the 'Artifacts' tab above for additional logs.

Check failure on line 1 in ServerInitiatedSessionShutdownTests.ServerInitiatedShutdown_ClientChannelTransitionsToClosed

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-wcf-ci

ServerInitiatedSessionShutdownTests.ServerInitiatedShutdown_ClientChannelTransitionsToClosed

System.ServiceModel.CommunicationException : The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:00:09.9541299'.
---- System.Net.Sockets.SocketException : An existing connection was forcibly closed by the remote host.
Raw output
   at System.ServiceModel.Channels.SocketConnection.ReadCoreAsync(Memory`1 buffer, TimeSpan timeout, Boolean closing)
   at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.SendPreambleAsync(IConnection connection, Memory`1 preamble, TimeSpan timeout)
   at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnectionAsync(TimeSpan timeout)
   at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpenAsync(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.OnOpenAsyncInternal(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.System.ServiceModel.IAsyncCommunicationObject.OpenAsync(TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.OnOpenAsync(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.OnOpenAsyncInternal(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.System.ServiceModel.IAsyncCommunicationObject.OpenAsync(TimeSpan timeout)
   at System.Runtime.TaskHelpers.WaitForCompletion(Task task)
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open()
   at System.ServiceModel.Channels.ServiceChannelProxy.System.ServiceModel.ICommunicationObject.Open()
   at ServerInitiatedSessionShutdownTests.ServerInitiatedShutdown_ClientChannelTransitionsToClosed() in /_/src/System.Private.ServiceModel/tests/Scenarios/Client/ChannelLayer/ServerInitiatedSessionShutdownTests.cs:line 58
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
----- Inner Stack Trace -----
   at System.ServiceModel.Channels.SocketAwaitableEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
   at System.ServiceModel.Channels.SocketConnection.ReadCoreAsync(Memory`1 buffer, TimeSpan timeout, Boolean closing)

Check failure on line 1 in Client.ChannelLayer.IntegrationTests.dll.WorkItemExecution

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-wcf-ci

Client.ChannelLayer.IntegrationTests.dll.WorkItemExecution

The Helix Work Item failed. Often this is due to a test crash. Please see the 'Artifacts' tab above for additional logs.