It is currently Sat Apr 29, 2017 2:21 pm



Welcome
Welcome to rfobasic

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today. **You are not required to provide truthful information to any registration questions. Be whomever you wish to be.!


Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: GRABURL does not timeout
Unread postPosted: Sun Apr 09, 2017 2:11 am 
Offline
User avatar

Joined: Sun May 19, 2013 10:53 am
Posts: 509
I have an application that upload every two minutes a bunch of data,coming from thermal sensors, to a cloud server. Everything works fine till the program hang to the GRABURL for ever if I don't kill BASIC! To restart.

COMMAND is as follow:

GRABURL answer$,cloud$,30000

So if there is no answer, the command should timeout after 30 seconds, but sometime this doesn't happen and the application stop working, hanging at GRABURL command, making the application not reliable for a real time.monitoring.
,
RFO BASIC 1.91

Android 4.2

Tablet ASUS

_________________
Don't be afraid of the time passing by, the best is yet to come


Top
 Profile  
 
 Post subject: Re: GRABURL does not timeout
Unread postPosted: Sun Apr 09, 2017 2:36 am 
Offline
User avatar

Joined: Wed Jul 10, 2013 8:11 am
Posts: 299
Hi Alberto,

Do you use WakeLock?

/ Gregor


Top
 Profile  
 
 Post subject: Re: GRABURL does not timeout
Unread postPosted: Sun Apr 09, 2017 10:27 am 
Offline
User avatar

Joined: Sun May 19, 2013 10:53 am
Posts: 509
Hi Gregor, yes I do! Both WAKELOCK 1,1 and WAKELOCK 2,1 and also WIFILOCK 3

Alberto

_________________
Don't be afraid of the time passing by, the best is yet to come


Top
 Profile  
 
 Post subject: Re: GRABURL does not timeout
Unread postPosted: Tue Apr 11, 2017 3:56 am 
Offline

Joined: Wed Oct 03, 2012 9:53 am
Posts: 2795
Location: Colorado, U.S.
I don't know how to debug this, Alberto. If I try to grab a url that does not exist, I get an error immediately. If I grab an existing url, I get a response quickly. Can you suggest a URL that responds slowly so I can run tests?

- Marc


Top
 Profile  
 
 Post subject: Re: GRABURL does not timeout
Unread postPosted: Wed Apr 12, 2017 6:26 am 
Offline
User avatar

Joined: Sun May 19, 2013 10:53 am
Posts: 509
Hi Marc, I have prepared a working basic snippet that upload data to the cloud every 2 minutes, so the snip just reproduce what I am doing at the moment. The basic hanging is very occasional, it happens once every several days of normal work! So if it is a bug then it will be not too easy to reproduce.

You should tell me how can I mail you the snippet, since the code contains the private key for the data uploading, I don't want it to become public.

cheers

Alberto

_________________
Don't be afraid of the time passing by, the best is yet to come


Top
 Profile  
 
 Post subject: Re: GRABURL does not timeout
Unread postPosted: Sat Apr 15, 2017 12:48 pm 
Offline

Joined: Wed Oct 03, 2012 9:53 am
Posts: 2795
Location: Colorado, U.S.
Thank you, Alberto. If it's that infrequent I'm not at all sure how to proceed. I do my debugging on a Linux laptop that I carry around with me. I will look into setting up something more stable that I can leave running long-term.

- Marc


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


Who is online

Users browsing this forum: [email protected] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
suspicion-preferred