fix and reenable COMPRESS=DEFLATE
authorArnt Gulbrandsen <arnt@gulbrandsen.priv.no>
Wed, 21 Jan 2015 10:30:00 +0000 (11:30 +0100)
committerArnt Gulbrandsen <arnt@gulbrandsen.priv.no>
Wed, 21 Jan 2015 10:30:00 +0000 (11:30 +0100)
commitcff008560a969152455b1ed5073ed0323fbfbdf1
tree7717ed5b22bc4db24cdb9c7f306d92d6d83f04e1
parentc2500174ee26fca06a55b443724c8fe90d302a58
fix and reenable COMPRESS=DEFLATE

the problem was that zlib's allocated and then used it in ways our
allocator does not allow: mixing pointers and random binary data. if
that's done often enough, sooner or later the allocator will misinterpret
a random number as a pointer and then not free the object "pointed to".

this change leverages the existing fd/thread cleanup.
core/buffer.cpp
core/buffer.h
imap/handlers/capability.cpp
server/connection.cpp