]> Sergey Matveev's repositories - public-inbox.git/commit
ds: simplify write buffer accounting
authorEric Wong <e@80x24.org>
Mon, 10 Jun 2019 01:33:30 +0000 (01:33 +0000)
committerEric Wong <e@80x24.org>
Mon, 10 Jun 2019 05:05:15 +0000 (05:05 +0000)
commit42bb1574bf35a18f037d4ca8b0e6696192d301df
tree14a78099c015262e38323d8a0ca82e64bf7bebc4
parentc44825f8b2f3d57f6aca29d75516db8712261954
ds: simplify write buffer accounting

Keeping track of write_buf_size was redundant and pointless when
we can simply check the number of elements in the buffer array.
Multiple sources of truth leads to confusion; confusion leads to
bugs.

Finally, rename the prefixes to 'wbuf' to ensure we loudly
(instead of silently) break any external dependencies being
ported over from Danga::Socket, as further changes are pending.
lib/PublicInbox/DS.pm
lib/PublicInbox/HTTP.pm
lib/PublicInbox/HTTPD/Async.pm
lib/PublicInbox/NNTP.pm