永远的彗星技术吗? [英] Forever Frame comet technique?

查看:83
本文介绍了永远的彗星技术吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以向我解释永久框技术如何工作吗?一个代码示例太棒了!我遍历了所有我可以在Google上找到的资料,但我仍然对它的工作原理一无所知。

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.

推荐答案

简而言之,它使用块编码,这是HTTP / 1.1的功能,旨在完全不同的目的,但是允许服务器无限期地维护与客户端的连接,并随意向客户端发送其他数据。

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.

如迪伦所说:


此技术的延迟很短,因为它通过重新使用单个长期连接来避免HTTP和TCP / IP的建立和拆除。

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.

这篇关于永远的彗星技术吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆