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

Internet Connection Keep Loss #17

Closed
billionssg opened this issue May 10, 2019 · 7 comments
Closed

Internet Connection Keep Loss #17

billionssg opened this issue May 10, 2019 · 7 comments

Comments

@billionssg
Copy link

Here is the step:

  • Set my iPad network to 100% Loss
  • Wait it about 45 minutes.
  • Turn off 100% Loss (Bring back network to normal)

It keep hit https://www.apple.com/library/test/success.html with timeout result (it supposed to be 200 OK). But if I wait about 2 minutes, the network is back to normal.

Any idea?

@rwbutler
Copy link
Owner

Could you provide a little more information to help diagnose the problem, could I ask:

  • Are you experiencing this on the simulator or a physical device?
  • How are you simulating packet loss?

Thanks in advance.

@billionssg
Copy link
Author

billionssg commented May 10, 2019

  1. I am experiencing this on physical device

  2. I am simulating my packet loss by using Network Link Conditioner. Here is the screenshot:
    IMG_0016

thx for reply

@rwbutler
Copy link
Owner

Thanks for the info - I'll investigate. One more question, are you using the default settings?

@billionssg
Copy link
Author

yes, I am using default settings. I have tried with 4 iPads and all of them are affected

@billionssg
Copy link
Author

billionssg commented May 13, 2019

hi @rwbutler,

is there any update?

for your additional information I am using connectivity.isPollingEnabled = true

@rwbutler
Copy link
Owner

I tried to replicate your experiment this morning using an iPad running the example app that comes with the library and enabling polling. If I use the Network Link Conditioner to simulate 100% packet loss for half an hour then switch to 3G simulation the example app does detect the availability of Internet access. Could I ask are you using example app for your experiment? If you are using your own implementation, then the first thing I'd suggest is ensuring that the Connectivity object in your app is not being released over the period of time that you are testing. It would also be interesting to see whether if you repeat your experiment using the sample app whether you still experience the issue (if you attempt this you will need to add a line of code to enable polling).

@rwbutler
Copy link
Owner

I was curious to know whether you managed to take a look to see whether the reference to the Connectivity object was being released at any point over the duration of your test? I'm going to close this issue for now but if you make any further progress with this, add a comment and we'll re-open this and investigate further.

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

2 participants