[Zope] ClientDisconnected - how to prevent this from showing up?
dieter at handshake.de
Mon May 24 12:38:17 EDT 2004
george donnelly wrote at 2004-5-24 00:05 -0500:
>>Our solution: send a keep alive message every 20 min.
>i see, thanks. the keep ailve messages, are these nat rules, http
>requests? something else?
The are generated like this:
from thread import start_new_thread
from time import sleep
from zLOG import LOG, INFO, PROBLEM, ERROR
from sys import exc_info
from os import environ
from App.config import getConfiguration
KeepPeriod= int(environ.get('ZEO_KEEP_ALIVE')) * 60
Storage = getConfiguration().dbtab.getDatabase('/')._storage
LOG("CustomZODB",INFO,"Keep alive thread started")
LOG("CustomZODB",INFO,"Sending keep alive message")
LOG("CustomZODB",INFO,"Sent keep alive message")
LOG("CustomZODB",ERROR,".... failed", error=exc_info())
LOG("CustomZODB",PROBLEM,"Connection is down")
The code is executed during initialization of one product.
More information about the Zope