fix json in zmq
This commit is contained in:
parent
9af55c9b76
commit
ee7bef7295
@ -1,7 +1,4 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import itertools
|
|
||||||
import sys
|
|
||||||
|
|
||||||
import zmq
|
import zmq
|
||||||
|
|
||||||
|
|
||||||
@ -10,7 +7,7 @@ socket = context.socket(zmq.PUB)
|
|||||||
socket.bind("tcp://127.0.0.1:5559")
|
socket.bind("tcp://127.0.0.1:5559")
|
||||||
|
|
||||||
n = 10
|
n = 10
|
||||||
msg_body = "a" * n
|
msg_body = "\"" + "a" * n + "\""
|
||||||
try:
|
try:
|
||||||
while True:
|
while True:
|
||||||
socket.send_string(f"test {msg_body}")
|
socket.send_string(f"test {msg_body}")
|
||||||
|
Loading…
Reference in New Issue
Block a user