Skip to content

Accessing disposed object #8

@haf

Description

@haf
System.ObjectDisposedException was unhandled
  Message=Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.
  Source=System
  ObjectName=System.Net.Sockets.Socket
  StackTrace:
       at System.Net.Sockets.Socket.SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, Object optionValue)
       at System.Net.Sockets.TcpClient.set_LingerState(LingerOption value)
       at RabbitMQ.Client.Impl.SocketFrameHandler_0_9.Close()
       at RabbitMQ.Client.Impl.ConnectionBase.FinishClose()
       at RabbitMQ.Client.Impl.ConnectionBase.HeartbeatWriteLoop()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: 

When having connections open and then terminating the server.

Expected some of the RMQ exceptions to be thrown.

Log messages:

The thread '<No Name>' (0x2cb0) has exited with code 0 (0x0).
A first chance exception of type 'System.IO.EndOfStreamException' occurred in RabbitMQ.Client.dll

Lib version: 2.7.1.

This exception tears down the app domain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions