Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Microsoft.AspNet.Server.KestrelTests failures on CoreCLR on Linux #266

Closed
cesarblum opened this issue Oct 19, 2015 · 5 comments
Closed

Microsoft.AspNet.Server.KestrelTests failures on CoreCLR on Linux #266

cesarblum opened this issue Oct 19, 2015 · 5 comments

Comments

@cesarblum
Copy link
Contributor

Microsoft.AspNet.Server.KestrelTests.EngineTests.DisconnectingClient(testContext: TestServiceContext { AppLifetime = LifetimeNotImplemented { ApplicationStarted = (throws NotImplementedException), ApplicationStopped = (throws NotImplementedException), ApplicationStopping = (throws NotImplementedException) }, ConnectionFilter = null, DateHeaderValueManager = TestDateHeaderValueManager { }, Log = TestKestrelTrace { }, Memory = MemoryPool { Empty = [...] } }) [FAIL]
  System.PlatformNotSupportedException : Operation is not supported on this platform.
  Stack Trace:
       at System.Net.Sockets.SocketPal.Disconnect(Socket socket, SafeCloseSocket handle, Boolean reuseSocket)
       at System.Net.Sockets.Socket.Disconnect(Boolean reuseSocket)
       at Microsoft.AspNet.Server.KestrelTests.EngineTests.<DisconnectingClient>d__19.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Server.KestrelTests.EngineTests.DisconnectingClient(testContext: TestServiceContext { AppLifetime = LifetimeNotImplemented { ApplicationStarted = (throws NotImplementedException), ApplicationStopped = (throws NotImplementedException), ApplicationStopping = (throws NotImplementedException) }, ConnectionFilter = NoOpConnectionFilter { }, DateHeaderValueManager = TestDateHeaderValueManager { }, Log = TestKestrelTrace { }, Memory = MemoryPool { Empty = [...] } }) [FAIL]
  System.PlatformNotSupportedException : Operation is not supported on this platform.
  Stack Trace:
       at System.Net.Sockets.SocketPal.Disconnect(Socket socket, SafeCloseSocket handle, Boolean reuseSocket)
       at System.Net.Sockets.Socket.Disconnect(Boolean reuseSocket)
       at Microsoft.AspNet.Server.KestrelTests.EngineTests.<DisconnectingClient>d__19.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
@cesarblum
Copy link
Contributor Author

This affects aspnet/Universe#304.

@muratg
Copy link
Contributor

muratg commented Oct 19, 2015

@halter73 This is weird. Do we have another API that we should be using instead? (To make this work on CoreCLR as well?)

@halter73
Copy link
Member

This is the only place we call Socket.Disconnect:

By simply removing the call and letting Dispose disconnect the socket, the test passes on both Windows and Linux.

@muratg
Copy link
Contributor

muratg commented Oct 19, 2015

👍 Let's get that in :)

@muratg
Copy link
Contributor

muratg commented Oct 21, 2015

@halter73 will you be able to check this in with any other PR going in soon?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants