Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / GetHTTPFile possible outstanding DELAY in iOS?

Author
Message
pinete
13
Years of Service
User Offline
Joined: 28th Jul 2011
Location:
Posted: 12th Jul 2016 09:28 Edited at: 12th Jul 2016 09:40
[SOLVED!]
Hi guys, hope you all are doing well.
I'm experiencing an incredible delay on iOS (9.2) getting just 3 jpg images (not bigger than 300k) from my web server.
While on Android it works charmly, as expected, on iOS, the same code bring broadcasted gives a delay of more than 30 segs.
below is the code.. I call it 3 times (one per each image) as you see it has nothing especial..
is this normal? maybe a bug?



function DOWNLOAD_IMAGE_FROM_WEB(refe, nombre_imagen$)

http_id = CreateHTTPConnection()

SetHTTPHost(http_id,"**heremyhostthatworksfine**",0)

GetHTTPFile( http_id, "/pruebas/"+nombre_imagen$, nombre_imagen$ )

while GetHTTPFileComplete(http_id) = 0
log( "Downloading: " + str(GetHTTPFileProgress(http_id)) )
endwhile

CloseHTTPConnection(http_id)
DeleteHTTPConnection(http_id)
log("finalizado")

endfunction

pinete
13
Years of Service
User Offline
Joined: 28th Jul 2011
Location:
Posted: 12th Jul 2016 09:42
It's solved now.

Apparently I inserted some "LOGs" to track the activity of the function and it seems that iOS doesn't like LOGs at all.
When you execute the app via broadcasting, in Android it works OK but in iOS seems that the LOGs make big delays.
So the solution is DON'T USE THE "LOG" COMMAND when you're broadcasting to a iOS device.
At least it has work for me so keep an eye if you're experiencing delays in your iOS executing something broadcasted.

best!

Login to post a reply

Server time is: 2024-11-17 08:09:27
Your offset time is: 2024-11-17 08:09:27