Hi, On Tue, Oct 20, 2015 at 06:39:17PM +0300, Tufan Gürsu wrote: > Hi, > > We want to use zlib to compress/uncompress tcp data between tcp session. > There is only compression code for http but not for tcp.I did some > research and I encountered problem of the lack of chunk size. > Is there any sample or development for this scenario? > We are using stunnel currently. I think it uses high level protocol for > compress and uncompress on top of TCP.
There's nothing planned regarding this and no standard way to achieve it either. Also, using zlib to compress live streams is really not a good idea considering how slow it is compared to more suited algorithms such as LZO, LZ4, zstd, snappy, etc that can be up to 20 times faster. Regards, Willy

