Hello.
I have installed stunnel 4.09 both as client (on my computer) and as server (on server). Both has zlib compression enabled and I can see that zlib initializes properly in the logs (it says "Compression enabled using zlib method"). But when I send any data over that tunnel I can't see any signs of compression - amount of traffic is almost the same as over plain connection.
Am I doing something wrong? Or I'm misunderstanding the purpose of this compression ability? And if the traffic indeed must be reduced - why I can't see that and how can I make it work properly?
Thank you for your answers.
Best Regards, Oleg Ivanov.
-- Oleg Ivanov mailto: saruman@unigsm.com
Oleg,
I have installed stunnel 4.09 both as client (on my computer) and as server (on server). Both has zlib compression enabled and I can see that zlib initializes properly in the logs (it says "Compression enabled using zlib method"). But when I send any data over that tunnel I can't see any signs of compression - amount of traffic is almost the same as over plain connection.
1. How did you measure the traffic? Stunnel only reports the application data, not the encrypted/compressed data that is actually sent to a socket.
2. Can your data be compressed? For example gif/jpeg/avi/mpeg usually can't be compressed.
Best regards, Mike
Michal Trojnara wrote:
Oleg,
- How did you measure the traffic?
Stunnel only reports the application data, not the
encrypted/compressed data
that is actually sent to a socket.
I've used trafshow to see the actual data sent through network interface.
- Can your data be compressed?
For example gif/jpeg/avi/mpeg usually can't be compressed.
Sure, I've made stunneled connection between my mail client and SMTP on server and sent through it e-mail with big text attachments. For example, if gzipped this email becomes 10 times smaller.
Best Regards, Oleg Ivanov.
-- Oleg Ivanov mailto: saruman@unigsm.com