Yeah, I figured that *fun* out yesterday. Thanks for pointing me to
the ticket. I've updated it with my comments.

On 11/18/05, Elvelind Grandin <[EMAIL PROTECTED]> wrote:
>
> I belive it is because of the autoreload.
> see http://trac.turbogears.org/turbogears/ticket/9
>
> On 11/18/05, Jared Kuolt <[EMAIL PROTECTED]> wrote:
> >
> > Background:
> >
> > A weird exception is thrown that kills cherrpy, so I've come up with
> > an interim solution that DOESN'T WORK.
> >
> > My project-start.py looks like normal except for this at the end:
> > a = 1
> > while a > 0:
> >     try:
> >         print ""
> >         print '='*60
> >         print ("Server start #%s" % a)
> >         print '+'*60
> >         a = a + 1
> >         cherrypy.server.start()
> >     except cherrypy._cpserver.TGThreadException:
> >         remove_lucene_locks()
> >         pass
> >
> > So it should print the "Server start" message once and wait for the
> > cherrypy server to stop, right? Well, this is my result:
> >
> > ============================================================
> > Server start #1
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> >
> > ============================================================
> > Server start #1
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> > 2005/11/17 15:59:57 CONFIG INFO Server parameters:
> > 2005/11/17 15:59:57 CONFIG INFO   server.environment: development
> > 2005/11/17 15:59:57 CONFIG INFO   server.logToScreen: True
> > 2005/11/17 15:59:57 CONFIG INFO   server.logFile:
> > 2005/11/17 15:59:57 CONFIG INFO   server.protocolVersion: HTTP/1.0
> > 2005/11/17 15:59:57 CONFIG INFO   server.socketHost:
> > 2005/11/17 15:59:57 CONFIG INFO   server.socketPort: 8080
> > 2005/11/17 15:59:57 CONFIG INFO   server.socketFile:
> > 2005/11/17 15:59:57 CONFIG INFO   server.reverseDNS: False
> > 2005/11/17 15:59:57 CONFIG INFO   server.socketQueueSize: 5
> > 2005/11/17 15:59:57 CONFIG INFO   server.threadPool: 0
> > 2005/11/17 15:59:58 HTTP INFO Serving HTTP on http://localhost:8080/
> >
> >
> > Two server starts? I don't get it.
> >
> > So I test it and the exception is thrown and looks beautiful. But when
> > it starts the cherrpypy server again I get:
> >
> >
> > ============================================================
> > Server start #2
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> >
> > ============================================================
> > Server start #1
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> >
> >
> > Something is obviously not right and it's been a LONG day. Can anyone help?
> >
>
>
> --
> cheers
>     elvelind grandin
>


--
[EMAIL PROTECTED] - Cell: 760.815.5579

Reply via email to