Eero Saynatkari
10/16/2006 6:59:00 AM
On 2006.10.16 15:41, Charles Lowe wrote:
> This is my first post to the ruby mailing lists, so let me first thank
> all the people who's wonderful work I've made use of -- great stuff!.
>
> I've been trying to upload some large files, using
> Net::HTTP::Put#body_stream=, but have ran into some problems.
>
> Most of my initial testing was in cygwin, where most things "just work".
> upon trying it in the mingw32 build, i got https errors due to openssl
> doing some non-block fcntls (IO#fcntl "not implemented on this
> platform").
>
> I switched to the i386-mswin32, but now I getting some more fundamental
> problems, when doing file reads. I'm typically getting reads back under
> the requested size, (not a problem), but this is generating premature
> EOF errors. If I just use File#read, I correctly get the entire file.
Just on an off-chance, is your file open in binary mode?