On Sun, May 22, 2011 at 5:10 PM, Dhruv Matani <[email protected]> wrote:
> Exactly my point! So, keeping the 2 (request & response IDs) together
> doesn't really help simplify the code (since out-of-order
> re-construction needs to be performed in either case) and "keeping a
> queue of sent requests, and reading responses from sockets in the same
> order you made requests" won't quite be the right thing to do. There
> is still post-processing to be done in either situation.

It doesn't simplify the code *for async clients*, like XHR.  (It
doesn't complicate them, either.)  Keeping a queue of requests is how
synchronous clients work, and it's a huge simplification.  See jbosh,
for example.

-- 
Glenn Maynard

Reply via email to