Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XDomain doesn't give up waiting for an iframe to respond #190

Open
sqrter opened this issue Jul 5, 2016 · 0 comments
Open

XDomain doesn't give up waiting for an iframe to respond #190

sqrter opened this issue Jul 5, 2016 · 0 comments

Comments

@sqrter
Copy link

sqrter commented Jul 5, 2016

The wiki says that timeout is the

Number of milliseconds until XDomains gives up waiting for an iframe to respond

The problem is that even if I set up timeout XDomains raises 'timeout' event and continues connecting.
Here is my setup:

<script>//if xdomain.min.js emits timeout event we should check local storage
  xdomain.timeout = 1e3;
  xdomain.debug = true;
  xdomain.on('timeout', function (e) {
     //some code
  })</script> 

Here is the browser console output:

xdomain.min.js:3 Mixed Content: The page at 'https://env-123.appengine.flow.ch/#/login' was loaded over HTTPS, but requested an insecure resource 'http://www.somesite.com/proxy.html'. 
This request has been blocked; the content must be served over HTTPS.n @ xdomain.min.js:3(anonymous function) @ xdomain.min.js:3g @ xdomain.min.js:3k.send @ xdomain.min.js:3send @ vendor.19101bd1.js:4ajax 
@ vendor.19101bd1.js:4(anonymous function) @ scripts.e70f4010.js:1ajax @ scripts.e70f4010.js:1getJSON @ scripts.e70f4010.js:1InsurerKVG.updateRatings @ scripts.e70f4010.js:2(anonymous function) @ scripts.e70f4010.js:3
2016-07-05 14:22:24.007 xdomain.min.js:3 xdomain (https://env-123.appengine.flow.ch): Timeout waiting on iframe socket
2016-07-05 14:22:24.023 xdomain.min.js:3 xdomain (https://env-123.appengine.flow.ch): proxying request to slave: 'http://www.swupp.ch'
2016-07-05 14:22:24.024 xdomain.min.js:3 xdomain (https://env-123.appengine.flow.ch): new socket: xdomain-591e2fd7
2016-07-05 14:22:25.034 xdomain.min.js:3 xdomain (https://env-123.appengine.flow.ch): Timeout waiting on iframe socket
2016-07-05 14:22:25.036 xdomain.min.js:3 xdomain (https://env-123.appengine.flow.ch): proxying request to slave: 'http://www.swupp.ch'
2016-07-05 14:22:25.037 xdomain.min.js:3 xdomain (https://env-123.appengine.flow.ch): new socket: xdomain-2ce86dc8
2016-07-05 14:22:26.046 xdomain.min.js:3 xdomain (https://env-123.appengine.flow.ch): Timeout waiting on iframe socket
2016-07-05 14:22:26.049 xdomain.min.js:3 xdomain (https://env-123.appengine.flow.ch): proxying request to slave: 'http://www.swupp.ch'
2016-07-05 14:22:26.050 xdomain.min.js:3 xdomain (https://env-123.appengine.flow.ch): new socket: xdomain-88768566
2016-07-05 14:22:27.062 xdomain.min.js:3 xdomain (https://env-123.appengine.flow.ch): Timeout waiting on iframe socket
2016-07-05 14:22:27.064 xdomain.min.js:3 xdomain (https://env-123.appengine.flow.ch): proxying request to slave: 'http://www.swupp.ch'
2016-07-05 14:22:27.067 xdomain.min.js:3 xdomain (https://env-123.appengine.flow.ch): new socket: xdomain-c2c11ab4
2016-07-05 14:22:28.077 xdomain.min.js:3 xdomain (https://env-123.appengine.flow.ch): Timeout waiting on iframe socket
2016-07-05 14:22:28.079 xdomain.min.js:3 xdomain (https://env-123.appengine.flow.ch): proxying request to slave: 'http://www.swupp.ch'
2016-07-05 14:22:28.080 xdomain.min.js:3 xdomain (https://env-123.appengine.flow.ch): new socket: xdomain-c9c4cbd2
2016-07-05 14:22:29.090 xdomain.min.js:3 xdomain (https://env-123.appengine.flow.ch): Timeout waiting on iframe socket
2016-07-05 14:22:29.092 xdomain.min.js:3 xdomain (https://env-123.appengine.flow.ch): proxying request to slave: 'http://www.swupp.ch'
2016-07-05 14:22:29.093 xdomain.min.js:3 xdomain (https://env-123.appengine.flow.ch): new socket: xdomain-ca0fd17c

Looks like timeout is actually the "reconnect timeout"? How can I disable reconnecting all the time?

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant