11 messages in ru.sysoev.nginxRe: Weird difference between nginx an...
FromSent OnAttachments
Robert GabrielNov 21, 2008 2:12 pm 
RoxisNov 21, 2008 2:21 pm 
RoxisNov 21, 2008 2:26 pm 
Robert GabrielNov 22, 2008 2:57 am 
Georgi HristozovNov 22, 2008 1:16 pm 
Robert GabrielNov 22, 2008 2:50 pm 
Dave CheneyNov 22, 2008 6:17 pm 
Dave CheneyNov 22, 2008 6:52 pm 
Robert GabrielNov 23, 2008 1:59 am 
Arvind JayaprakashNov 23, 2008 3:26 am 
Robert GabrielNov 23, 2008 3:34 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Weird difference between nginx and apache...Actions...
From:Arvind Jayaprakash (wo@anomalizer.net)
Date:Nov 23, 2008 3:26:17 am
List:ru.sysoev.nginx

Robert Gabriel wrote:

[root@srv1 ~]# curl -I -L srv1.viperhost.net/ HTTP/1.1 200 OK Server: Nginx Date: Sun, 23 Nov 2008 09:57:54 GMT Content-Type: text/html Connection: keep-alive Keep-Alive: timeout=65 X-Powered-By: PHP/5.2.6

[root@srv1 ~]# curl -I -L srv1.viperhost.net:8080/ HTTP/1.1 200 OK Date: Sun, 23 Nov 2008 09:57:59 GMT Server: Apache/2.0.63 (Linux/64) X-Powered-By: PHP/5.2.6 Vary: Accept-Encoding Content-Type: text/html

[root@srv1 ~]#

Here it is:

[root@srv1 ~]# ab -n 1000 -c 200 -k srv1.viperhost.net:8080/img.png Total transferred: 1757049 bytes HTML transferred: 1463000 bytes [root@srv1 ~]# ab -n 1000 -c 200 -k srv1.viperhost.net/img.png Total transferred: 1697000 bytes HTML transferred: 1463000 bytes

As you can see, the *HTML transferred* matches exactly in both cases, so you know that there is no problem with the data being returned. HTML = size of the body alone i.e. the image Total = header + body