summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_flv_module.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-01-28Fixed "zero size buf" alerts with subrequests.Maxim Dounin1-0/+1
Since 4611:2b6cb7528409 responses from the gzip static, flv, and mp4 modules can be used with subrequests, though empty files were not properly handled. Empty gzipped, flv, and mp4 files thus resulted in "zero size buf in output" alerts. While valid corresponding files are not expected to be empty, such files shouldn't result in alerts. Fix is to set b->sync on such empty subrequest responses, similarly to what ngx_http_send_special() does. Additionally, the static module, the ngx_http_send_response() function, and file cache are modified to do the same instead of not sending the response body at all in such cases, since not sending the response body at all is believed to be at least questionable, and might break various filters which do not expect such behaviour.
2023-01-28Style.Maxim Dounin1-1/+1
2020-12-11Fixed double close of non-regular files in flv and mp4.Maxim Dounin1-6/+0
With introduction of open_file_cache in 1454:f497ed7682a7, opening a file with ngx_open_cached_file() automatically adds a cleanup handler to close the file. As such, calling ngx_close_file() directly for non-regular files is no longer needed and will result in duplicate close() call. In 1454:f497ed7682a7 ngx_close_file() call for non-regular files was removed in the static module, but wasn't in the flv module. And the resulting incorrect code was later copied to the mp4 module. Fix is to remove the ngx_close_file() call from both modules. Reported by Chris Newton.
2017-04-12Use ngx_calloc_buf() where appropriate.Ruslan Ermilov1-2/+2
2012-07-09Entity tags: set for static respones.Maxim Dounin1-0/+4
2012-04-26Allows particular modules to handle subrequests properly.Andrey Belov1-1/+1
2012-02-27Disable symlinks: initialization of the "disable_symlinks" field inValentin Bartenev1-3/+4
ngx_open_file_info_t moved to a separate function. This is preparation for the "from=" parameter implementation of the "disable_symlinks" directive.
2012-02-13Support for disable_symlinks in various modules.Andrey Belov1-0/+7
2012-01-18Copyright updated.Maxim Konovalov1-0/+1
2011-11-18Fixed flv header to match specification.Maxim Dounin1-1/+1
Used "\x5" in 5th byte to claim presence of both audio and video. Used previous tag size 0 in the beginning of the flv body (bytes 10 .. 13) as required by specification (see http://www.adobe.com/devnet/f4v.html). Patch by Piotr Sikora.
2010-05-24remove r->zero_in_uriIgor Sysoev1-4/+0
2009-09-30read_aheadIgor Sysoev1-0/+1
2009-04-27*) of.test_only to not open file if only stat() is enoughIgor Sysoev1-1/+1
*) of.failed to return exact name of failed syscall
2009-04-18remove TODO commentsIgor Sysoev1-1/+0
2009-01-16set r->root_tested for non-error_page response onlyIgor Sysoev1-1/+1
2008-12-22ngx_http_arg()Igor Sysoev1-12/+4
2008-09-05*) handle unaligned file part for directioIgor Sysoev1-0/+1
*) disable sendfile in directio mode
2008-07-30directioIgor Sysoev1-0/+1
2008-07-29allow range for partial flv responseIgor Sysoev1-3/+2
2008-07-07always test root existence for access_log with variablesIgor Sysoev1-0/+2
2008-07-04allow several values in query stringIgor Sysoev1-2/+8
2008-06-26ngx_memzero() ngx_open_file_info_tIgor Sysoev1-2/+2
2008-06-23initialize of.uniq in ngx_open_cached_file()Igor Sysoev1-0/+1
2007-12-27optimizationIgor Sysoev1-4/+3
2007-12-22open_file_cache_min_usesIgor Sysoev1-0/+1
2007-12-21open_file_cache_retest > open_file_cache_validIgor Sysoev1-1/+1
2007-12-07delete useless variableIgor Sysoev1-5/+2
2007-10-09style fix: remove trailing spacesIgor Sysoev1-1/+1
2007-10-01use ngx_strnstr()Igor Sysoev1-1/+1
2007-09-03open_file_cache_eventsIgor Sysoev1-0/+1
2007-09-01open_file_cache in HTTPIgor Sysoev1-45/+36
2007-08-07omit unnecessary conditionsIgor Sysoev1-1/+1
2007-08-06rename ngx_http_discard_body() to ngx_http_discard_request_body()Igor Sysoev1-1/+1
2007-01-18ngx_open_file(name, access, create) > ngx_open_file(name, mode, create, access)Igor Sysoev1-1/+1
2006-10-17style fix: remove trailing spacesIgor Sysoev1-1/+1
2006-10-16allow ranges for full flv filesIgor Sysoev1-0/+4
2006-10-12previous commit broke two modulesIgor Sysoev1-1/+2
2006-10-11do not send flv header for full fileIgor Sysoev1-13/+19
2006-10-09style fix: remove trailing spacesIgor Sysoev1-2/+2
2006-10-09ngx_http_flv_moduleIgor Sysoev1-0/+255