Hello, Tom,
> I am trying to build a network server that can take various requests
> from different clients, divide then into slices and process the
> slices on a first come/first served basis but im having difficulty
> with it. I am using an IO event watcher to check for new data on the
> socket and using a VAR watcher to monitor a variable that is
> modified when a new slice is created. Unfortunately, when it is
> processing the slices it seems to completely ignore the IO watcher.
> It is as if the IO watcher doesnt get a look in while the VAR
> watcher is at work. I have tried various priorities but without
> success.
honestly spoken, I neither know this problem nor its solution. This
needs to be investigated (and fixed if necessary). But possibly
there's a quick solution. Possibly you can achieve what you want
without this var watcher?
As I understand, the idea is that the connection request is handled by
an io watcher, which sets a variable, which causes the var watcher to
do whatever should be done for this slice.
In this scenario, I suggest to use an idle watcher to check for open
orders (e.g. to check your flags) and to handle them. It would be
invoked more often than a var watcher mentioned above, but that's no
problem and is proved to work.
Jochen