The official NGINX Open Source repository.
Go to file
Valentin Bartenev 0f0fac70a1 SSL: avoid calling SSL_write() with zero data size.
According to documentation, calling SSL_write() with num=0 bytes to be sent
results in undefined behavior.

We don't currently call ngx_ssl_send_chain() with empty chain and buffer.
This check handles the case of a chain with total data size that is
a multiple of NGX_SSL_BUFSIZE, and with the special buffer at the end.

In practice such cases resulted in premature connection close and critical
error "SSL_write() failed (SSL:)" in the error log.
2013-01-28 15:40:25 +00:00
auto GeoIP: IPv6 support. 2013-01-24 16:15:51 +00:00
conf Added the HTTPS fastcgi_param to fastcgi.conf. 2011-12-25 19:15:56 +00:00
contrib nginx-0.3.55-RELEASE import 2006-07-28 15:16:17 +00:00
docs nginx-1.3.11-RELEASE 2013-01-10 13:17:04 +00:00
misc Updated PCRE used for win32 builds. 2013-01-10 11:38:14 +00:00
src SSL: avoid calling SSL_write() with zero data size. 2013-01-28 15:40:25 +00:00
.hgtags release-1.3.11 tag 2013-01-10 13:17:29 +00:00