[omniORB] Calculating the message size of a response

Floris Bruynooghe floris.bruynooghe at gmail.com
Mon Jan 4 21:19:25 GMT 2010


Hi

When the giopMaxMsgSize is exceeded the server code never knows this
and the client code just gets a COMM_FAILURE instead of a more
meaningful error.

Is it somehow possible to calculate the size of a message before
sending it on the server side?  Basically perform the marshalling
(from within python) and check the result so you could decide to raise
a custom exception which is more specific.  (Bonus points for then
being able to send this already marshalled data instead of having to
repeat that)

Thanks
Floris

-- 
Debian GNU/Linux -- The Power of Freedom
www.debian.org | www.gnu.org | www.kernel.org



More information about the omniORB-list mailing list