minor changes
This commit is contained in:
parent
435cb07f63
commit
0c11b0293c
@ -16,6 +16,7 @@ try:
|
|||||||
while True:
|
while True:
|
||||||
m = socket.recv_string()
|
m = socket.recv_string()
|
||||||
DATETIMES.append(datetime.now())
|
DATETIMES.append(datetime.now())
|
||||||
except Exception:
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
socket.close()
|
socket.close()
|
||||||
print(DATETIMES)
|
print(DATETIMES)
|
@ -9,9 +9,10 @@ context = zmq.Context()
|
|||||||
socket = context.socket(zmq.PUB)
|
socket = context.socket(zmq.PUB)
|
||||||
socket.bind("tcp://127.0.0.1:5559")
|
socket.bind("tcp://127.0.0.1:5559")
|
||||||
|
|
||||||
|
n = 10
|
||||||
|
msg_body = "a" * n
|
||||||
try:
|
try:
|
||||||
while True:
|
while True:
|
||||||
msg_body = "a" * m
|
|
||||||
socket.send_string(f"test {msg_body}")
|
socket.send_string(f"test {msg_body}")
|
||||||
except Exception:
|
except Exception:
|
||||||
socket.close()
|
socket.close()
|
Loading…
Reference in New Issue
Block a user