]> git.evergreen-ils.org Git - OpenSRF.git/commit - src/libopensrf/osrf_application.c
Provide a way for a service to set the effective buffer size for a
authorscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 10 Aug 2010 02:13:39 +0000 (02:13 +0000)
committerscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 10 Aug 2010 02:13:39 +0000 (02:13 +0000)
commit98e25aee3515ef008484add1f168f97999f7b598
treee953c517eeae7e6235e063af3962c27541ed2718
parent63f6d0b2112b678f2b2f94e6aa195251c94c8561
Provide a way for a service to set the effective buffer size for a
specified method.

Non-atomic methods accumulate RESULT messages into a buffer, from which
they are flushed when the buffer is about to overflow, or when the
closing STATUS message is issued.

The new osrfMethodSetBufferSize() function allows the service to favor
large buffers (for greater throughput) or small ones (for a lower
latency for the first response).

Since the buffersize is not an absolute limit, the effective buffer
size may be set to zero, in which case each RESULT message will be
packaged and sent in a separate XMPP message as soon as it is ready.

Changing the buffer size has no effect on an atomic method, nor on a
method that returns only one RESULT message.

M    include/opensrf/osrf_application.h
M    src/libopensrf/osrf_application.c

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1993 9efc2488-bf62-4759-914b-345cdb29e865
include/opensrf/osrf_application.h
src/libopensrf/osrf_application.c