atmosphere icon indicating copy to clipboard operation
atmosphere copied to clipboard

404 url results in infinite requests to the server

Open hapali opened this issue 13 years ago • 0 comments

atmosphere.js 1.0.5

request.url = "/this-url-is-not-correct"; // you get 404 request.maxReconnectOnClose = 10;

Invoking executeWebSocket jquery.atmosphere.js:2419 Using URL: ws://localhost:8080//this-url-is-not-correct?X-Atmosphere-tracking-id=043db9a6-5453-5d76-48c6-453eb408856f&X-Atmosphere-Framework=1.0.5&X-Atmosphere-Transport=websocket&X-Cache-Date=0&Content-Type=application/json Unexpected response code: 404 Websocket closed, reason: Connection was closed abnormally (that is, with no close frame being sent). Websocket closed, wasClean: false Connection closed websocket Websocket failed. Downgrading to Comet and resending

infinite part:

GET http://localhost:8080/this-url-is-not-correct?X-Atmosphere-tracking-id=043db9a6-5453-5d76-48c6-453eb408856f&X-Atmosphere-Framework=1.0.5&X-Atmosphere-Transport=streaming&X-Cache-Date=0&Content-Type=application/json&_=1355231826317

Same thing when transport is streaming and you shutdown the server

hapali avatar Dec 11 '12 13:12 hapali