[Python-bugs-list] [ python-Bugs-437879 ] SocketServer.py related problems

noreply@sourceforge.net noreply@sourceforge.net
Tue, 10 Jul 2001 05:21:36 -0700


Bugs item #437879, was opened at 2001-07-02 05:22
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=437879&group_id=5470

Category: Python Library
Group: None
Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Andreas Jung (ajung)
Assigned to: Guido van Rossum (gvanrossum)
Summary: SocketServer.py related problems

Initial Comment:
I tried several third-party proxy servers for Python
(munchy,webdebug) go get working with
Python 2.1 under Linux i386.
But all fail with similar problems:

Under 2.1:

andreas@yetix:/home/andreas/src/munchy-0.7: python2.1 munchy.py 8006
Starting proxy on port 8006
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/opt/python-2.1/lib/python2.1/threading.py", line 378, in __bootstrap
    self.run()
  File "/opt/python-2.1/lib/python2.1/threading.py", line 366, in run
    apply(self.__target, self.__args, self.__kwargs)
  File "/opt/python-2.1/lib/python2.1/SocketServer.py", line 246, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/opt/python-2.1/lib/python2.1/SocketServer.py", line 494, in __init__
    self.setup()
  File "/opt/python-2.1/lib/python2.1/SocketServer.py", line 537, in setup
    self.rfile = self.connection.makefile('rb', self.rbufsize)
error: (9, 'Bad file descriptor')

I could not track down the problem :-(

Andreas






----------------------------------------------------------------------

>Comment By: Andreas Jung (ajung)
Date: 2001-07-10 05:21

Message:
Logged In: YES 
user_id=11084

Works fine now with 2.1.

Thanks a lot,
Andreas

----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2001-07-10 04:56

Message:
Logged In: YES 
user_id=6380

Try the version of SocketServer I just checked into the CVS
tree.
I'm quite sure I fixed this now.


----------------------------------------------------------------------

Comment By: Andreas Jung (ajung)
Date: 2001-07-06 09:32

Message:
Logged In: YES 
user_id=11084

I could not run the webDebug program with 2.0 because it raised 
a regular expression related inside the application code so I did not
waste more time on it.

It was some kind of DC related job - I needed some tools to monitor
WebDAV traffic between a client and Zope. I get around the problem
by using ethereal for snooping the traffice.

Andreas


----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2001-07-06 09:21

Message:
Logged In: YES 
user_id=6380

Andreas, do these work when used with Python 2.0?

Then it could be related to SF bug 417845.

Try the workaround listed there and let me know the result.

(Is this a DC job?  Then I can raise the priority.)

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=437879&group_id=5470