On 20 August 2010 13:57, Catalin Patulea <[email protected]> wrote:
> On Aug 19, 11:30 pm, Graham Dumpleton <[email protected]>
> wrote:
>> Does his happen with browsers other than Firefox?
> I seem to be able to reproduce in Chrome 6.0.495.0 dev, though the
> delay is a bit higher, around 1.6 seconds.
Can you use the Python script below to do some experiments.
Change serverHost variable and Host header appropriately and just get
it working first.
Then capture what headers Firefox/Opera are sending and modify script
to send the same headers and see how timing differs.
Based on that can then start tweaking request headers to see if any affect it.
Also, because you then have exact headers captured, I can use it as
test against Apache on my machine and now client is sending same
headers as your browser on your system.
Graham
#!/usr/bin/python
import time
from socket import *
serverHost = 'localhost'
serverPort = 80
s = socket(AF_INET, SOCK_STREAM)
s.connect((serverHost, serverPort))
start = time.time()
s.send('GET /echo HTTP/1.1\r\n')
s.send('Host: tests.example.com\r\n')
s.send('\r\n')
data = s.recv(1024)
while data:
print '>>>>>>>>>> %s <<<<<<<<<<' % (time.time()-start)
print data
print '>>>>>>>>>> <<<<<<<<<<'
print
data = s.recv(1024)
print '>>>>>>>>>> %s <<<<<<<<<<' % (time.time()-start)
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/modwsgi?hl=en.