s.listen(1)
while True:
    conn, addr = s.accept()
print('Connection address:', addr)
while True:
    data = conn.recv(BUFFER_SIZE)
if not data:
    break
print('received data:', data)
conn.send(data)
conn.close()
How do I make my TCP server run forever?