Mark Hammond
Sent: Wednesday, March 9, 2022 7:00 AM
To: Tim Roberts ; python-win32@python.org
Subject: Re: [python-win32] zmq under win32service
I admit I've never fully understood the threading model used to control
services, and agree that almost every "real" service will creat
I admit I've never fully understood the threading model used to control
services, and agree that almost every "real" service will create threads
- but it's not clear to me that they *must* - eg, I've seen demo
services that use a similar loop, and
https://github.com/mhammond/pywin32/blob/main/w
momc...@bojinov.info wrote:
server:
import zmq, json
context = zmq.Context()
socket = context.socket(zmq.REP)
socket.bind('ipc://cache/mm')
while True:
message = socket.recv_json()
print(message)
socket.send_json(json.dumps({"data" : "BLA BLA"}))
Once I sta
e same user
Momchil
-Original Message-
From: Mark Hammond
Sent: Tuesday, March 8, 2022 4:37 AM
To: momc...@bojinov.info; python-win32@python.org
Subject: Re: [python-win32] zmq under win32service
I've no clear idea what might be going wrong, but:
* The `while True` should b
I've no clear idea what might be going wrong, but:
* The `while True` should be fine - it obviously has limitations, but
will work in the simple case.
* You need some way of working out *what* is going wrong before you can
work out *why*. It's possible the `print` statements are failing - I
Hello,
I m trying to serve 0mq listener under win32 service
Code works fine while in interactive session
Client:
import zmq, json
context = zmq.Context()
socket = context.socket(zmq.REQ)
socket.connect('ipc://cache/mm')
socket.send_json(json.dumps({"2" : "1"}))
message = socket.recv_