mirror of https://github.com/nocturn9x/giambio.git
Fixed a recursive function call inside giambio.socket.AsyncSocket class
This commit is contained in:
parent
1308135f12
commit
92835cf0d7
|
@ -51,5 +51,3 @@ class AsyncSocket(object):
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return f"giambio.socket.AsyncSocket({self.sock}, {self.loop})"
|
return f"giambio.socket.AsyncSocket({self.sock}, {self.loop})"
|
||||||
|
|
||||||
def __getattribute__(self, item):
|
|
||||||
return self.sock.__getattribute__(item)
|
|
||||||
|
|
5
test.py
5
test.py
|
@ -39,4 +39,7 @@ async def echo_server(sock: AsyncSocket, addr: tuple):
|
||||||
logging.info(f"Connection from {addr} closed")
|
logging.info(f"Connection from {addr} closed")
|
||||||
|
|
||||||
|
|
||||||
loop.start(make_srv, ('', 1501))
|
try:
|
||||||
|
loop.start(make_srv, ('', 1501))
|
||||||
|
except KeyboardInterrupt: # Exceptions propagate!
|
||||||
|
pass
|
||||||
|
|
Loading…
Reference in New Issue