default max bundle size == 25K
default max chunk size == 50K
Note with Ejabberd using 65536 as the default max stanza size, these
new OpenSRF defaults mean that all messages will fit the default
message size constraints -- i.e. no more need to raise the
max_stanza_size.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
typedef struct osrf_app_request_struct osrfAppRequest;
#define OSRF_REQUEST_HASH_SIZE 64
-#define OSRF_MSG_CHUNK_SIZE 104858 /* 0.1 MB */
+
+/**
+ @brief Default size of output buffer.
+*/
+#define OSRF_MSG_BUNDLE_SIZE 25600 /* 25K */
+#define OSRF_MSG_CHUNK_SIZE (OSRF_MSG_BUNDLE_SIZE * 2)
/**
@brief Representation of a session with another application.
/*@}*/
/**
- @brief Default size of output buffer.
-*/
-#define OSRF_MSG_BUNDLE_SIZE 10240
-
-/**
@brief Represent an Application.
*/
typedef struct {
my $self = shift;
return 0 unless ref($self);
return $self->{max_bundle_size} if (defined($self->{max_bundle_size}));
- return 10240;
+ return 25600; # 25K
}
sub max_bundle_count {
my $self = shift;
return 0 unless ref($self);
return $self->{max_chunk_size} if (defined($self->{max_chunk_size}));
- return 104858; # 1/10 MB
+ return $self->max_bundle_size * 2;
}
sub api_name {