kiltum (kiltum) wrote,
kiltum
kiltum

Тут в страшносекретномместе пожаловались, что апач 1.3.26 криво отдает большие файлы. У меня 2.0.52. Решил проверить.

gw www # dd if=/dev/zero of=zero
711586+0 records in
711585+0 records out
^C
gw www # telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
HEAD /zero HTTP/1.0

HTTP/1.1 200 OK
Date: Fri, 14 Jan 2005 10:39:12 GMT
Server: Apache/2.0.52 (Gentoo/Linux) mod_ssl/2.0.52 OpenSSL/0.9.7d PHP/5.0.3
Last-Modified: Fri, 14 Jan 2005 10:38:59 GMT
ETag: "275a-15b74400-a46896c0"
Accept-Ranges: bytes
Content-Length: 364332032
Connection: close
Content-Type: text/plain; charset=ISO-8859-1

Connection closed by foreign host.
gw www # dd if=/dev/zero of=zero count=8000000
8000000+0 records in
8000000+0 records out
gw www # ls -lh zero
-rw-r--r--  1 root root 3.9G Jan 14 13:42 zero
gw www # telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
HEAD /zero HTTP/1.0

HTTP/1.1 403 Forbidden
Date: Fri, 14 Jan 2005 10:44:37 GMT
Server: Apache/2.0.52 (Gentoo/Linux) mod_ssl/2.0.52 OpenSSL/0.9.7d PHP/5.0.3
Connection: close
Content-Type: text/html; charset=iso-8859-1

Connection closed by foreign host.

В логах [error] [client 127.0.0.1] (75)Value too large for defined data type: access to /zero failed


И это в 21м веке ...
Subscribe
  • Post a new comment

    Error

    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 20 comments