Mailing Lists
|
cURL Mailing List Monthly Index Single Mail
curl-tracker Archives
[curl:bugs] #1318 libcurl does not return CURLE_ABORTED_BY_CALLBACK when aborted by CURLOPT_PROGRESSFUNCTION
From: Daniel Stenberg <bagder_at_users.sf.net>
Date: Thu, 02 Jan 2014 19:39:10 +0000
- **status**: open --> open-confirmed
--- ** [bugs:#1318] libcurl does not return CURLE_ABORTED_BY_CALLBACK when aborted by CURLOPT_PROGRESSFUNCTION** **Status:** open-confirmed **Created:** Thu Jan 02, 2014 07:27 PM UTC by che **Last Updated:** Thu Jan 02, 2014 07:35 PM UTC **Owner:** Daniel Stenberg When I create a libcurl handle, and give it CURLOPT_PROGRESSFUNCTION callback that always returns 1, curl_easy_perform returns CURLE_GOT_NOTHING. Expected outcome: curl_easy_perform returns CURLE_ABORTED_BY_CALLBACK. I first observed on curl-7.33.0 on amd64 Gentoo, then tried to reproduce with libcurl compiled from git sources. I have also tried latest master (030303fa999d1457b7cd24efab8dfcb5dec54333), which returns the wrong code as well. It looks like the first problematic commit is [4ad8e142da463ab208d5b5565e53291c8e5ef038](https://github.com/bagder/curl/commit/4ad8e142da463ab208d5b5565e53291c8e5ef038), which is one of the first commits after 7.32.0 release. Its immediate parent (e3ee73b70ceaf2663fc2d26a4102e131a7c9618d) seems to work fine. Attaching a client program that reproduces the issue for me. Steps to reproduce: 1. checkout given curl version 2. ./buildconf && ./configure --without-axtls --without-cyassl --without-gnutls --without-nss --without-polarssl -with-ssl --without-ca-bundle --with-ca-path=/etc/ssl/certs --enable-dict --enable-file --enable-ftp --enable-http --without-spnego --without-winidn --without-winssl --with-zlib --disable-versioned-symbols --without-darwinssl --without-krb4 && make (then, somewhere else) 3. gcc -o testAbort -lcurl testAbort.c 4. LD_LIBARY_PATH=${CURL_CHECKOUT}/lib/.libs ./testAbort --- Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.Received on 2014-01-02 These mail archives are generated by hypermail. |
Page updated December 29, 2013.
web site info