----- Oryginalna wiadomość -----
> Od: "Yann Malet" <[email protected]>
> Do: "uWSGI developers and users list" <[email protected]>
> Wysłane: środa, 2 marzec 2011 22:27:45
> Temat: [uWSGI] login form that lead to a 504
> 
> Hello,
> 
> 
> I have an app where uWSGI cause a weird issue with the information
> that is posted. The simple login form returns a 504 when I try to
> POST the username/password.
> I have try multiple version of uwsgi up the latest changeset in hg
> repo.
> 
> 
> Here it is the logs:
> 
> 
> #uwsgi.log
> 
> writev(): Broken pipe [plugins/python/wsgi_headers.c line 171]
> write(): Broken pipe [plugins/python/wsgi_subhandler.c line 186]
> [pid: 4043|app: 0|req: 10/16] 127.0.0.1 () {48 vars in 986 bytes}
> [Wed Mar 2 15:08:01 2011] POST /radarnation/login/ => generated 0
> bytes in 60011 msecs (HTTP/1.1 403) 2 headers in
> 18446744073709551615 bytes (0 switches on core 0)
> 
> 
> #nginx.log
> 
> 2011/03/02 22:09:01 [error] 1380#0: *106 upstream timed out (110:
> Connection timed out) while reading response header from upstream,
> client: 127.0.0.1, server: , request: "POST /radarnation/login/
> HTTP/1.1", upstream:
> "uwsgi://unix:///tmp/sockets/site_gamesradar.sock:", host:
> "gamesradar.local:8080", referrer: "
> http://gamesradar.local:8080/radarnation/login/ "
> 
> 
> #uwsgi xml config
> 
> <uwsgi>
> <home>%d/ve</home>
> <chdir>%d</chdir>
> <socket>/tmp/sockets/%n.sock</socket>
> <module>%n</module>
> <processes>4</processes>
> <post-buffering>1</post-buffering>
> <master/>
> </uwsgi>
> 
> 
> I have tried with and without " <post-buffering>1</post-buffering> ".
> Do you have any idea of what could possibly go wrong here ?
> 
> 
> Regards,


It looks pretty obviously:
uwsgi.log:
"...60 011 msecs (HTTP/1.1 403)..."

nginx.log:
"... upstream timed out (110: Connection timed out) while reading response 
header from upstream ..."

60 seconds is a bit much for a response.

Perhaps your database is not sufficiently efficient.
Consider what constitutes a bottleneck in req: /radarnation/login/

-- 
Łukasz Wróblewski
http://www.nri.pl/ - Nowoczesne Rozwiązania Internetowe
http://www.hostowisko.pl/ - Profesjonalny i tani hosting
http://www.katalog-polskich-firm.pl/ - Najlepszy darmowy katalog firm
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to