File gsoap-mindeflateratio.diff of Package gsoap

From: Jan Engelhardt <j.engelhardt@zarafa.com>
References: http://sf.net/p/gsoap2/patches/158/

gsoap has a weird "protection": if content is compressed too well,
it is considered evil and dropped.

In gsoap-2.8.22, the MINDEFAULT value was changed from 0.1 to 0.001.
However, the comment above explicitly says the minimum is
0.0009something.

---
 gsoap/stdsoap2.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: gsoap-2.8.28/gsoap/stdsoap2.h
===================================================================
--- gsoap-2.8.28.orig/gsoap/stdsoap2.h
+++ gsoap-2.8.28/gsoap/stdsoap2.h
@@ -1212,7 +1212,7 @@ extern "C" {
    to the limit of 1032:1.
 */
 #ifndef SOAP_MINDEFLATERATIO
-# define SOAP_MINDEFLATERATIO (0.001) /* ratio of deflated/inflated > 0.1% */
+# define SOAP_MINDEFLATERATIO (1.0/1032) /* 0.001 would still reject 1032:1 streams */
 #endif
 
 #ifdef VXWORKS
openSUSE Build Service is sponsored by