Mantis - Resin
Viewing Issue Advanced Details
3832 minor always 12-30-09 05:12 03-31-10 16:50
anton_kg  
ferg  
normal  
closed 4.0.2  
fixed  
none    
none 4.0.6  
0003832: websocket does not work with <POLICY-FILE-REQUEST/>
Hi, I'm trying to run websocket protocol with unsupported browsers via web_socket.js
(http://github.com/gimite/web-socket-js/raw/master/web_socket.js) [^]
They use adobe flash for that to workaround the implementation and as a part of flash protocol it should send policy request.
I've tried to add
<protocol port="8080" type="com.caucho.protocols.flash.SocketPolicyProtocol">
  <init>
    <socket-policy-file>/socketpolicy.xml</socket-policy-file>
  </init>
</protocol>
section but it didn't work.

Do you think it make sense to fix it even it's not a part of the specification?

Thank you.
The preferred configuration (CanDI-based) now looks like:

<server id="">
<listen address="*" port="8080">
  <flash:SocketPolicyProtocol
     xmlns:flash="urn:java:com.caucho.protocols.flash">
    <policy-file>/test.policy</policy-file>
  </flash:SocketPolicyProtocol>
</listen>
</server>

Notes
(0004510)
ferg   
03-31-10 16:50   
server/3212