[omniORB] Maximum call size?

Laurent Pointal laurent.pointal@lure.u-psud.fr
Fri, 23 Mar 2001 09:51:42 +0100


At 09:31 23/03/2001 +0100, Miguel wrote:
 >
 > Hi!!
 >
 > I have to implement a server that has to return a large amount of data 
in a structure (which can be about 15-20Mb).
 > Is there a maximum call size for omniORB? Will it be better to transmit 
this structure in many steps and not in only one trasmition?

 From OmniORB documentation:

6.5 GIOP Message Size
omniORB sets a limit on the GIOP message size that can be sent or received. The
value can be obtained by calling:
size_t omniORB::MaxMessageSize();
and can be changed by:
void omniORB::MaxMessageSize(size_t newvalue);
or by the command-line option -ORBgiopMaxMsgSize. The exact value is some-what
arbitrary. The reason such a limit exists is to provide some way to protect
the server side from resource exhaustion. Think about the case when the server
receives a rogue GIOP(IIOP) request message that contains a sequence length 
field
set to 2 31 . With a reasonable message size limit, the server can reject 
this rogue
message straight away.

A+

Laurent.

---
Laurent POINTAL - CNRS/LURE - Service Informatique Experiences
Tel/fax: 01 64 46 82 80 / 01 64 46 41 48
email  : laurent.pointal@lure.u-psud.fr  ou laurent.pointal@laposte.net