summaryrefslogtreecommitdiffstats
path: root/Lib/SocketServer.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-04-15 00:36:48 (GMT)
committerGuido van Rossum <guido@python.org>2002-04-15 00:36:48 (GMT)
commitbeae4777673fa2a749d326b4860c6a2b0b1ffa12 (patch)
treef33002fedc97a62c80fa3f10267e8077449ea35c /Lib/SocketServer.py
parenta2da305211c23fc7090f95540cc1b793e474f9c1 (diff)
downloadcpython-beae4777673fa2a749d326b4860c6a2b0b1ffa12.zip
cpython-beae4777673fa2a749d326b4860c6a2b0b1ffa12.tar.gz
cpython-beae4777673fa2a749d326b4860c6a2b0b1ffa12.tar.bz2
SF bug #543318 (Frank J. Tobin).
In DatagramRequestHandler.setup(), the wfile initialization should be StringIO.StringIO(), not StringIO.StringIO(slf.packet). Bugfix candidate (all the way back to Python 1.5.2 :-).
Diffstat (limited to 'Lib/SocketServer.py')
-rw-r--r--Lib/SocketServer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/SocketServer.py b/Lib/SocketServer.py
index 2c15e93..8e60508 100644
--- a/Lib/SocketServer.py
+++ b/Lib/SocketServer.py
@@ -570,7 +570,7 @@ class DatagramRequestHandler(BaseRequestHandler):
import StringIO
self.packet, self.socket = self.request
self.rfile = StringIO.StringIO(self.packet)
- self.wfile = StringIO.StringIO(self.packet)
+ self.wfile = StringIO.StringIO()
def finish(self):
self.socket.sendto(self.wfile.getvalue(), self.client_address)