curl-library
PORT mode & progress updates
Date: Fri, 09 May 2003 14:06:01 -0700
hello all,
I've just recently taken over some work trying to integrate libcurl into our
app, and am running into a problem with progress updates not occurring while
downloading or uploading files when we're in PORT mode (vs PASV).
From looking at the code it looks like Curl_pgrsUpdate() is only called
after getting EWOULDBLOCK back from the send call. But we never get that
because it looks like the data socket is using blocking mode.
Is there something I'm missing? perhaps some build flag or curl option I'm
not setting properly? I'm currently setting a progress callback with
CURLOPT_PROGRESSFUNCTION and have set CURLOPT_NOPROGRESS to FALSE.
I've also tried grabbing the latest source (7.10.4) and built the command
line curl app as is and I get the same behavior -- I only see progress
update when the transfer is completed if I'm using -P mode.
I'm building this on Mac OS X but my Windows version seems to be having the
same problem (although I haven't stepped into it and confirmed this is the
cause yet).
thanks in advance for any help,
-george
----------------------
george comninos
principal engineer
macromedia
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
Received on 2003-05-09