zeromq / libzmq

ZeroMQ core engine in C++, implements ZMTP/3.1
https://www.zeromq.org
Mozilla Public License 2.0
9.71k stars 2.35k forks source link

zmq_connect(socket, "pgm://localhost;localhost:5555"); #4501

Open bigwhitegg opened 1 year ago

bigwhitegg commented 1 year ago

Please use this template for reporting suspected bugs or requests for help.

Issue description

The program crashed when I used the type of pgm in the connection.

Environment

visual studio 2017 x64

Minimal test code / Steps to reproduce the issue

The source code is as follows:

void *ctx = zmq_ctx_new();
assert(ctx);

void *socket = zmq_socket(ctx, ZMQ_SUB);
assert(socket);
/* Connect it to an in-process transport with the address 'my_publisher' */
int rc = zmq_connect(socket, "pgm://localhost;localhost:5555"); 
assert(rc == 0);

What's the actual result? (include assertion message & call stack if applicable)

What's the expected result?

bigwhitegg commented 1 year ago

1111

bigwhitegg commented 1 year ago

屏幕截图(2)