bzr serve leaves connections in CLOSE_WAIT a *long* time
Bug #164288 reported by
Andrew Cowie
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
Unassigned |
Bug Description
We have a bzr:// server running to serve our developers round the world, and Bazaar does not appear to be closing its connections properly. That's Bad (tm).
I only noticed because (obviously) we otherwise get low traffic to the server in question so the CLOSE_WAIT on port 4155 really stands out.
AfC
Changed in bzr: | |
status: | Confirmed → Fix Committed |
Changed in bzr: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
http:// www.sunmanagers .org/pipermail/ summaries/ 2006-January/ 007068. html says:
"""CLOSE_WAIT means that the local end of the connection has received
a FIN from the other end, but the OS is waiting for the program at the
local end to actually close its connection.
The problem is your program running on the local machine is not closing
the socket. It is not a TCP tuning issue. A connection can (and quite
correctly) stay in CLOSE_WAIT forever while the program holds the
connection open.
Once the local program closes the socket, the OS can send the FIN to
the remote end which transitions you to LAST_ACK while you wait for
the ACK of the FIN. Once that is received, the connection is finished
and drops from the connection table (if you're end is in CLOSE_WAIT
you do _not_ end up in the TIME_WAIT state)."""