Fri Jul 19 2013 15:56:07 EDT from IGnatius T Foobar @ Uncensored
Jul 19 2013 3:15pm from Citadel
Subject: RSS Aggregation run failure
Error while RSS-Aggregation Run of
http://deutschesteffi.blogspot.com/feeds/posts/default
need a 200, got a 0 !
Curl Error message: Operation too slow. Less than 64 bytes/sec
transferred the last 600 seconds / Timeout was reached
Response text was:

GOTO _BASEROOM_



There's gotta be something wrong in there. Uninitialized buffer maybe?

our gateway to curl:

static size_t
gotdata(void *data, size_t size, size_t nmemb, void *cglobal)
{
    AsyncIO *IO = (AsyncIO*) cglobal;

    SetEVState(IO, eCurlGotData);
    if (IO->HttpReq.ReplyData == NULL)
    {
        IO->HttpReq.ReplyData = NewStrBufPlain(NULL, SIZ);
    }
    IO->Now = ev_now(event_base);
    return CurlFillStrBuf_callback(data,
                       size,
                       nmemb,
                       IO->HttpReq.ReplyData);
}

size_t CurlFillStrBuf_callback(void *ptr, size_t size, size_t nmemb, void *stream)
{

    StrBuf *Target;

    Target = stream;
    if (ptr == NULL)
        return 0;

    StrBufAppendBufPlain(Target, ptr, size * nmemb, 0);
    return size * nmemb;
}

 

so... its gotta be cURL that gives us uninitialized data in case of errors...

only possible solution is to skip the reply buffer from the error message, which may contain usefull informations in other cases...

Reply via email to