Rework bufchain code to allow for variable-sized granules.
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sat, 11 Aug 2012 09:10:31 +0000 (09:10 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sat, 11 Aug 2012 09:10:31 +0000 (09:10 +0000)
commitc780e7e17ee21271e5af951c5b972ae7eed2242a
tree646eb368c504380ca91fec98da6bd0935a89f834
parentc99deca40eecb33ffe93e2290337833afb9493aa
Rework bufchain code to allow for variable-sized granules.
bufchain_add() now allocates at most one new granule.  Granules still
have a minimum size, so small adds still get coalesced.

The main practical consequence of this is that PSCP and PSFTP now
generate 4K SSH packets rather than 512-byte ones.  Also, the compiled
code (on my Ubuntu box) is fractionally smaller.

git-svn-id: svn://svn.tartarus.org/sgt/putty@9602 cda61777-01e9-0310-a592-d414129be87e
misc.c