Library Reference, asyncore module, basic echo server
Hello Could you please make a little change in Library Reference, asyncore module http://docs.python.org/library/asyncore.html#asyncore-example-basic-echo-ser... change self.send(data) to if data!='': self.send(data) this will prevent error messages about sending to a closed client socket thx
Hi scaven,
On Mon, Feb 14, 2011 at 15:31, scaven
Hello Could you please make a little change in Library Reference, asyncore module http://docs.python.org/library/asyncore.html#asyncore-example-basic-echo-ser...
change self.send(data)
to if data!='': self.send(data)
this will prevent error messages about sending to a closed client socket
I'm a bit unsure about this change: what's the exact problem you're trying to fix? That is an example, and one of the virtue an example has to have is the simplicity and compactness while showing the concept if wants to explain, so you have to convince us this change is worth. Regards, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi
I'm a bit unsure about this change: what's the exact problem you're trying to fix?
That is an example, and one of the virtue an example has to have is the simplicity and compactness while showing the concept if wants to explain, so you have to convince us this change is worth.
Ok, I saw the problem (thanks for the private explanation) and I've opened http://bugs.python.org/issue11232 . Regards, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi
participants (2)
-
Sandro Tosi
-
scaven