Comment 12 for bug 1709710

Revision history for this message
Galen Charlton (gmc) wrote : Re: OpenSRF Installation Instructions for ejabberd

The following works for me, although it doesn't provide a guarantee that the max stanza size won't be exceeded.

diff --git a/include/opensrf/osrf_app_session.h b/include/opensrf/osrf_app_session.h
index 7ff732b..7e44dcf 100644
--- a/include/opensrf/osrf_app_session.h
+++ b/include/opensrf/osrf_app_session.h
@@ -38,7 +38,7 @@ typedef struct osrf_app_request_struct osrfAppRequest;
 /**
        @brief Default size of output buffer.
 */
-#define OSRF_MSG_BUNDLE_SIZE 25600 /* 25K */
+#define OSRF_MSG_BUNDLE_SIZE 20480 /* 20K */
 #define OSRF_MSG_CHUNK_SIZE (OSRF_MSG_BUNDLE_SIZE * 2)

 /**