homepage

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 joru
Recipients docs@python, joru
Date 2013年06月16日.09:59:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1371376761.5.0.41138715811.issue18229@psf.upfronthosting.co.za>
In-reply-to
Content
it seems that problem is someone connecting to port 8080 with non-http client, could not find warning in documentation
---fragment of `less access.log`------------
81.172.30.254 - - [16/Jun/2013 11:36:58] "^SBitTorrent protocol^@^@^@^@^@^X^@^Ej
81.172.30.254 - - [16/Jun/2013 11:38:11] "^N<U+008E>^@f ̧ãÄòQ;3x<U+0092>b^C^HÄA7
81.172.30.254 - - [16/Jun/2013 11:39:22] "^SBitTorrent protocol^@^@^@^@^@^X^@^Ej
81.172.30.254 - - [16/Jun/2013 11:40:35] "Ã<U+008D>¬0æz<U+0093>zr^D<U+009B>2]WQ
Exception happened during processing of request from ('81.172.30.254', 63650)
Traceback (most recent call last):
 File "c:\Python33\lib\socketserver.py", line 306, in _handle_request_noblock
 self.process_request(request, client_address)
 File "c:\Python33\lib\socketserver.py", line 332, in process_request
 self.finish_request(request, client_address)
 File "c:\Python33\lib\socketserver.py", line 345, in finish_request
 self.RequestHandlerClass(request, client_address, self)
 File "c:\Python33\lib\socketserver.py", line 666, in __init__
 self.handle()
 File "c:\Python33\lib\http\server.py", line 400, in handle
 self.handle_one_request()
 File "c:\Python33\lib\http\server.py", line 380, in handle_one_request
 if not self.parse_request():
 File "c:\Python33\lib\http\server.py", line 283, in parse_request
 self.send_error(400, "Bad request version (%r)" % version)
 File "c:\Python33\lib\http\server.py", line 428, in send_error
 self.send_response(code, message)
 File "c:\Python33\lib\http\server.py", line 443, in send_response
 self.log_request(code)
 File "c:\Users\joru\Dropbox\programowanie\demoniszcze\server\_lowerHTTP.py", line 30, in log_request
 xff=req.headers.get('X-Forwarded-For')
AttributeError: '_HNDL_3' object has no attribute 'headers'
# _HNLD_3 derives from http.server.BaseHTTPRequestHandler
History
Date User Action Args
2013年06月16日 09:59:21jorusetrecipients: + joru, docs@python
2013年06月16日 09:59:21jorusetmessageid: <1371376761.5.0.41138715811.issue18229@psf.upfronthosting.co.za>
2013年06月16日 09:59:21jorulinkissue18229 messages
2013年06月16日 09:59:20jorucreate

AltStyle によって変換されたページ (->オリジナル) /