加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Blazeds StreamingAMFChannel max-streaming-connections-per-se

发布时间:2020-12-15 01:09:56 所属栏目:百科 来源:网络整理
导读:如果你在IE(or Firefox)里同时在多个tab来access a? flex application that uses messaging with a streaming AMF connection,就会出现下列error cannot grant streaming connection to FlexClient with id '' because max-streaming-connections-per-sessi

如果你在IE(or Firefox)里同时在多个tab来access a?flex application that uses messaging with a streaming AMF connection,就会出现下列error

cannot grant streaming connection to FlexClient with id '' because max-streaming-connections-per-session limit of '1' has been reached....

注意:在google chrome里不会有这个问题


原因是:By default,BlazeDS uses 1 as the value for max-streaming-connections-per-session. 解决办法是在service-config.xml里修改"max-streaming-connections-per-session" property的设置for Internet Explorer and Firefox.


例:把"max-streaming-connections-per-session" property设置为8

<channel-definition id="my-streaming-amf" class="mx.messaging.channels.StreamingAMFChannel"> ? ??
? ?<endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/streamingamf" class="flex.messaging.endpoints.StreamingAMFEndpoint"/> ? ??
? ? ? ? ?<properties> ? ??
? ? ? ? ? ? ? ?<idle-timeout-minutes>0</idle-timeout-minutes> ? ??
? ? ? ? ? ? ? ?<max-streaming-clients>10</max-streaming-clients> ? ??
? ? ? ? ? ? ? ?<server-to-client-heartbeat-millis>5000</server-to-client-heartbeat-millis> ? ??
? ? ? ? ? ? ? ?<user-agent-settings> ? ?
? ? ? ? ? ? ? ? ? ? ? ? <user-agent match-on="MSIE" kickstart-bytes="2048" max-streaming-connections-per-session="8"/> ? ? ? ? ? ? ? ? ? ? ? ? ? ?<user-agent match-on="Firefox" kickstart-bytes="2048" max-streaming-connections-per-session="8"/> ? ? ? ? ? ? ? ? ? ?</user-agent-settings> ? ? ? ? ? ? </properties> </channel-definition>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读