On Apr 10, 2006, at 2:10 PM, Thomas Wang wrote:
> In the Hessian spec, the header string and method string seems to have
> a length limit. Is the limit 65535 characters?
Yes. Although, it's only the header key. The value isn't limited.
> What if the data is above the limit?
That would be implementation dependent.
> Does the data gets truncated, or is an exception
> thrown? In the Java implementation, it just seems to generate
> an invalid too long stream.
Well, that's not really a typical case. It would be pretty hard to
use a method that had more than 64k characters in its name. :)
> In the Java implementation, string and binary data has maximum
> chunk size of 32768 bytes; even though the maximum could have
> been set at 65535 bytes. Anyone who know the reason; is it
> to fit within a datagram packet?
It's more to make buffering easier. 32k chunks are a nice power of 2.
The datagram/udp idea is an interesting one I've meant to think about
more.
-- Scott
>
> Regards,
> Thomas Wang
>
>
>
Received on Mon 10 Apr 2006 14:20:24 -0700
This archive was generated by hypermail 2.1.8 : Thu Sep 28 2006 - 20:16:41 PDT