java - Why does handshaking fail when I configure my bayeux_browser cookie to be secure? -
i have web application running on jetty, uses cometd long-polling between server , client. when configure bayeux_browser cookie secure constant flood of requests, in following order:
handshake cometd/ connect cometd/
it repeats, , sequence takes 9ms. that's lot of requests flying around every minute. looks handshake returns secure bayeux_browser cookie, it's not being used cometd/ , connect requests. assume not sending secure cookie out on these causing handshake process fail, , try again?
i've configured bayeux_browser secure setting option in applicationcontext config server:
<bean id="bayeuxserver" class="org.cometd.server.bayeuxserverimpl" init-method="start" destroy-method="stop" lazy-init="true"> <property name="options"> <map> <entry key="loglevel" value="0"/> <entry key="timeout" value="15000"/> <entry key="browsercookiesecure" value="true"/> </map> </property> <property name="transports"> <list> <bean id="json" class="org.cometd.server.transport.jsontransport"> <constructor-arg ref="bayeuxserver" /> </bean> </list> </property> </bean>
Comments
Post a Comment