[omniORB] Re: Question on omniORB configuration.......

Duncan Grisby duncan@grisby.org
Thu Feb 13 14:23:02 2003


On Thursday 13 February, steinhoffc@schneider.com wrote:

>      We have an application that can send back large amounts of data (over
> 2 megs) and I am looking for some insight on one of the parameter settings
> in the omniORB.cfg file, "giopMaxMsgSize". We currently have to run with
> GIOP 1.0 (due to a limitation with in our environment) so the
> "giopMaxMsgSize" is used as a limiting factor for our message size.
> Currently "giopMaxMsgSize" is set to 2 megs and this causes the application
> with the large return set to fail. We are thinking about bumping the
> parameter up to accommodate the larger size, but I am wondering what effect
> that will have on the processing.
> 
> If I raise that parameter, will it effect the processing of the smaller
> messages or is it just a gate keeper to stop large messages from going
> through???

The parameter is purely a safety measure to prevent accidental or
malicious transmission of huge quantities of data. Increasing the
limit will not affect the transmission of small messages in any way.

The parameter is most useful to protect the receiver of a message from
getting a message that claims to have an extremely large size, causing
the receiver to try to allocate a huge buffer to accommodate it. It's
also useful on the sending side to prevent a bug from trying to send a
sequence or string that hasn't been properly initialised, making it
look huge.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan@grisby.org     --
   -- http://www.grisby.org --