Never mind, turned out those errors were from the client not using ssl...
Chris
On Mon, 14 Feb 2005 16:24:54 -0800, snacktime
After a successful request, a minute later I get this exception. Why is the server still trying to read at this point? The resource class and code I use to start the server is below
Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/twisted/python/log.py", line 52, in callWithContext return context.call({ILogContext: newCtx}, func, *args, **kw) File "/usr/local/lib/python2.4/site-packages/twisted/python/context.py", line 64, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/usr/local/lib/python2.4/site-packages/twisted/python/context.py", line 43, in callWithContext return func(*args,**kw) File "/usr/local/lib/python2.4/site-packages/twisted/internet/default.py", line 535, in _doReadOrWrite why = getattr(selectable, method)() --- <exception caught here> --- File "/usr/local/lib/python2.4/site-packages/twisted/internet/tcp.py", line 98, in doRead return Connection.doRead(self) File "/usr/local/lib/python2.4/site-packages/twisted/internet/tcp.py", line 239, in doRead data = self.socket.recv(self.bufferSize) OpenSSL.SSL.SysCallError: (54, 'Connection reset by peer')
----------------------------------------------------------------------------------------------------
class SimpleWeb(resource.Resource): isLeaf = True def render_GET(self, request): return "<html>Hello world</html>"
application = service.Application("otransact") OTService = service.IServiceCollection(application) web = SimpleWeb() site = server.Site(web) OTWeb = internet.SSLServer(8080, site,ServerContextFactory()) OTWeb.setServiceParent(OTService)