Suresh Lakshmanan
suresh.lakshmanan at gmail.com
Wed Jan 24 05:12:38 EST 2007
you are right! i tried opening two different http clients and they ran concurrently! thanks. now my original question remains. why do i get 503? any config change i need to make? On 1/24/07, Mike Looijmans <nlv11281 at natlab.research.philips.com> wrote: > > > i made this test... > > for a url say, http://myserver/myapp/test <http://myserver/myapp/test>. > > i put sleep in the python handler code. > > > > //python handler for the above url > > { > > import time > > log('before sleep') > > time.sleep(60) > > log('after sleep') > > } > > > > when multiple clients access the url, the calls are serialized. the > > second client waits for a minute and then comes to this handler. > > why is this so? that's why i was lead to believe that the requests were > > serialized. > > Make sure that your test is correct. A browser will use the same > connection for several request, in effect serializing the requests > already. Many other HTTP client libraries do the same (which is a good > thing). > > Your best test is to open telnet sessions to port 80, and write "GET > /test HTTP/1.0<return><return>" to the telnet session. > > -- "Little by little, through patience and repeated effort, the mind will become stilled in the Self." - Bhagawad Gita -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20070124/51bbc751/attachment.html
|