cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Explicit FTP upload with encrypted data channel block on STOR

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 24 Aug 2009 11:11:59 +0200 (CEST)

On Sun, 23 Aug 2009, Denis Sacchet wrote:

>> That looks really strange. Have you checked with wireshark or the server
>> logs to see if you get any more clues on what happens?
>>
> When the client is blocked on STOR or RETR and I hit CTRL+C, I've got this
> line appears in the log :
>
> Aug 23 09:07:57 s001 pure-ftpd: (<USER>@<CLIENT>) [ERROR] SSL/TLS
> [/etc/ssl/private/pure-ftpd.pem]: error:00000000:lib(0):func(0):reason(0)
>
> If it can help you, I can send a tcpdump trace file, but for what I saw, the
> passive connexion is handled well (SYN,SYN-ACK,ACK) and then nothing.

Well, the PASV seems to be fine and all, but after the STOR command curl
expects to get a response back from the server on the control socket before
the transfer is started (usually a 125 or 150). That response is missing from
the log you showed.

When that response arrives to curl, it will negotiate the TLS on the data
connection and send off the data.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-08-24