These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

Issues, Workarounds & Localization

 
  • Topic is locked indefinitely.
 

transfer closed with outstanding read data remaining

First post
Author
Jen Moriarty
Republic University
Minmatar Republic
#1 - 2015-04-13 07:23:50 UTC
Two days ago I've started receiving the above error message when trying to access my AssetList via curl from my web tool.
The assetlist is ~850kb but it stops the transfer at ~800kb, varying between attempts. Is this an expected behavior? Am I doing something wrong?

Here's my curl code:

    $ch = curl_init();
   
    if(!empty($post)) {
        curl_setopt($ch, CURLOPT_POST      ,1);
        curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
    }

    curl_setopt($ch, CURLOPT_URL, $url);

    if (ini_get('open_basedir') == '' && ini_get('safe_mode' == 'Off'))
        curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
       
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
    curl_setopt($ch, CURLOPT_TIMEOUT, 60);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
   
       
       if (strpos ($url, "AssetList.xml") !== false) {
           $fp = fopen('../transfer.log', 'w');
           curl_setopt($ch, CURLOPT_VERBOSE, TRUE);
           curl_setopt($ch, CURLOPT_STDERR, $fp);
        }
    $data = curl_exec($ch);
        curl_close($ch);
Steve Ronuken
Fuzzwork Enterprises
Vote Steve Ronuken for CSM
#2 - 2015-04-13 12:13:58 UTC
Try increasing the CURLOPT_TIMEOUT to 120.

I suspect it's just being a little slow, and has only just gone over the timeout.

Woo! CSM XI!

Fuzzwork Enterprises

Twitter: @fuzzysteve on Twitter

Jen Moriarty
Republic University
Minmatar Republic
#3 - 2015-04-13 12:27:49 UTC
I did, but it didn't fix it.
In the logs I see that it takes 27s to run, which is already x4 times slower than it used to be, which I guess suggest the underlying problem.

But anyway, this seems to have been fixed for the time being.