Skip to content

AsyncSocketAcceptor无法监听客户端的连接请求 #19

@Linner1987

Description

@Linner1987

服务端使用AsyncSocketAcceptor监听端口时,在IMessageDecoder.Decode方法中出现
"Mina.Core.Buffer.BufferUnderflowException: 引发类型为“Mina.Core.Buffer.BufferUnderflowException”的异常。 在 Mina.Core.Buffer.Buffer.NextGetIndex(Int32 nb) 在 Mina.Core.Buffer.AbstractIoBuffer.GetInt32() 。"的错误,该错误发生时有用catch{}try{}捕捉处理该异常。但是新的客户端请求连接的时候服务端无法监听到,客户端返回"System.Net.SocketException(0x80004005):由于目标计算机积极拒绝,无法连接。"的错误。
观察服务端端口状态为Listening,重启服务端后客户端即可正常连接服务端。
请问该如何解决这个问题?谢谢!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions