From a3597faa104a72a7e791cc92bbad7ecc2cfa3c96 Mon Sep 17 00:00:00 2001 From: Anthony Baxter Date: Thu, 18 Apr 2002 05:13:41 +0000 Subject: [PATCH] backport gvanrossum's patch: 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 :-). Original patches were: python/dist/src/Lib/SocketServer.py:1.31 --- Lib/SocketServer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/SocketServer.py b/Lib/SocketServer.py index 7e1e27ca02cc..261f23b6615d 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) -- 2.47.3