mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
(issue 11232) - fix asyncore documentation issue (patch by Sandro Tosi)
This commit is contained in:
parent
c9c2c8b034
commit
61a0bf5864
1 changed files with 3 additions and 2 deletions
|
@ -319,6 +319,7 @@ connections and dispatches the incoming connections to a handler::
|
||||||
|
|
||||||
def handle_read(self):
|
def handle_read(self):
|
||||||
data = self.recv(8192)
|
data = self.recv(8192)
|
||||||
|
if data:
|
||||||
self.send(data)
|
self.send(data)
|
||||||
|
|
||||||
class EchoServer(asyncore.dispatcher):
|
class EchoServer(asyncore.dispatcher):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue