That code also doesn't work for me

I'm not sure you can use sockets that way. You should use a sending and a receiving socket.

I've changed it to:

import zmq, json
context = zmq.Context()
bsock = context.socket(zmq.REP)
bsock.bind('ipc:///tmp/mm')
socket = context.socket(zmq.REQ)
socket.connect('ipc:///tmp/mm')
socket.send_json(json.dumps(["BOO BOO - 1", 123]))
message = bsock.recv_json()
print(message)

This works for me but I'm on Linux...


On 18-03-2022 11:04, momc...@bojinov.info wrote:
Here:
https://github.com/bozhinov/cache-poc/blob/88f3b190711dcd632b2435f2b4e315bd3b16e8aa/client_1.py#L8

Message was sent, but was never received on by the service and then the client 
gets stuck waiting for response.


-----Original Message-----
From: zeromq-dev <zeromq-dev-boun...@lists.zeromq.org> On Behalf Of Arnaud 
Loonstra
Sent: Friday, March 18, 2022 11:40 AM
To: zeromq-dev@lists.zeromq.org
Subject: Re: [zeromq-dev] Use IPC socket under win32 service

Gets stuck where?

On 18-03-2022 10:23, momc...@bojinov.info wrote:
Hello Arnaud,

The issue is mine, yes.
I provided PoC in the initial e-mail:
https://github.com/bozhinov/cache-poc

Service and app run under the same user account in both scenarios

The python wrapper does not provide output/throws nothing Just gets
stuck

Momchil

-----Original Message-----
From: zeromq-dev <zeromq-dev-boun...@lists.zeromq.org> On Behalf Of
Arnaud Loonstra
Sent: Friday, March 18, 2022 10:54 AM
To: zeromq-dev@lists.zeromq.org
Subject: Re: [zeromq-dev] Use IPC socket under win32 service

Also; try to come up with some reproducible code that illustrates the problem.

Is this yours btw? https://github.com/zeromq/libzmq/issues/4358

I guess it is. Try to see if you can get any errors out of your code.
I'm not familiar with the Python wrapper but usually the recv and send calls 
return something. If your code freezes, make sure you know where.

Would be helpful to test this code directly against libzmq instead of through 
python.

Rg,

Arnaud

On 17-03-2022 14:18, momc...@bojinov.info wrote:
An yet I don’t feel like a winner

Really need some help here

Momchil

*From:* zeromq-dev <zeromq-dev-boun...@lists.zeromq.org> *On Behalf
Of *Joerg Schneider-Simon
*Sent:* Tuesday, March 15, 2022 11:23 AM
*To:* zeromq-dev@lists.zeromq.org
*Subject:* Re: [zeromq-dev] Use IPC socket under win32 service

Hi Momchil,

Windows does not provide IPC sockets.
you'll have to stick to TCP sockets

cheers,

Joerg

Am 15.03.22 um 09:58 schrieb momc...@bojinov.info
<mailto:momc...@bojinov.info>:

      Hello,

      I have a client server poc code that runs ok in user mode
      it uses zmq.REQ context and an IPC socket to send over json and
      receive back json

      problem is when I wrap the server part in win32service code
      both service and client app run under the same user but I still fail
      to send data over
      works just fine if I switch to TCP socket

      PoC code:

      https://github.com/bozhinov/cache-poc
      <https://github.com/bozhinov/cache-poc>

      Environment:

      libzmq version: pyzmq 14.1.1, libzmq 4.3.4

      OS: Windows Server 2022

      Python 3.10.2 x64

      Is this even supposed to work?

      Momchil



      _______________________________________________

      zeromq-dev mailing list

      zeromq-dev@lists.zeromq.org
<mailto:zeromq-dev@lists.zeromq.org>

      https://lists.zeromq.org/mailman/listinfo/zeromq-dev
<https://lists.zeromq.org/mailman/listinfo/zeromq-dev>

--

*Jörg Schneider-Simon*
Chief Technology Officer & Co-Founder

bowbridge Software GmbH
Donnersbergerstrasse 22A
D-80634 Munich / GERMANY

        

https://www.bowbridge.net <https://www.bowbridge.net>
Tel.: +49 - 6227 - 698 99 - 50
Fax: +49 - 6227 - 698 99 - 59


Geschäftsführerin: Andrea Simon
Amtsgericht Mannheim - HRB 719011

*Wichtiger Hinweis:
*Diese Information ist für den Gebrauch durch die Person oder die
Firma/Organisation bestimmt, die in der Empfängeradresse benannt sind
und unterliegt u. U. dem Berufsgeheimnis, dem Schutz von
Arbeitsergebnissen oder anderweitigem rechtlichen Schutz.
Wenn Sie nicht der angegebene Empfänger sind, nehmen Sie bitte zur
Kenntnis, dass Weitergabe, Kopieren, Verteilung oder Nutzung des
Inhalts dieser eMail-Übertragung unzulässig ist. Falls Sie diese
eMail irrtümlich erhalten haben, benachrichtigen Sie den Absender
bitte unverzüglich telefonisch oder durch eine eMail.

*Important Note:*
This e-mail may contain trade secrets or privileged, undisclosed or
confidential information or otherwise protected by work product
immunity or other legal rules. If you have received this e-mail in
error, you are hereby notified that any review, copying or
distribution of it is strictly prohibited.


_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to