Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The server cannot receive messages after running for a period of time #988

Open
ProgramDance opened this issue May 14, 2024 · 1 comment

Comments

@ProgramDance
Copy link

Use SocketType PAIR mode. After connecting to the server, the client can receive and receive data normally. But after running for a period of time, the server cannot receive data.

@trevorbernard
Copy link
Member

trevorbernard commented May 14, 2024

@ProgramDance can you provide a bit more information? Because JeroMQ doesn't support inproc (just yet), it's not a suitable socket type.

While PAIR sockets can be used over transports other than inproc, their inability to auto-reconnect coupled with the fact that new incoming connections will be terminated while any previous connections (including ones in a closing state) exist makes them unsuitable for TCP in most cases.

I would suggest generally to use dealer/router in a server type application without knowing more information.

You can read more about the PAIR socket type here: https://zeromq.org/socket-api/#exclusive-pair-pattern

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants