html5 websockets会被防火墙瘫痪吗? [英] Will html5 websockets be crippled by firewalls?

查看:128
本文介绍了html5 websockets会被防火墙瘫痪吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对html5的websockets规范感到非常兴奋,但我有一个问题。

I'm extremely excited about html5's websockets spec but I have a concern.

现在每个人都在某些网络上运行,有路由器(有线/无线)内置防火墙的Windows也有内置的防火墙。

These days everyone is operating off of some network, with routers (wired/wireless) that have built in firewalls, windows has a built in firewall too.

考虑到这一点,当服务器尝试连接回启动websocket握手的浏览器时,绝大多数用户都会失败吗? (大多数人都不知道如何在他们的路由器上设置端口转发)

With that in mind when the server attempts to connect back to the browser that started the websocket handshake will it fail for the vast majority of users? (most people have no idea how to set up port forwarding on their routers)

或者我的想法是不正确的,它会很好吗?

Or is my thinking incorrect and it will go through fine?

推荐答案

我不是专家(所以请检查确认)但我相信会有一个UPGRADE机制,可以建立常规的HTTP连接,然后升级到WebSocket,因此除非他们正在进行积极的应用程序级别数据包检查,否则没有现有的防火墙规则会干浏览器仍然会启动连接。

I'm not an expert (so please check to confirm) but I believe there will be an UPGRADE mechanism where a regular HTTP connection can be made, then upgraded to a WebSocket, so no existing firewall rules interfere unless they are doing aggressive application level packet inspection. Connections are still initiated by the browser.

这篇关于html5 websockets会被防火墙瘫痪吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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