cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Curl executable stalls on reading form data from directory

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 19 Jan 2013 23:12:48 +0100 (CET)

On Sat, 19 Jan 2013, Dan Fandrich wrote:

> It looks to me like there are two problems here: curl shouldn't try to send
> data from a directory "file" in the first place, and a more general problem,
> if it can't read all the data it stat'ed at the start (either too much or
> too little), it should abort the transaction and return an error code.

I agree. What about the attached little patch attempt to fix this? Seems to
work for me...

-- 
  / daniel.haxx.se


-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2013-01-19