Sorry if I messed up the spaces vs. tabs. I'm using PythonWin for editing with "smart tabs" turned on, which means it's supposed to detect the tabbing conventions in the source file and then maintain them as you edit. It also highlights tabbing inconsistencies with a highly visible red squiggle. But I certainly could have screwed it up.
In any case I just updated from CVS and AsyncThreadedAppServer, ThreadedAppServer, and AsyncThreadedHTTPServer all work on my WinNT box w/out problems. Is anyone still having problems with a fresh CVS update?
Jay Love wrote:
> Tom, I got this error a few days ago. It's an indentation problem. I
> fixed it locally and now I can't remember where it was. Geoff is using
> spaces for indentation and the rest of the system uses tabs. This is a
> good time to remind everyone to set their text editor to use tabs for
> indentation. Some editors will be helpful and convert tabs to spaces
> for you, but that is not what you want.
> Tom Schwaller wrote:
> > Geoff Talvola wrote:
> >> - I checked in a cleaned-up version of AsyncThreadedHTTPServer, which allows WebKit to serve HTTP directly without a separate web server. AsyncThreadedHTTPServer inherits from AsyncThreadedAppServer, but swaps in a different request handler class, so there isn't too much code duplication. (I had to make some small mods to AsyncThreadedAppServer to make it possible to derive AsyncThreadedHTTPServer from it.)
> > Exception in thread Thread-1:
> > Traceback (most recent call last):
> > File "/usr/lib/python2.0/threading.py", line 376, in __bootstrap
> > self.run()
> > File "/usr/lib/python2.0/threading.py", line 364, in run
> > apply(self.__target, self.__args, self.__kwargs)
> > File "AsyncThreadedAppServer.py", line 139, in threadloop
> > rh.handleRequest() #this is all there is to it
> > File "AsyncThreadedAppServer.py", line 211, in handleRequest
> > dict_length = loads(self.reqdata[:int_length])
> > ValueError: bad marshal data
> > ???
- Geoff Talvola