Jump to content
You are about to reply to a thread that has been inactive for 1504 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Posted

The script wiki for http_response says in the caveats:

It is not guaranteed that there will be an http_response for every llHTTPRequest().

 

So my question is:

Does a script somehow gets a timeout code for a failed http_response or is it just failing silently and you don't get any response to the corresponding http_request?

In my case i used a counter to see if my request was answered before sending other requests and somehow the counter was not reduced everytime. So i guess some responses failed, maybe. If there is a code to catch those failed ones would be nice, if not, my idea would be to save outgoing http_requests with id + unix-timestamp into a queue list and check this list via timer if there is any timestamp older than a minute. If yes, i would asume that this request failed and send it again. Any scripting pro in here with some feedback? :)

Btw.: I did not move out from the sim during the http_request. Is it only possible to fail while moving out of the sim before the response happened? Or could that also happen will still on the same sim?

Posted

There is a 60 second timeout if no response is received. From the wiki:

Status 499

  • Requests must fully complete after 60 seconds, or else the response will be thrown away and the http_response status code will be 499.
  • Besides the usual HTTP status codes, SL implements a special status code 499. This code isn't generated by the remote web server but by SL's servers (see Simulator_IP_Addresses), it can indicate: Request timeout (60 seconds)
  • Like 1
  • Thanks 1
You are about to reply to a thread that has been inactive for 1504 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...