micropatch to quixote.server.simple_server.run

Michele Simionato <[email protected]>
Newsgroups gmane.comp.web.quixote.user
Message-ID <[email protected]>
I would like to replace the last line of the run function
(i.e. http.server_forever()) with

    try:
        httpd.serve_forever()
    finally:
        httpd.server_close()

(use case: during testing I want to run different publishers one after the
other, on the same port, stopping them with CTRL-C; this is currently
impossible
since the port is busy if  httpd.server_close() is not called).

Is that fine?

            Michele Simionato
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.