summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)AuthorFilesLines
2014-03-19SPDY: improved ngx_http_spdy_state_save() again.Maxim Dounin1-2/+2
2014-03-19Macros used for initialization in ngx_http_core_init_main_conf().Maxim Dounin1-14/+5
2014-03-19SPDY: improved ngx_http_spdy_state_save() check.Maxim Dounin1-3/+5
2014-03-19SPDY: macro used for recv_buffer_size initialization.Maxim Dounin1-3/+1
2014-03-18Version bump.Maxim Dounin1-2/+2
2014-03-18release-1.5.12 tagMaxim Dounin1-0/+1
2014-03-18nginx-1.5.12-RELEASErelease-1.5.12Maxim Dounin1-0/+46
2014-03-18SPDY: always check size of data to be saved into state buffer.Maxim Dounin1-1/+1
2014-03-17Added server-side support for PROXY protocol v1 (ticket #355).Roman Arutyunyan13-6/+252
Client address specified in the PROXY protocol header is now saved in the $proxy_protocol_addr variable and can be used in the realip module. This is currently not implemented for mail.
2014-03-17FastCGI: f->split_parts reset on request start.Maxim Dounin1-0/+11
Additionally, make sure to check for errors from ngx_http_parse_header_line() call after joining saved parts. There shouldn't be any errors, though check may help to catch bugs like missing f->split_parts reset. Reported by Lucas Molas.
2014-03-07Core: fixed wrong indices in listening sockets compare loops.Maxim Dounin1-3/+3
Proper use is "ls[i]" and "nls[n]". Previous code used it wrong in several places, likely due to cut-n-paste errors.
2014-03-06MIME: added application/xspf+xml MIME type (ticket #479).Filipe da Silva1-0/+1
2014-03-06Added connection serial number in logging of left open sockets.Sergey Kandaurov2-4/+4
2014-03-06Fixed format specifier in logging of "c->number".Sergey Kandaurov4-4/+4
2014-03-04MIME: added video/mp2t and application/vnd.apple.mpegurl types.Roman Arutyunyan1-0/+2
Both types are used by HLS. The values are taken from RFC 3555 and HLS specification respectively.
2014-03-04Version bump.Roman Arutyunyan1-2/+2
2014-03-04release-1.5.11 tagMaxim Dounin1-0/+1
2014-03-04nginx-1.5.11-RELEASErelease-1.5.11Maxim Dounin1-0/+110
2014-03-03SPDY: fixed potential integer overflow while parsing headers.Valentin Bartenev1-34/+24
Previously r->header_size was used to store length for a part of value that represents an individual already parsed HTTP header, while r->header_end pointed to the end of the whole value. Instead of storing length of a following name or value as pointer to a potential end address (r->header_name_end and r->header_end) that might be overflowed, now r->lowercase_index counter is used to store remaining length of a following unparsed field. It also fixes incorrect $body_bytes_sent value if a request is closed while parsing of the request header. Since r->header_size is intended for counting header size, thus abusing it for header parsing purpose was certainly a bad idea.
2014-03-03SPDY: constant number of preallocated structures for headers.Valentin Bartenev1-1/+1
2014-03-03Request body: avoid potential overflow.Maxim Dounin1-4/+4
2014-03-03Gzip static: fixed NGX_CONF_FLAG misuse.Valentin Bartenev1-1/+1
2014-02-28Docs: xslt regenerated.Maxim Dounin1-143/+83
2014-02-28Docs: switched from java XSLScript to xslscript.pl.Maxim Dounin2-38/+3
Latter is available from http://hg.nginx.org/xslscript.
2014-02-27Disabled redirects to named locations if URI is not set.Maxim Dounin1-0/+8
If something like "error_page 400 @name" is used in a configuration, a request could be passed to a named location without URI set, and this in turn might result in segmentation faults or other bad effects as most of the code assumes URI is set. With this change nginx will catch such configuration problems in ngx_http_named_location() and will stop request processing if URI is not set, returning 500.
2014-02-22Core: allocate enough memory to hold IPv6 text address plus port.Ruslan Ermilov1-1/+1
2014-02-20Resolver: properly handle connect() failures.Ruslan Ermilov1-11/+11
If initial attempt to connect() the UDP socket failed, e.g. due to network unreachable, no further attempts were made.
2014-02-20Upstream: fixed error message wording.Konstantin Pavlov1-1/+1
2014-02-19Access: supplemented the obfuscated code with a comment.Ruslan Ermilov1-1/+5
2014-02-18Upstream: ngx_post_event() instead of upgraded call (ticket #503).Maxim Dounin1-0/+2
If a request is finalized in the first call to the ngx_http_upstream_process_upgraded() function, e.g., because upstream server closed the connection for some reason, in the second call the u->peer.connection pointer will be null, resulting in segmentation fault. Fix is to avoid second direct call, and post event instead. This ensures that ngx_http_upstream_process_upgraded() won't be called again if a request is finalized.
2014-02-14Mp4: remove useless leading stsc entry in result mp4.Roman Arutyunyan1-1/+1
The fix removes useless stsc entry in result mp4. If start_sample == n then current stsc entry should be skipped and the result stsc should start with the next entry. The reason for that is start_sample starts from 0, not 1.
2014-02-13Win32: MSVC 2013 compatibility.Maxim Dounin2-0/+9
Warnings about GetVersionEx() deprecation silenced. Precompiled object linked in.
2014-02-12SPDY: fixed reversed priority order in window waiting queue.Valentin Bartenev2-1/+7
2014-02-11Upstream: fix $upstream_status variable.Piotr Sikora4-6/+6
Previously, upstream's status code was overwritten with cached response's status code when STALE or REVALIDATED response was sent to the client. Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
2014-02-11SPDY: fixed parsing of http version.Xiaochen Wang1-0/+4
There is an error while parsing multi-digit minor version numbers (e.g. "HTTP/1.10").
2014-02-11SSL: the $ssl_session_reused variable.Maxim Dounin3-0/+19
2014-02-04Range filter: fixed duplicate charset.Ruslan Ermilov1-4/+8
If a proxied response had charset in Content-Type, the charset was duplicated in a response to client request with byte ranges.
2014-02-03Use ngx_socket_errno where appropriate.Piotr Sikora5-11/+11
Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
2014-02-05Version bump.Maxim Dounin1-2/+2
2014-02-04release-1.5.10 tagMaxim Dounin1-0/+1
2014-02-04nginx-1.5.10-RELEASErelease-1.5.10Maxim Dounin1-0/+79
2014-02-04SPDY: fixed parsing of the priority field.Shigeki Ohtsu1-1/+1
The size of the priority field is increased by one bit in spdy/3, and now it's a 3-bit field followed by 5 bits of unused space. But a shift of these bits hasn't been adjusted in 39d7eef2e332 accordingly.
2014-02-04Updated PCRE used for win32 builds.Maxim Dounin1-1/+1
2014-02-04Core: added ngx_encode_base64url().Maxim Dounin2-12/+38
2014-01-30Core: handle getsockopt(TCP_FASTOPEN) failures.Piotr Sikora3-4/+10
Linux returns EOPNOTSUPP for non-TCP sockets and ENOPROTOOPT for TCP sockets, because getsockopt(TCP_FASTOPEN) is not implemented so far. While there, lower the log level from ALERT to NOTICE to match other getsockopt() failures. Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
2014-01-31SPDY: protocol implementation switched to spdy/3.1.Valentin Bartenev4-135/+815
2014-01-31Fixed false compiler warning.Vladimir Homutov1-0/+4
Newer gcc versions (4.7+) report possible use of uninitialized variable if nginx is being compiled with -O3.
2014-01-30Fixed a compile warning introduced by 01e2a5bcdd8f.Ruslan Ermilov1-3/+4
On systems with OpenSSL that has NPN support but lacks ALPN support, some compilers emitted a warning about possibly uninitialized "data" variable.
2014-01-30Proxy: fixed upstream search by proxy_pass with variables.Ruslan Ermilov1-1/+1
If "proxy_pass" is specified with variables, the resulting hostname is looked up in the list of upstreams defined in configuration. The search was case-sensitive, as opposed to the case of "proxy_pass" specified without variables.
2014-01-28SSL: support ALPN (IETF's successor to NPN).Piotr Sikora4-9/+89
Signed-off-by: Piotr Sikora <piotr@cloudflare.com>