[Spread-users] queue of SP_receive() ?
Daniel Rall
dlr at finemaltcoding.com
Fri Sep 27 11:40:23 EDT 2002
Jan Rickes <jan.rickes at neofonie.de> writes:
> hello,
>
> I've got a question about the "queue" of the SP_receive() function?
>
> How big is that queue if any?
>
> And is it possible to set a value for it?
>
>
> thanx in advanced...
I don't know whether the client side has a queue, but if you're
talking about the queue on the daemon side, you can set the
MAX_SESSION_MESSAGES compile-time define as follows:
Index: spread_params.h
===================================================================
RCS file: /storage/cvsroot/spread/daemon/spread_params.h,v
retrieving revision 1.6
diff -u -u -r1.6 spread_params.h
--- spread_params.h 22 Sep 2002 02:56:52 -0000 1.6
+++ spread_params.h 27 Sep 2002 15:38:55 -0000
@@ -75,7 +75,7 @@
#include "sp_events.h"
#define MAX_SESSIONS ( ( MAX_FD_EVENTS-5 ) / 2 ) /* reserves 2 for each connection */
-#define MAX_SESSION_MESSAGES 1000
+#define MAX_SESSION_MESSAGES 5000
#define MAX_GROUPS_PER_MESSAGE 100 /* Each multicast can't send to more groups then this */
#endif /* INC_SPREAD_PARAMS */
BTW, is there an easier way to do this with the new autoconf patches?
--
Daniel Rall <dlr at finemaltcoding.com>
More information about the Spread-users
mailing list