17 lines
290 B
Python
17 lines
290 B
Python
|
#!/usr/bin/env python3
|
||
|
import itertools
|
||
|
import sys
|
||
|
|
||
|
import zmq
|
||
|
|
||
|
|
||
|
context = zmq.Context()
|
||
|
socket = context.socket(zmq.PUB)
|
||
|
socket.bind("tcp://127.0.0.1:5559")
|
||
|
|
||
|
try:
|
||
|
while True:
|
||
|
msg_body = "a" * m
|
||
|
socket.send_string(f"test {msg_body}")
|
||
|
except Exception:
|
||
|
socket.close()
|