Code Monkey home page Code Monkey logo

Comments (4)

jilieryuyi avatar jilieryuyi commented on June 9, 2024

time_wait是正常的tcp状态,服务端主动关闭之后会进入time_wait状态,原因在于需要等待关闭握手完成或者发送完缓冲区内的数据,直到超时。这个过多需要服务器调优,具体如:http://blog.csdn.net/cheng_fangang/article/details/49778161

from wing-binlog-go.

mia0x75 avatar mia0x75 commented on June 9, 2024

原因我知道,我意思是否可以通过长连啊,或者KeepAlive等做优化。每个TIME_WAIT都有三次握手吧?

from wing-binlog-go.

jilieryuyi avatar jilieryuyi commented on June 9, 2024

这个我再找时间测试一下看看怎么优化一下

from wing-binlog-go.

mia0x75 avatar mia0x75 commented on June 9, 2024

keep-alive之后看上去好很多,继续观察一段事件。

from wing-binlog-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.