https + large-file sending, sometimes fails
Gábor Farkas
gabor at nekomancer.net
Tue Dec 18 12:15:03 MSK 2007
Igor Sysoev wrote:
> On Mon, Dec 17, 2007 at 03:56:39PM +0100, G??bor Farkas wrote:
>
>> Igor Sysoev wrote:
>>> On Mon, Dec 17, 2007 at 03:12:33PM +0100, G?bor Farkas wrote:
>>>
>>>> i am sending large (400mb) csv files using nginx, using https.
>>>>
>>>> sometimes not the whole file is served by nginx.
>>>> it simply closes the connection before the whole file is sent.
>>>>
>>>>
>>>> when such problems happen, the error-log contains this:
>>>>
>>>> 2007/12/17 01:02:03 [crit] 21821#0: *864836 SSL_write() failed (SSL:
>>>> error:1409F07F:SSL routines:SSL3_WRITE_PENDING:bad write retry) while
>>>> sending response to client, client: 1.2.3.4, server: www.example.com,
>>>> URL: "/some/url/to/a.csv", upstream:
>>>> "http://internal-ip/some/auth/url/a.csv", host: "www.example.com"
>>>>
>>>> debian lenny (it has nginx 0.5.30-1)
hi,
maybe i am completely wrong here, but:
(on ubuntu gutsy and hardy):
simply create a minimal https-serving nginx-config, serve a 200mb file,
and try to fetch it from a different computer, using a lot of
concurrent-requests (something like "ab -n 1000 -c 100"),
and you will get the mentioned error.
so, basically, any https-serving is broken.
i find this very hard to believe, but i do not know what should i change
in the test.
(the packages:nginx-0.5.33, openssl-0.9.8g)
any ideas why this happens?
i attached the nginx.conf, and the site-config i used
(the nginx.conf is the default config from ubuntu)
thanks,
gabor
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gabor
URL: <http://nginx.org/pipermail/nginx/attachments/20071218/9e96e599/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nginx.conf
URL: <http://nginx.org/pipermail/nginx/attachments/20071218/9e96e599/attachment-0001.ksh>
More information about the nginx
mailing list