CarelinkFollower socket timeouts #3702
Replies: 4 comments 3 replies
-
I am a new user, but recently the Medtronic servers and the application had some connection problems. |
Beta Was this translation helpful? Give feedback.
-
Every similar datasource (Nightscout, Dexcom Share, LibreLinkUp) use the default values. It is possible that CareLink servers are slower and less reliable, but before we drastically increase all timeouts (10sec -> 30sec), I think it is necessary to examine when and at what point in the communication this timeout occurs: connect, send request, receive response (server response time). Increasing the wait times can cause unnecessary delays and waits. This custom version's name is xDrip+ HC (com.eveningoutpost.dexdripclhc – http communication), so you don’t have to uninstall your current version. On the other hand you have to create a new care partner account in CareLink, because you can use one account only in one application.
|
Beta Was this translation helpful? Give feedback.
-
For quite some time there seems to be an issue with retrieving the data from servers in timely manner using the CareLink Follower source.
As a result, the new datapoints and notifications are not downloaded for about 10-15 minutes, I can see the missed reading effects (BG display in red and so on), and then it goes back to normal, when 2 or 3 missed readings are downloaded. It happens randomly, sometimes 2-3 times per hour. There is also an exception logged:
![obraz](https://private-user-images.githubusercontent.com/117176531/374143393-600c3975-0dae-4a19-8230-d8275bdc81c3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMjkxNTEsIm5iZiI6MTczOTIyODg1MSwicGF0aCI6Ii8xMTcxNzY1MzEvMzc0MTQzMzkzLTYwMGMzOTc1LTBkYWUtNGExOS04MjMwLWQ4Mjc1YmRjODFjMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQyMzA3MzFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02Njk3MDhjODg0MTIwMThlZjZjYzBiY2QxMmRkNzgwY2I3ZjczMjFjNDk1YjU3NDAyNGQ1MGE2ZTMyNDdiMzNjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.58Cp3XHXDiZSwEHYRkwoZ6GrlJXMH65vm0zmichtBNM)
After investigation it seems that the http client in the Carelink Follower that uses default timeout values of 10s does not make it in time with laggy Carelink server.
I have changed the timeouts to:
![obraz](https://private-user-images.githubusercontent.com/117176531/374144735-b89411c2-0715-43f1-963c-24eb8f74c811.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMjkxNTEsIm5iZiI6MTczOTIyODg1MSwicGF0aCI6Ii8xMTcxNzY1MzEvMzc0MTQ0NzM1LWI4OTQxMWMyLTA3MTUtNDNmMS05NjNjLTI0ZWI4Zjc0YzgxMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQyMzA3MzFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iMzA2OWMyMzUzN2Q1OGYxZGVjMTI1MmM3MjNjMzBlMTJiNzcxZDczYTViMTVjNjZmZTg5MGY0YjMyNWFlYzllJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.X8LrD5jN94-vXu0f-CYouysQYYJn33mp9EY6rrU5qzU)
After some longer tests i can confirm that it solved my issue and I havent seen those Exceptions since applying this fix.
Im using one of the latest official nightly builds:
![obraz](https://private-user-images.githubusercontent.com/117176531/374145750-55c91d37-7b24-46f0-a572-243e9c5d9750.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMjkxNTEsIm5iZiI6MTczOTIyODg1MSwicGF0aCI6Ii8xMTcxNzY1MzEvMzc0MTQ1NzUwLTU1YzkxZDM3LTdiMjQtNDZmMC1hNTcyLTI0M2U5YzVkOTc1MC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQyMzA3MzFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yMTBjZGM0MWVmNmUyMGE2M2UzZWRhYmIyOTBkN2M2NzM5ZDZiMDI5ZGIyNmFkYmZkMzc4M2M4MzA3MmFiMGYyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.nEm4GOzlwtVH7AC7bpaFcBGnSVGK3OS2IZCHxHsjOMs)
Beta Was this translation helpful? Give feedback.
All reactions