admin管理员组文章数量:1406950
I've got this JS application. All client side JS municating with a third party stream server via web sockets. I have about 18 different web sockets open for one page. Firefox and Chrome handle this many open web sockets at once just fine. IE11 seems to have a limitation of 4 open web sockets at once. Once I open that 5th web socket, regardless of socket call to the third-party server, I get an error thrown by IE, which closes the socket and gives the general error "SecurityError" and expanding the proto section it gives me . Seems to be pretty generic errors from my searches. At first I thought there may be a trusted zone type issue with IE, but I've added the client site to my trusted zone as well as the server providing the data.
This post provides info on max number of websockets for Firefox & Chrome, but I don't see anything specific about IE. Are there any known limitations to IE and web sockets? Answered, see edit below.
This MDN site talks about increasing the max value, but again, I can't find anything about IE. Is there some IE setting to up the amount of open connections? Answered: see below edit.
EDIT: This site shows the max connections settings for IE. It looks like it's a registry setting in Windows that controls the amount of web socket connections. Interestingly enough, I don't have that registry Key anywhere, but there is still a limit for this. The page speaks of IE10, and I'm working with IE11 specifically. Does anyone know if there are registry settings for this in regards to IE11? Has anyone just added these feature web socket registry keys and solved this issue?
I've got this JS application. All client side JS municating with a third party stream server via web sockets. I have about 18 different web sockets open for one page. Firefox and Chrome handle this many open web sockets at once just fine. IE11 seems to have a limitation of 4 open web sockets at once. Once I open that 5th web socket, regardless of socket call to the third-party server, I get an error thrown by IE, which closes the socket and gives the general error "SecurityError" and expanding the proto section it gives me . Seems to be pretty generic errors from my searches. At first I thought there may be a trusted zone type issue with IE, but I've added the client site to my trusted zone as well as the server providing the data.
This post provides info on max number of websockets for Firefox & Chrome, but I don't see anything specific about IE. Are there any known limitations to IE and web sockets? Answered, see edit below.
This MDN site talks about increasing the max value, but again, I can't find anything about IE. Is there some IE setting to up the amount of open connections? Answered: see below edit.
EDIT: This site shows the max connections settings for IE. It looks like it's a registry setting in Windows that controls the amount of web socket connections. Interestingly enough, I don't have that registry Key anywhere, but there is still a limit for this. The page speaks of IE10, and I'm working with IE11 specifically. Does anyone know if there are registry settings for this in regards to IE11? Has anyone just added these feature web socket registry keys and solved this issue?
Share Improve this question edited May 23, 2017 at 12:34 CommunityBot 11 silver badge asked May 16, 2014 at 15:47 ElrondElrond 4551 gold badge5 silver badges14 bronze badges 6- 2 18 sockets talking to the same server? Seriously? – Bergi Commented May 16, 2014 at 17:22
- Try the IE10 registry key. If the registry key isn't set it might simply mean "use default value" .. (although that page looks specific to the Web Browser Control.) – user2864740 Commented May 16, 2014 at 17:36
- 2 @Bergi - Huh, that was a constructive ment. Yeah, 18. Forced to based on the Third-Party provider's implementation - a stream of data based on a query and the page has multiple controls each with a unique query. It's actually faster having multiple sockets per control instead of crunching one massive data chunk into different ways for the control. Not sure why it seems wonky as all browsers support a max of a couple hundred. Is it because it's the same server that's freaking folks out? Are you going to tell me how I should rethink the architecture rather than answering the question? – Elrond Commented May 16, 2014 at 18:33
- @user2864740 - Yeah, I tried it and it did not resolve anything. It does look like it's specific to someones app - the web browser control. If you can adjust this limit in your code for an app, there must be some way to adjust it for the browser specifically and have it apply to whatever page it serves up. – Elrond Commented May 16, 2014 at 18:39
- 1 @Elrond: Yeah, I'd guess using only one connection would be better, multiplexing the query streams into a single one. OK, if this is a Third-Party implementation you can't do much about it. And the question you asked is fine as a standalone anyway. – Bergi Commented May 17, 2014 at 4:52
2 Answers
Reset to default 2The MSDN documentation you referenced is clear on the default being 6 concurrent connections (which means if not specified in the registry, that's what you'll get); and, if the documentation doesn't specify differently, it's probably safe to assume newer versions of Internet Explorer act in the same way as version 10.
Try setting through group policy. It worked for me.
https://jwebsocket/documentation/reference-guide/internet-explorer-tips
本文标签: javascriptConfiguring maximum number of simultaneous open WebSockets (in IE)Stack Overflow
版权声明:本文标题:javascript - Configuring maximum number of simultaneous open WebSockets (in IE) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744954912a2634296.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论