我用于提供Flash策略文件的一个简单的TCP服务器导致了这一问题。我现在可以使用处理程序来捕获错误:
# serving the flash policy filenet = require("net")net.createServer((socket) => //just added socket.on("error", (err) => console.log("Caught flash policy server socket error: ") console.log(err.stack) ) socket.write("<?xml version="1.0"?>n") socket.write("<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">n") socket.write("<cross-domain-policy>n") socket.write("<allow-access-from domain="*" to-ports="*"/>n") socket.write("</cross-domain-policy>n") socket.end()).listen(843)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)