MOO-cows Mailing List Archive
overflow output buffer
A short while ago, I wrote:
You need to control the connection by doing 2 things:
1. Make sure that you don't overflow the output buffer by using the
new notify behavior.
The way to do this is using a construct like
8: while (!notify(this, args, 1))
which keeps trying until successful to place a line in the output buffer.
Making the buffer be bigger, by editing options.h (or whatever) will not
be a robust solution.
The problem with this code though is that it suspends, thus breaking any
atomicity you may have been counting on. If this turns out to be a problem,
you may want to rethink the design of large atomic tasks.
Subject Index |