This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Erik.Günther
Recipients Erik.Günther
Date 2012-11-08.12:33:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352377990.43.0.148428023395.issue16434@psf.upfronthosting.co.za>
In-reply-to
Content
I have a small development WSGI-server using PythonPaste and when shutting it down I somtimes get the following error on one or two threads:


-----------------------8<-----------------------------------

Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.7/SocketServer.py", line 586, in process_request_thread
    self.shutdown_request(request)
  File "/usr/lib/python2.7/SocketServer.py", line 459, in shutdown_request
    request.shutdown(socket.SHUT_WR)
TypeError: shutdown() takes exactly 0 arguments (1 given)

--------------------->8-------------------------------------


/usr/lib/python2.7/SocketServer.py: ------------8<-----------

    def shutdown_request(self, request):
        """Called to shutdown and close an individual request."""
        try:
            #explicitly shutdown.  socket.close() merely releases
            #the socket and waits for GC to perform the actual close.
            request.shutdown(socket.SHUT_WR)
        except socket.error:
            pass #some platforms may raise ENOTCONN here
        self.close_request(request)

----------------->8------------------------------------------


So I recon its a bug...
History
Date User Action Args
2012-11-08 12:33:10Erik.Günthersetrecipients: + Erik.Günther
2012-11-08 12:33:10Erik.Günthersetmessageid: <1352377990.43.0.148428023395.issue16434@psf.upfronthosting.co.za>
2012-11-08 12:33:10Erik.Güntherlinkissue16434 messages
2012-11-08 12:33:09Erik.Günthercreate