服务器套接字挂在CLOSE_WAIT [英] Server Socket hangs in Close_Wait

查看:213
本文介绍了服务器套接字挂在CLOSE_WAIT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该场景如下:结果
我从我的C#应用​​程序服务器发送大量数据的客户结果
突然间的数据流的停止,在没有客户端的数据更新。侧和港口被封锁。



当这种情况发生时,在服务器侧的症状是



<醇>
  • CLOSE_WAIT在该端口(netstat的)

  • 操作会阻塞(错误代码:135)。在登录

  • 无法使来自客户端的新连接

  • 远程登录失败端口



  • 目前我们重启每当出现问题的服务器。显然,这不是一个解决方案。



    有人能提供卡在CLOSE_WAIT在Windows Server 2008服务器插槽的解决方案?
    任何建议此方案将衷心感谢。



    在此先感谢。


    解决方案

    CLOSE_WAIT意味着对已关闭连接和TCP正在等待本地应用程序关闭套接字。



    所以关闭它。


    The scenario is the following:
    I am sending bulk of data to clients from my C# Server Application.
    All of a sudden Data flow stopped, No data Update in Client Side and the port gets blocked.

    When this occurs, the Server side symptoms are

    1. Close_Wait in that port (netstat)
    2. Operation Would block (Error code : 135) in Log.
    3. Unable to make a new Connection from client.
    4. Telnet Fails to that Port

    Currently we restart the server whenever the issue arise. Obviously this is not a solution.

    Can someone offer a solution for Server socket stuck in Close_Wait in windows server 2008? Any suggestion for this scenario would be appreciated gratefully.

    Thanks in Advance.

    解决方案

    CLOSE_WAIT means the peer has closed the connection and TCP is waiting for the local application to close the socket.

    So close it.

    这篇关于服务器套接字挂在CLOSE_WAIT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆