Re: [python-win32] zmq under win32service

2022-03-08 Thread Mark Hammond
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

Re: [python-win32] zmq under win32service

2022-03-08 Thread Tim Roberts
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

Re: [python-win32] zmq under win32service

2022-03-08 Thread momchil
Hi, Thank you for responding I do have a logging class I use in my framework. I get a log entry right before the loop and nothing from inside Wherever I put 'print' in the sample consider 'log.info' Zmq is not raising much anyway and making this difficult. Now that I have not consumed rakia in