Welcome! Log In Create A New Profile

Advanced

Nginx + Crome: part header is too long (400)

November 05, 2013 11:02AM
Используеся nginx + flash uploader для загузки файлов в медиахранилище. В целом, конфигурация стандартная.

Возникла проблема с ответом от сервера кода 400 при попытке загрузки файлов через crome (при этом неисправность плавающая и не зависит от самого файла). Этот же файл в следующий раз загружается нормально, а какой-нибудь другой отдаёт 400. Увеличение буферов не особо помогает.

Тестировалось также в FF, Opera, Safari: проблема не проявляется. Читал о схожей проблеме тут: http://forum.nginx.org/read.php?2,214924,214926
Но не понял, какие из этого делать выводы.

Вот момент возникновения ошибки:

2013/11/05 19:17:45 [debug] 44995#0: *204201812 hashed path: /home/web/tmp_storage/0038896449
2013/11/05 19:17:45 [debug] 44995#0: *204201812 http script var: "Filedata"
2013/11/05 19:17:45 [debug] 44995#0: *204201812 http script copy: ".name"
2013/11/05 19:17:45 [debug] 44995#0: *204201812 http script var: "girl_walking_together_with_man_and_bike_into_the_sunset.jpg"
2013/11/05 19:17:45 [debug] 44995#0: *204201812 http script var: "Filedata"
2013/11/05 19:17:45 [debug] 44995#0: *204201812 http script copy: ".content_type"
2013/11/05 19:17:45 [debug] 44995#0: *204201812 http script var: "application/octet-stream"
2013/11/05 19:17:45 [debug] 44995#0: *204201812 posix_memalign: 0000000803CA8000:4096 @16
2013/11/05 19:17:45 [debug] 44995#0: *204201812 http script var: "Filedata"
2013/11/05 19:17:45 [debug] 44995#0: *204201812 http script copy: ".path"
2013/11/05 19:17:45 [debug] 44995#0: *204201812 http script var: "/home/web/tmp_storage/0038896449"
2013/11/05 19:17:45 [info] 44995#0: *204201812 started uploading file "girl_walking_together_with_man_and_bike_into_the_sunset.jpg" to "/home/web/tmp_storage/0038896449" (field "Filedata", content type "application/octet-stream"), client: 83.220.58.78, server: test.org, request: "POST /uploadController/?username=test&userkey=aabc5f00f4140924e3014f2f42824160 HTTP/1.1", host: "test.org", referrer: "http://test.org/"
2013/11/05 19:17:45 [debug] 44995#0: *204201812 write: 32, 0000000803CA7000, 4096, 0
2013/11/05 19:17:45 [debug] 44995#0: *204201812 recv: eof:0, avail:5530, err:0
2013/11/05 19:17:45 [debug] 44995#0: *204201812 recv: fd:30 8192 of 8192
2013/11/05 19:17:45 [debug] 44995#0: *204201812 http client request body recv 8192
2013/11/05 19:17:45 [debug] 44995#0: *204201812 write: 32, 0000000803CA7000, 4096, 4096
2013/11/05 19:17:45 [debug] 44995#0: *204201812 write: 32, 0000000803CA7000, 69, 8192
2013/11/05 19:17:45 [info] 44995#0: *204201812 finished uploading file "girl_walking_together_with_man_and_bike_into_the_sunset.jpg" to "/home/web/tmp_storage/0038896449", client: 83.220.58.78, server: test.org, request: "POST /uploadController/?username=test&userkey=aabc5f00f4140924e3014f2f42824160 HTTP/1.1", host: "test.org", referrer: "http://test.org/"
2013/11/05 19:17:45 [debug] 44995#0: *204201812 http script var: "Filedata"
2013/11/05 19:17:45 [debug] 44995#0: *204201812 http script copy: ".md5"
2013/11/05 19:17:45 [debug] 44995#0: *204201812 http script var: "9456bbbe7305698929a7ff9ab111602c"
2013/11/05 19:17:45 [debug] 44995#0: *204201812 http script var: "Filedata"
2013/11/05 19:17:45 [debug] 44995#0: *204201812 http script copy: ".size"
2013/11/05 19:17:45 [debug] 44995#0: *204201812 http script var: "8261"
2013/11/05 19:17:45 [debug] 44995#0: *204201812 malformed filename in part header
2013/11/05 19:17:45 [debug] 44995#0: *204201812 invalid Content-Disposition header
2013/11/05 19:17:45 [debug] 44995#0: *204201812 http finalize request: 400, "/uploadController/?username=test&userkey=aabc5f00f4140924e3014f2f42824160" a:1, c:2
2013/11/05 19:17:45 [debug] 44995#0: *204201812 http special response: 400, "/uploadController/?username=test&userkey=aabc5f00f4140924e3014f2f42824160"
2013/11/05 19:17:45 [debug] 44995#0: *204201812 uploadprogress error-tracker error: 400
2013/11/05 19:17:45 [debug] 44995#0: *204201812 uploadprogress error-tracker not tracking in this location
2013/11/05 19:17:45 [debug] 44995#0: *204201812 charset: "" > "utf-8"
2013/11/05 19:17:45 [debug] 44995#0: *204201812 HTTP/1.1 400 Bad Request
Subject Author Posted

Nginx + Crome: part header is too long (400)

Bionicman November 05, 2013 11:02AM

Re: Nginx + Crome: part header is too long (400)

Maxim Dounin November 05, 2013 12:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 103
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready