Customer had load average on a bkd machine skyrocket, with many zombie processes and stale reader locks. The problem was found to be a user who was running clone in a script (Eclipse Hudson bk plugin) and the script was failing because of license not accepted.  The client would bail, but the server finished sending the clone to a dead connection.
Customer had load average on a bkd machine skyrocket,
with many zombie processes and stale reader locks.
The problem was found to be a user who was running clone
in a script (Eclipse Hudson bk plugin) and the script was
failing because of license not accepted.  The client would
bail, but the server finished sending the clone to a dead
connection.

With this fix, the bkd exits if it sees the connection is dead.
No litter accumulates.

It works by exiting in the callback used by the gzipper
to send a compressed stream in the protocol.

bk: 48e256cb1P7k03xV8IHnsWX2ydGmOg
bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper,bitkeeper-scm/bitkeeper