Re: maxbufsize
Lee Meng <[email protected]> Mon, 2 Nov 2009 09:59:52 +0800
| Newsgroups | gmane.comp.security.zebedee.general |
|---|---|
| Message-ID | <[email protected]> |
The default maxbufsize is 8192 bytes. Thanks Tom and Tim for the
reminder. I haven't had Zebedee crash, but I have been experiencing
occasional disconnects. My maxbufsize is set to 16383 (probably copied
from another template). I'm going to try 8192 or less.
>From the v2.5.3 documentation:
maxbufsize
This specifies the size, in bytes, of the buffer Zebedee will use
to read data from applications. The actual size of buffer used will be
the minimum of the client=92s and server=92s values.
By default Zebedee attempts to read data from the client or server
programs at each end of the tunnel in chunks of 8192 bytes. There may
be occasions when you want to decrease this if, for example, you have
a highly interactive application and the response seems sluggish
because you end up waiting for large data transfers. You can reduce
the buffer size to one byte, but unless you are trying to debug
misbehaviour or have time to waste I don=92t recommend it! Conversely,
you may increase the buffer size up to a maximum of 16383 bytes to
attempt to gain the most from data compression where large blocks of
data are being transferred. Note that the maxbufsize value does not
affect how much memory is allocated by Zebedee, only the size of data
chunks read.
When running in UDP mode this buffer size will also affect the
maximum size of any datagram that can be handled. Datagrams larger
than the current buffer size will be fragmented, which will likely
cause whatever application is consuming them to fail. Datagrams larger
than 16383 bytes can not be handled at all.
- Lemming
---------------------------------------------------------------------------=
---
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay =
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference