diff options
Diffstat (limited to 'runtime/transport')
-rw-r--r-- | runtime/transport/ChangeLog | 6 | ||||
-rw-r--r-- | runtime/transport/transport.c | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/runtime/transport/ChangeLog b/runtime/transport/ChangeLog index ee34ef19..263a6bf8 100644 --- a/runtime/transport/ChangeLog +++ b/runtime/transport/ChangeLog @@ -1,3 +1,9 @@ +2007-11-09 Masami Hiramatsu <mhiramat@redhat.com> + + PR3858 + * transport.c (_stp_transport_init): Reduce relay buffer size to + 64KB*2 if -DRELAY_GUEST is specified. + 2007-11-09 Martin Hunt <hunt@redhat.com> PR 5281 * transport.c (_stp_detach, _stp_attach): Call utt_set_overwrite() diff --git a/runtime/transport/transport.c b/runtime/transport/transport.c index 9aa26b79..2904cf2f 100644 --- a/runtime/transport/transport.c +++ b/runtime/transport/transport.c @@ -249,6 +249,12 @@ int _stp_transport_init(void) _stp_uid = current->uid; _stp_gid = current->gid; +#ifdef RELAY_GUEST + /* Guest scripts use relay only for reporting warnings and errors */ + _stp_subbuf_size = 65536; + _stp_nsubbufs = 2; +#endif + if (_stp_bufsize) { unsigned size = _stp_bufsize * 1024 * 1024; _stp_subbuf_size = ((size >> 2) + 1) * 65536; |