Robert:
It is me again.
I would like to share about some work I did with the
benchmark.py in
the intention to find the reasons because I cannot cancel
the script
after it finishes and, the reason I have errors in the
Browser during
the execution of the benchmark.
1) The last line of the script is:
cherrypy.engine.start_with_callback(run), when I change to
cherrypy.engine.start_with_callback(run()) it executes
faster than the
first option and I get best results. However, I cannot avoid
the
hanging problem and I do not know if the change is correct
indeed.
2) In script _cpserver.py -> class Server -> method
stop there is next
condition:
if isinstance(bind_addr, tuple):
wait_for_free_port(*bind_addr)
If I change to:
if isinstance(bind_addr, tuple):
pass #wait_for_free_port(*bind_addr)
It is possible (at least for me) to press CTRL-C and
fisnish the
benchmark.
3) About the problem (is it really??) in the browser:
a) Using IE7 and during benchmark execution, I get error
HTTP404.
When benchmark finishes, I refresh the web page and get
error:
"Internet Explorer cannot display the webpage"
b) Using Firefox and during benchmark execution, I get a
blank page
(no error messsage). When benchmark terminates, I refresh
the web page
and get error: "Firefox can't establish a connection to
the server at
localhost:8080."
I would really like to know your feedback about this. May be
it only
happens in my machine.
Thank you again for your attention, help ... and time.
Vizcayno.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at http://groups-beta.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|