Forever Frame comet technique?

心已入冬 提交于 2019-12-19 08:18:07

问题


Can someone please explain me how the "Forever Frame" technique works ? A code example would be awesome! I went through all the material i could find in Google but i still don`t have much of an idea how it works.


回答1:


Dylan Schiemann gives a great explanation.

In short, it uses "chunked encoding", a feature of HTTP/1.1 intended for an entirely different purpose, but which allows the server to maintain a connection to the client indefinitely, sending additional data to the client at will.

As Dylan says :

This technique is very low-latency because it avoids HTTP and TCP/IP set-up and tear-down by reusing a single long-lived connection.

http://cometdaily.com/2007/11/05/the-forever-frame-technique/

The rest of his article is well worth a read.



来源:https://stackoverflow.com/questions/21985642/forever-frame-comet-technique

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!