Bugs item #3530386, was opened at 2012-05-28 18:03
Message generated for change (Comment added) made by kgzhwang
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3530386&group_id=976
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: ftp
Group: bad behaviour
>Status: Closed
Resolution: Works For Me
Priority: 5
Private: No
Submitted By: kgzhwang (kgzhwang)
Assigned to: Daniel Stenberg (bagder)
Summary: block when call curl_easy_perform
Initial Comment:
hi! there is strange things,maybe my mistake. I use code in attachment to transmit file by SFTP or FTP. If code compiled to executable , everything is ok(there is other thing that LIST command will be send to server, But i do not send this command), if code compiled to a lib(.so file),when other program call this lib to transmit(SFTP or FTP) file it block at curl_easy_perform interface.I use curl-7.25.0. Everyone who can help me?
----------------------------------------------------------------------
>Comment By: kgzhwang (kgzhwang)
Date: 2012-06-01 04:11
Message:
I find the mistake. In my code nSpeed is declare int,it must be curl_off_t
type.
curl_easy_setopt(curl, CURLOPT_MAX_SEND_SPEED_LARGE, nSpeed); must
be curl_easy_setopt(curl, CURLOPT_MAX_SEND_SPEED_LARGE,
(curl_off_t)nSpeed);
----------------------------------------------------------------------
Comment By: Dan Fandrich (dfandrich)
Date: 2012-05-29 13:35
Message:
Many projects use libcurl in this way without an issue; it's very likely
something to do with the way you have integrated libcurl into your
application. If you have questions about the use of libcurl, please bring
them to the curl-library mailing list--the bug tracker isn't a help forum.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3530386&group_id=976
Received on 2012-06-01