[omniORB] Max message size? Raw data?

Duncan Grisby dgrisby@uk.research.att.com
Thu, 07 Dec 2000 10:43:17 +0000


On Wednesday 6 December, Jared Peterson wrote:

> Is there a set number for the maximum size of data that can be passed at
> one time by the orb?  For example if I have a method in a servant called
> getData() and that method has the possibilty of handing back a lot of
> info is there a maximum amount?  If there is a max size is there a place
> were I can set this size?  Any tips that anyone can offer would be
> great.  Also if I need to pass just raw data for example if getData()
> needed to return the contents of a .wav file is there a good way to
> handle this?

omniORB does have a maximum message size to protect itself from
malicious GIOP messages. See section 6.5 of the omniORB 3 manual. The
function you need to look at is omniORB::MaxMessageSize(). The default
is set to 2 MB.

The common way to send lots of raw data is with a sequence<octet>.
However, because the ORB has to store the entire sequence in memory,
you may find it better to split your data into bits, and use some sort
of iterator.

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --