SSL + Large file uploads (3GB+)

Maxim Dounin mdounin at mdounin.ru
Wed Jul 10 15:25:56 UTC 2013


Hello!

On Wed, Jul 10, 2013 at 10:40:49AM -0400, FSC wrote:

> Hello,
> 
> I'm having problems uploading large files (3GB) to a server with SSL
> enabled. I'm using nginx 1.4.2 + passenger. Files around 1GB large work
> fine.
> 
> My /tmp mount is large enough to handle files of that size. I guess I'm
> missing something. I read about a SSLRenegBufferSize parameter for the
> apache server - is there a similar directive for nginx that I'm missing? I
> appreciate any hints.
> 
> My nginx configuration:
> nginx version: nginx/1.4.1
> built by gcc 4.4.5 (Debian 4.4.5-8) 
> TLS SNI support enabled
> configure arguments: --prefix=/opt/nginx --with-http_ssl_module
> --with-http_gzip_static_module --with-cc-opt=-Wno-error
> --add-module=/usr/local/rvm/gems/ruby-1.9.3-p392/gems/passenger-3.0.19/ext/nginx
> 
> 
> Here is the curl output that I get when trying to post a 3GB+ file:
> 
> curl -v -X POST -d @BIG_TEST_ARCHIVE_3.zip https://shared.com

[...]

> > POST / HTTP/1.1
> > User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0
> OpenSSL/0.9.8x zlib/1.2.5
> > Host: shared.com
> > Accept: */*
> > Content-Length: 1590530720
> > Content-Type: application/x-www-form-urlencoded
> > Expect: 100-continue
> > 
> < HTTP/1.1 100 Continue
> 
> * SSL read: error:00000000:lib(0):func(0):reason(0), errno 60
> * Closing connection #0
> curl: (56) SSL read: error:00000000:lib(0):func(0):reason(0), errno 60

Provided curl output suggests the problem is in curl, note 
"Content-Length: 1590530720".

-- 
Maxim Dounin
http://nginx.org/en/donation.html



More information about the nginx mailing list