#1115 block when call curl_easy_perform

closed-works-for-me
ftp (93)
5
2013-06-21
2012-05-29
kgzhwang
No

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?

Discussion

  • kgzhwang

    kgzhwang - 2012-05-29
     
  • Dan Fandrich

    Dan Fandrich - 2012-05-29

    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.

     
  • Dan Fandrich

    Dan Fandrich - 2012-05-29
    • status: open --> pending-works-for-me
     
  • kgzhwang

    kgzhwang - 2012-06-01
    • status: pending-works-for-me --> closed-works-for-me
     
  • kgzhwang

    kgzhwang - 2012-06-01

    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);

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks