r1ch.net forums
* Home Help Search Login Register
r1ch.net  |  r1ch.net stuff  |  R1Q2  |  Topic: R1Q2 - HTTP download failed: Operation was aborted by an application callback
Pages: [1]
Print
Author Topic: R1Q2 - HTTP download failed: Operation was aborted by an application callback  (Read 22515 times)
ruiner
Member

Posts: 8


« on: August 26, 2011, 10:16:53 pm »

Hello,
I'm trying to track down the following HTTP download error that keeps occurring for some people on the Whale Eye server (74.86.171.203:27910). I've looked at the r1q2/curl code but I'm not sure why it's failing (i.e. can't connect or resolve host/proxy). The server is certainly online and you can check by clicking the link below. Perhaps there could be something misconfigured or changed with the HTTP server or its settings. I appreciate your help!  wink


server.cfg: (our http setting)
set sv_downloadserver "http://http.tastyspleen.net/~p1/quake2/"

-------------

q2logfile: (error message)
[2011-05-22 17:47] Fatal HTTP error: No error
[2011-05-22 17:47] HTTP download failed: Operation was aborted by an application callback

------------------

R1Q2:
static void CL_FinishHTTPDownload (void)                                                    //      r1q2\client\cl_http.c(788):
{
   msg = curl_multi_info_read (multi, &msgs_in_queue);
   result = msg->data.result;
      ...
   switch (result)
   {
             ...
      case CURLE_COULDNT_RESOLVE_HOST:
      case CURLE_COULDNT_CONNECT:
      case CURLE_COULDNT_RESOLVE_PROXY:
             ...
      Com_Printf ("Fatal HTTP error: %s\n", LOG_CLIENT|LOG_WARNING, curl_easy_strerror (result));       //      r1q2\client\cl_http.c(904):
             ...            
      Com_Printf ("HTTP download failed: %s\n", LOG_CLIENT|LOG_WARNING, curl_easy_strerror (result));    //       r1q2\client\cl_http.c(916):
   }
}

-----

CURL:
curl_easy_strerror(CURLcode error)
{
   switch (error)
   {
      case CURLE_OK:                   return "No error";                            //0    curl\lib\strerror.c(58):
             ...
      case CURLE_ABORTED_BY_CALLBACK:    return "Operation was aborted by an application callback";       //42    curl\lib\strerror.c(160):
   }
}
« Last Edit: August 26, 2011, 10:21:59 pm by ruiner » Logged
Pages: [1]
Print
r1ch.net  |  r1ch.net stuff  |  R1Q2  |  Topic: R1Q2 - HTTP download failed: Operation was aborted by an application callback
Jump to:  

Powered by SMF 1.1.19 | SMF © 2013, Simple Machines