Custom Query (2297 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (19 - 21 of 2297)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Ticket Resolution Summary Owner Reporter
#254 worksforme include directive fails when included file does not contain a new line Maxim Dounin Roberto Hidalgo
Description

The include directive fails to work when loading mime.types if this file does not contain a new line before declaring types {

# Example nginx.conf

http {
    include mime.types;
}

# Example mime.types that works


types {
     text/html                             html htm shtml;
}

# Example mime.types that DOES NOT work

types {
     text/html                             html htm shtml;
}
#266 fixed mp4 sendfile errors Maxim Dounin Gernot Vormayr
Description

After trying out the mp4 module I received some videos didn't work and I got strange errors like:

2012/12/28 20:16:02 [alert] 17920#0: *39954 sendfile() failed (22: Invalid argument) while sending mp4 to client, client: a.b.c.d, server: , request: "GET /myfile.mp4?start=26.89 HTTP/1.0", host: "a.b.c.d"

Well yeah I tried turning off sendfile:

2012/12/28 20:07:08 [emerg] 17864#0: *28769 malloc(18446744073606090997) failed (12: Cannot allocate memory) while sending mp4 to client, client: a.b.c.d, server: , request: "GET /myfile.mp4?start=26.89 HTTP/1.0", host: "a.b.c.d"

Well since 16PB of ram are a bit too expensive for us I dug into the mp4 code and the mp4 file. Turning on debugging led (as expected) to some nice negative values in the mp4 module. After some more digging I found out, that ngx_http_mp4_read_mdat_atom gets called with a zero atom_data_size which is correct according to the video:

xxd -s 714204 -l 8 myfile.mp4 
00ae5dc: 0000 0008 6d64 6174                      ....mdat

So after some googling I read somewhere that this means that the mdat atom spans the rest of the file? Well I don't know anything about mp4, but I suspect one of you guys knows :)

I believed the text and after applying the patch the file works.

#275 fixed Build error __warn_memset_zero_len Maxim Dounin Marco Becker
Description

I got the following error wehn build the source code with gcc option -O3:

gcc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -O3 -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
		-o objs/src/http/modules/ngx_http_autoindex_module.o \
		src/http/modules/ngx_http_autoindex_module.c
In file included from /usr/include/string.h:642:0,
                 from src/os/unix/ngx_linux_config.h:26,
                 from src/core/ngx_config.h:26,
                 from src/http/modules/ngx_http_autoindex_module.c:8:
In Funktion »memset«,
    eingefügt von »ngx_http_autoindex_handler« bei src/http/modules/ngx_http_autoindex_module.c:492:13:
/usr/include/x86_64-linux-gnu/bits/string3.h:82:30: Fehler: Aufruf von »__warn_memset_zero_len« mit Attributwarnung deklariert: memset used with constant zero length parameter; this could be due to transposed parameters [-Werror]
cc1: Alle Warnungen werden als Fehler behandelt
make[1]: *** [objs/src/http/modules/ngx_http_autoindex_module.o] Fehler 1
make[1]: Verlasse Verzeichnis '/root/nginx-1.2.6'
make: *** [build] Fehler 2

The ./configure options as follows:

./configure --sbin-path=/opt/nginx --conf-path=/etc/nginx/nginx.conf --pid-path=/etc/nginx/nginx.pid --prefix=/opt/nginx --with-cc-opt="-O3"
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.