cURL / Mailing Lists / curl-library / Single Mail

curl-library

Windows select fails with 7.34.0 and 7.35.0 using multi_perform

From: Alan <jkabeal-curl_at_yahoo.com>
Date: Sat, 15 Feb 2014 13:33:01 -0800 (PST)

I am having an issue with libcurl versions 7.34.0 and 7.35.0 Note that 7.33.0 works fine for me. I am looking for some information that will help point me in the proper direction in order to resolve this issue. Thanks in advance. Also, from the debugging below, libCurl knows that the first transfer is still active and tries to use it but then starts a new transfer. And 7.33.0 also starts a new transfer even though it knows that the first transfer is still active. Just does not fail in select. Here is a short description of my flow: 1. Start all the multi stuff: global init and create multi handle. 2. Create an easy handle and set options for PWD command. 3. Add easy handle and start the multi_perform loop. 4. When command completes, grab the CWD 5. Remove the easy handle above. 6. Create new easy handle and set options for reading a file. Note that the file is in the same folder as the command above. 7. Add easy handle and start the multi_perform loop. 8. Select returns -1 9. Report error and close everything. Here is some debug output from 7.35.0 Note that there is less debug output in 7.35.0 than 7.34.0. -----------   From the PWD transfer that completed: * Hostname was NOT found in DNS cache fdset maxfd:  -1  *   Trying 206.214.166.233... fdset maxfd:  936  select return:  1  * Connected to ftp.winnercomm.com (206.214.166.233) port 21 (#0) fdset maxfd:  936  select return:  1  < 220 ftp.winnercomm.com X2 WS_FTP Server 6.0(24874977) > USER ... fdset maxfd:  936  select return:  1  < 331 Enter password > PASS ... fdset maxfd:  936  select return:  0  fdset maxfd:  936  select return:  1  < 230 User logged in > PWD fdset maxfd:  936  select return:  1  < 257 "/..." is current directory * Entry path is '/...' * ftp_perform ends with SECONDARY: 0 * Remembering we are in dir "" > PWD < 257 "/..." is current directory * Connection #0 to host ftp.winnercomm.com left intact Removing from multi_stack:  0x2ed8268  PWD string:  "257 "/...""  easy cleanup:  0x2ed8268 -------------    Create new easy handle to ftp read single file and add to multi handle * Found bundle for host ftp.winnercomm.com: 0x2e7aa40 * Re-using existing connection! (#0) with host ftp.winnercomm.com * Connected to ftp.winnercomm.com (206.214.166.233) port 21 (#0) * Request has same path as previous transfer > EPSV * Connect data stream passively * ftp_perform ends with SECONDARY: 0 fdset maxfd:  936  select return:  1  < 500 Unkwown command EPSV * Failed EPSV attempt. Disabling EPSV > PASV fdset maxfd:  852  select return:  1  < 227 Entering Passive Mode (206,214,166,233,45,67). * Hostname was NOT found in DNS cache *   Trying 206.214.166.233... * Connecting to 206.214.166.233 (206.214.166.233) port 11587 fdset maxfd:  852  select return:  -1  select SOCKET_ERROR:  0 (The 0 is from WSAGetLastError()) Alan

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-02-15