[Zope] Strange Zope errors with heavy use of SESSION

Peter Bengtsson mail@peterbe.com
Wed, 15 Jan 2003 02:39:22 +0000


2003-01-15T02:33:15 ERROR(200) ZServer uncaptured python exception, closing 
chan
nel <ZServer.HTTPServer.zhttp_channel connected 127.0.0.1:2553 at 0x27aff4c 
chan
nel#: 15 requests:2> (socket.error:(10053, 'Software caused connection 
abort') [
H:\ZOPE\ZOPE26~1\ZServer\medusa\asynchat.py|handle_read|82] 
[H:\ZOPE\ZOPE26~1\ZS
erver\medusa\http_server.py|recv|423] 
[H:\ZOPE\ZOPE26~1\ZServer\medusa\asyncore.
py|recv|361])

Yeah, right!?


I've got a page (python product) that is like a step-by-step wizard. After 
every screen I stick a couple of variables in the SESSION object like this:

     def PropertiesWizardRemember(self, **kw):
	""" remember things for the wizard in the SESSION """
	session = self.REQUEST.SESSION
	for key, value in kw.items():
	    session[key]= value


Sometimes it works, but very rarely; for a little while. Then all of sudden 
the SESSION object is being "reset". This happens jointly with the error 
message to stdout.
I can't find exactly what triggers it, but I'm the only one using this 
dev-server. Only since I started working on this wizard these messages 
started to appear.

Zope 2.6.1b1 win32
python 2.1