[REBOL] Re: about the benchmarks
From: koopmans:itr:ing:nl at: 11-Oct-2001 13:58
This is a common misunderstanding that I'll put in the FAQ.
Polling is done on the client side! It merely checks if all data has arrived
on the client!
What Rugby does:
- You open a deferred request and get a ticket number. This is a non-blocking
, not-buffered port
- Whenever you 'poll' using result-ready? the client reads whatever data is
available, and checks if the message is complete.
If the message is complete, result-available returns false, otherwise true
and you get the result by calling get-result. Put this in an event queue, do
the ordering of the messages correct and you have Gorimnb ;-)
NOTE: you are programming asynchronously which is, well, different. Ask
You can write your own Rugby client that integrates this with a wait on the
fastcgi ports, assembles the data, checks to see if it is complete and
updates the wait list accordingly.