Chris Ricks schrieb:
Hi Sebastian!
Sebastian Werner wrote:
Hi all,
we think there were really great discussions on what features a new
AJAX layer of qooxdoo should have. I have now started to create a new
one, which is based on many ideas of Chris Ricks. Thank you again Chris.
You're all welcome - it was fun. :-)
We have some other ideas added. We want a special request (QxRequest)
and response (QxResponse) object to handle the data between the
different communication layers in qooxdoo. Also we think to have a
queue is great. But we think it is better placed outside the xmlhttp
related stuff. We have done this in our new class QxRequestQueue. This
class create instances of the class QxTransport which handles the
wrapping to the different transport implementations. For example this
could be the classical xmlhttp (QxXmlHttpTransport) or iframes
(QxIframeTransport).
This concept allows us to add new transport implementations easily if
they appear on the horizon.
There are some possibilities of Chris Ricks work missing. Like
timeouts for example. This is something I think should be placed in
QxRequestQueue, too. QxRequestQueue is somewhat basic currently and
does no real queuing.
At present, The QxHttpTransportQueue class will queue requests when
given the right parameters (setting the active limit and queue limit
appropriately).
Additionally, QxHttpTransport does do timeouts - see the addTimeout
method and _pumpTimeouts method.
Yes, I have already took a look on these some days ago but don't
understand the internals completely.
What we need first is a working queue. This queue will handle the number
of simultaneous requests. Also this queue should handle the timeouts.
This means that the queue must also be informed, when a new request was
added to the queue, a request was canceled (currently transferred or
waiting in the queue) or completely done. This allows the queue to make
it possible to have always 3 requests active and the others in the queue.
After this queue is working we should add the timeout features. I want
to really see a working queue before adding the timeouts feature.
I don't think we can use parts of your code. Ideas yes, but complete
parts of your code is nearly impossible as your code combines the logic
of xmlhttp with the queue and timeouts. We want to implement these three
separated.
As I have no more time to work on these classes before the final
release of the next version of qooxdoo, this will be also the versions
of the release. Afterwards we will continue the work. You are all
invited to help. Chris, sorry, I hope I have not dis encouraged you
with our plans and decisions. I would really like it, if you could
help us, to extend and modify the newly existing stuff to your needs.
No problem. :-)
For any further work, please keep the new code more prototype style
and try to omit to send complete full-working classes. We should
really discuss the additions and changes in detail before coding them.
Thanks.
I'll follow the discussion - with any luck the stuff that I've written
should still prove useful.
Useful, always. :)
Best regards,
Sebastian
Best regards,
Chris
Best regards,
Sebastian
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel