[New-bugs-announce] [issue5746] socketserver problem upon disconnection (undefined member)

Eric Blond report at bugs.python.org
Mon Apr 13 06:31:04 CEST 2009


New submission from Eric Blond <eblond at tiscali.co.uk>:

Here's the traceback I got:
===
>>> s.serve_forever()
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 
54611)
Traceback (most recent call last):
  File "C:\Python30\lib\socketserver.py", line 281, in 
_handle_request_noblock
    self.process_request(request, client_address)
  File "C:\Python30\lib\socketserver.py", line 307, in process_request
    self.finish_request(request, client_address)
  File "C:\Python30\lib\socketserver.py", line 320, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Python30\lib\socketserver.py", line 615, in __init__
    self.finish()
  File "C:\Python30\lib\socketserver.py", line 655, in finish
    if not self.wfile.closed:
AttributeError: 'RequestHandler' object has no attribute 'wfile'
----------------------------------------
===

's' is an instance of socketserver.TCPServer and the handler passed is 
an instance of socketserver.StreamRequestHandler.

I believe this must be a simple typo, so I didn't feel that more 
details is needed at that point.

Let me know if you have any question.

----------
components: Library (Lib)
messages: 85936
nosy: eblond
severity: normal
status: open
title: socketserver problem upon disconnection (undefined member)
versions: Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5746>
_______________________________________


More information about the New-bugs-announce mailing list