I'm developing a small web service where I'm developing an external
twisted client to send "PUT" messages to a pylons server. In the
course of development I'm regularly borking the server and getting
into the this state, sometimes when the server tries to reload after a
source change. The server process is definitely dead. After about 60
seconds things start up again, but the wait is is annoying. Is there
any way around this ?

I'm appending the error message.

-Drew

  sm = orm.sessionmaker(autoflush=True, transactional=True,
bind=engine)
Starting server in PID 20064.
Traceback (most recent call last):
  File "/home/drw900/venvs/pylons-beta/bin/paster", line 8, in
<module>
    load_entry_point('PasteScript==1.6.3', 'console_scripts', 'paster')
()
  File "/home/drw900/venvs/pylons-beta/lib/python2.5/site-packages/
PasteScript-1.6.3-py2.5.egg/paste/script/command.py", line 79, in run
    invoke(command, command_name, options, args[1:])
  File "/home/drw900/venvs/pylons-beta/lib/python2.5/site-packages/
PasteScript-1.6.3-py2.5.egg/paste/script/command.py", line 118, in
invoke
    exit_code = runner.run(args)
  File "/home/drw900/venvs/pylons-beta/lib/python2.5/site-packages/
PasteScript-1.6.3-py2.5.egg/paste/script/command.py", line 213, in run
    result = self.command()
  File "/home/drw900/venvs/pylons-beta/lib/python2.5/site-packages/
PasteScript-1.6.3-py2.5.egg/paste/script/serve.py", line 260, in
command
    server(app)
  File "/home/drw900/venvs/pylons-beta/lib/python2.5/site-packages/
PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 151, in
server_wrapper
    **context.local_conf)
  File "/home/drw900/venvs/pylons-beta/lib/python2.5/site-packages/
PasteDeploy-1.3.2-py2.5.egg/paste/deploy/util/fixtypeerror.py", line
57, in fix_call
    val = callable(*args, **kw)
  File "/home/drw900/venvs/pylons-beta/lib/python2.5/site-packages/
Paste-1.7.1-py2.5.egg/paste/httpserver.py", line 1317, in
server_runner
    serve(wsgi_app, **kwargs)
  File "/home/drw900/venvs/pylons-beta/lib/python2.5/site-packages/
Paste-1.7.1-py2.5.egg/paste/httpserver.py", line 1267, in serve
    threadpool_options=threadpool_options)
  File "/home/drw900/venvs/pylons-beta/lib/python2.5/site-packages/
Paste-1.7.1-py2.5.egg/paste/httpserver.py", line 1117, in __init__
    RequestHandlerClass, ssl_context)
  File "/home/drw900/venvs/pylons-beta/lib/python2.5/site-packages/
Paste-1.7.1-py2.5.egg/paste/httpserver.py", line 1097, in __init__
    RequestHandlerClass, ssl_context)
  File "/home/drw900/venvs/pylons-beta/lib/python2.5/site-packages/
Paste-1.7.1-py2.5.egg/paste/httpserver.py", line 328, in __init__
    HTTPServer.__init__(self, server_address, RequestHandlerClass)
  File "/usr/lib/python2.5/SocketServer.py", line 330, in __init__
    self.server_bind()
  File "/usr/lib/python2.5/BaseHTTPServer.py", line 101, in
server_bind
    SocketServer.TCPServer.server_bind(self)
  File "/usr/lib/python2.5/SocketServer.py", line 341, in server_bind
    self.socket.bind(self.server_address)
  File "<string>", line 1, in bind
socket.error: (98, 'Address already in use')

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to