为什么我本地用xhr-polling方式传输数据没有问题 放到了空间上就各种蛋疼,websocket是没问题的
成功握手,就是取不到数据 握手响应:dPthxeIT4hOQqlzYklMV:60:60:xhr-polling,jsonp-polling
握手后的请求 http://host:8888/socket.io/1/xhr-polling/dPthxeIT4hOQqlzYklMV?t=1355038220437 OK 继续请求,发送事件信息 http://host:8888/socket.io/1/xhr-polling/dPthxeIT4hOQqlzYklMV?t=1355038220662 404 Not found
看了下socket.io-spec 我猜测是这个问题: If the connection is not resumed within the negotiated timeout the socket is considered disconnected. At this point the client might decide to reconnect the socket, which implies a new handshake.
就是传输过久没收到回应,就会重新建立一个连接
这个问题困扰我好几天了,求高手拯救